Re: [Bug 292791] Re: silent login/gdm failures and sudo segfaults with smbpasswd enabled

2009-01-22 Thread Jorrit Kronjee
On 1/22/2009 3:36 AM, Steve Langasek wrote:
 Jorrit, you showed a test involving 'mv /var/lib/samba/
 /var/lib/samba.bak/' - did you have a /var/lib/samba directory on your
 system when the original crash happened that you were reporting?

Steve,

Yes, moving or not moving the directory doesn't make a difference, it
will segfault in both cases. Recreating the directory as Thierry
suggested does fix the problem, though.

Jorrit

-- 
silent login/gdm failures and sudo segfaults with smbpasswd enabled
https://bugs.launchpad.net/bugs/292791
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 292791] Re: silent login/gdm failures and sudo segfaults with smbpasswd enabled

2009-01-21 Thread Steve Langasek
On Wed, Jan 21, 2009 at 01:18:53PM -, Thierry Carrez wrote:

 It looks related to bug 303458 (and his evil duplicate bug 302092)
 The problem we solved was bug 260687 (libpam-smbpass segfault caused by
 missing /var/lib/samba), but there seem to be a case of /var/lib/samba/
 contents corruption triggering a similar segfault.

What's the basis for claiming that there's a corruption problem?  I haven't
seen tdb corruption in samba for many years.

The backtrace in this bug isn't a corruption issue at all; the
get_global_sam_sid() call panics if called by a process that can't create or
read /var/lib/samba/secrets.tdb.  The trick is that libpam-smbpass isn't
supposed to call get_global_sam_sid() - so something has changed here.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
slanga...@ubuntu.com vor...@debian.org

-- 
silent login/gdm failures and sudo segfaults with smbpasswd enabled
https://bugs.launchpad.net/bugs/292791
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 292791] Re: silent login/gdm failures and sudo segfaults with smbpasswd enabled

2009-01-21 Thread Jorrit Kronjee
Thierry Carrez wrote:
 By corruption I didn't mean a corrupted bits in a specific file, but
 rather a corrupted state for the global /var/lib/samba directory
 contents... The basis for this is that in the mentionned bugs clearing
 the directory (and especially the existing secrets.tdb file) made
 everything working again. Clearly the backtrace analysis is more precise
 than this wild guess based on observed symptoms.

   
Steve, Thierry,

r...@hercules:~# mv /var/lib/samba/ /var/lib/samba.bak/
r...@hercules:~# exit
jor...@hercules:~$ sudo -s
[sudo] password for jorrit:
Segmentation fault

Also, the version of libpam-smbpass I'm currently using is 
2:3.2.3-1ubuntu3.4

Let me know if there's more information you need.

-- 
silent login/gdm failures and sudo segfaults with smbpasswd enabled
https://bugs.launchpad.net/bugs/292791
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 292791] Re: silent login/gdm failures and sudo segfaults with smbpasswd enabled

2009-01-21 Thread Jorrit Kronjee
Thierry Carrez wrote:
 Jorrit: it will indeed segfault if there is no /var/lib/samba directory
 anymore. But an existing (empty) /var/lib/samba should work (files will
 be recreated). That is, if this bug is the same as the other two I
 mentionned.

   
Thierry,

I guess you are right. Creating an empty directory did solve the
problem.

-- 
silent login/gdm failures and sudo segfaults with smbpasswd enabled
https://bugs.launchpad.net/bugs/292791
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs