Bug#476519: [Pkg-shadow-devel] Bug#476519: su - nobody sometimes logged back out instantly

2008-05-14 Thread Sven Joachim
On 2008-05-14 00:34 +0200, Nicolas François wrote:

 For the record, I'm running a Debian kernel 2.6.24-6, or 2.6.23-1~mtu1
 on a Intel(R) Core(TM)2 Duo CPU E6550

 (According to its changelog, 2.6.24-6 seems to be a 2.6.24.4)

 So I might be using a too old kernel to reproduce the bug, or it does not
 occur on dual cores.

2.6.24.4 should not be too old, when the bug was reported four weeks ago
I ran it myself.

 Are you using a Debian kernel? Or an home-compiled kernel?

Home-compiled.

Cheers,
   Sven



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#476519: [Pkg-shadow-devel] Bug#476519: su - nobody sometimes logged back out instantly

2008-05-14 Thread jidanni
Yes, those
http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2008-May/006589.html
etc. are all the same bug. You can merge them. It says
  it does not occur on ibm laptops
yes it does, and also on
  product: AMD Duron(tm) processor
  size: 1GHz
$ COLUMNS= dlocate -l linux-image|perl -alnwe 'print @F[0,1] if /^ii/'
ii linux-image-2.6-686
ii linux-image-2.6.24-1-686
ii linux-image-686



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#476519: [Pkg-shadow-devel] Bug#476519: su - nobody sometimes logged back out instantly

2008-05-13 Thread Nicolas François
Hello,

On Thu, Apr 17, 2008 at 05:23:48PM +0800, [EMAIL PROTECTED] wrote:
 
 Sometimes just after I do su - nobody, I get instantly logged back out.
 It's like I accidentally sent a ^D to the shell.
 
 # su - nobody
 No directory, logging in with HOME=/
 [EMAIL PROTECTED]:/$ logout --I did not type this.

I received a similar bug report:
 http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2008-May/006585.html
 http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2008-May/006587.html

It was reported to appear on kernel 2.6.24.5 and 2.6.25, on i386
single processor systems.

It was reported to be OK with kernel 2.6.18, 2.6.23.16 or on x86_84 or on
multi-processor systems.

Jidanni and Sven, do you see similarities in your configuration and the
ones used by Siim (mentioned in the above links)

-- 
Nekral



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#476519: [Pkg-shadow-devel] Bug#476519: su - nobody sometimes logged back out instantly

2008-05-13 Thread Sven Joachim
On 2008-05-13 13:38 +0200, Nicolas François wrote:

 On Thu, Apr 17, 2008 at 05:23:48PM +0800, [EMAIL PROTECTED] wrote:
 
 Sometimes just after I do su - nobody, I get instantly logged back out.
 It's like I accidentally sent a ^D to the shell.
 
 # su - nobody
 No directory, logging in with HOME=/
 [EMAIL PROTECTED]:/$ logout --I did not type this.

 I received a similar bug report:
  
 http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2008-May/006585.html
  
 http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2008-May/006587.html

 It was reported to appear on kernel 2.6.24.5 and 2.6.25, on i386
 single processor systems.

 It was reported to be OK with kernel 2.6.18, 2.6.23.16 or on x86_84 or on
 multi-processor systems.

 Jidanni and Sven, do you see similarities in your configuration and the
 ones used by Siim (mentioned in the above links)

Yes, I have kernel 2.6.24.6 and an i386 single processor system.  Can
try different kernels, but no SMP or 64 bit system -- unless you send me
the money to buy one, that is. ;-)

Sven



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#476519: [Pkg-shadow-devel] Bug#476519: su - nobody sometimes logged back out instantly

2008-05-13 Thread Nicolas François
On Tue, May 13, 2008 at 04:26:52PM +0200, [EMAIL PROTECTED] wrote:
 On 2008-05-13 13:38 +0200, Nicolas François wrote:
 
  On Thu, Apr 17, 2008 at 05:23:48PM +0800, [EMAIL PROTECTED] wrote:
  
  Sometimes just after I do su - nobody, I get instantly logged back out.
  It's like I accidentally sent a ^D to the shell.
  
  # su - nobody
  No directory, logging in with HOME=/
  [EMAIL PROTECTED]:/$ logout --I did not type this.
 
  I received a similar bug report:
   
  http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2008-May/006585.html
   
  http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/2008-May/006587.html
 
  It was reported to appear on kernel 2.6.24.5 and 2.6.25, on i386
  single processor systems.
 
  It was reported to be OK with kernel 2.6.18, 2.6.23.16 or on x86_84 or on
  multi-processor systems.
 
  Jidanni and Sven, do you see similarities in your configuration and the
  ones used by Siim (mentioned in the above links)
 
 Yes, I have kernel 2.6.24.6 and an i386 single processor system.

For the record, I'm running a Debian kernel 2.6.24-6, or 2.6.23-1~mtu1
on a Intel(R) Core(TM)2 Duo CPU E6550

(According to its changelog, 2.6.24-6 seems to be a 2.6.24.4)

So I might be using a too old kernel to reproduce the bug, or it does not
occur on dual cores.


Are you using a Debian kernel? Or an home-compiled kernel?

 Can
 try different kernels, but no SMP or 64 bit system -- unless you send me
 the money to buy one, that is. ;-)

If instead of receiving answers by email, I receive computer to reproduce
this bug, I will share with you ;)

-- 
Nekral



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#476519: su - nobody sometimes logged back out instantly

2008-04-17 Thread jidanni
Package: login
Version: 1:4.1.1-1
Severity: wishlist

Sometimes just after I do su - nobody, I get instantly logged back out.
It's like I accidentally sent a ^D to the shell.

At first I thought it might be my emacs shell buffer sending junk, but
it happens in xterm too.
And it happens or doesn't happen without any pattern as to when.

And there's nothing funny in /var/log/auth.log.

Sorry if you can't reproduce it. Just wanted to let you know. Below we
see one bad and two goods.

# su - nobody
No directory, logging in with HOME=/
[EMAIL PROTECTED]:/$ logout --I did not type this.
17:02 ~# su -l nobody
No directory, logging in with HOME=/
[EMAIL PROTECTED]:/$ exit
logout
17:02 ~# su -l nobody
No directory, logging in with HOME=/
[EMAIL PROTECTED]:/$ exit
logout

Yes, I typed the exits. -l or - have the same probability.

Maybe there's a race condition that sometimes kills such a shell?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#476519: [Pkg-shadow-devel] Bug#476519: su - nobody sometimes logged back out instantly

2008-04-17 Thread Nicolas François
tags 476519 unreproducible
thanks

Hello,

On Thu, Apr 17, 2008 at 05:23:48PM +0800, [EMAIL PROTECTED] wrote:
 
 Sometimes just after I do su - nobody, I get instantly logged back out.
 It's like I accidentally sent a ^D to the shell.

I could not reproduce it in my terminals, even in a few 1000s of tries.

Could you try with the attached expect script?

Best Regards,
-- 
Nekral
#!/usr/bin/expect

set timeout 2
expect_after default {puts \nFAIL; exit 1}

spawn /bin/bash
expect # 

for {set i 1} {$i  2000} {incr i} {
send su - nobody\r
expect $ 
send \r
expect $ 
send exit\r
expect \nlogout
expect # 
}

close
puts \nPASS
exit 0


Bug#476519: [Pkg-shadow-devel] Bug#476519: su - nobody sometimes logged back out instantly

2008-04-17 Thread jidanni
Thanks, I tried your script with
PS1=#\  ENV= HOME=/tmp ./test.exp
but for 20 instead of 2000 passes, but didn't trigger the bug.
Maybe there are some bugs expect(1) cannot trigger like real users.
Yes it is a mystery to me.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#476519: [Pkg-shadow-devel] Bug#476519: su - nobody sometimes logged back out instantly

2008-04-17 Thread Justin Pryzby
On Thu, Apr 17, 2008 at 07:58:19PM +0800, [EMAIL PROTECTED] wrote:
 Thanks, I tried your script with
 PS1=#\  ENV= HOME=/tmp ./test.exp
 but for 20 instead of 2000 passes, but didn't trigger the bug.
 Maybe there are some bugs expect(1) cannot trigger like real users.
 Yes it is a mystery to me.
Do you have any signal handling customization in your shell rc files?
What does stty -a say (I'm thinking of tostop)?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#476519: [Pkg-shadow-devel] Bug#476519: Bug#476519: su - nobody sometimes logged back out instantly

2008-04-17 Thread Nicolas François
On Thu, Apr 17, 2008 at 07:58:19PM +0800, [EMAIL PROTECTED] wrote:
 Thanks, I tried your script with
 PS1=#\  ENV= HOME=/tmp ./test.exp
 but for 20 instead of 2000 passes, but didn't trigger the bug.
 Maybe there are some bugs expect(1) cannot trigger like real users.
 Yes it is a mystery to me.

I could not reproduce it when run by hand neither.

Could you reproduce it with another user?
Could you reproduce it with another terminal (console)?
Are you using special PAM modules?

You mentioned no messages in /var/log/auth.log, are there messages in
/var/log/syslog?

What's your probability of occurrence? (1 out of 3?)

Can you try to get a systrace of su when it fails and compare it with a
successful session.

-- 
Nekral



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]