[Samba] smbd (3.0.20pre2) crashes at startup

Fa. Spezifikum mm at spezifikum.de
Wed Jul 27 19:30:25 GMT 2005


Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Fa. Spezifikum wrote:
> 
> | please note that samba3.0.20pre2 is running if installed
> | in a new directory.   I once again did:
> | export CFLAGS="-O"
> | ./configure --prefix=/opt/samba3 --enable-cups --with-sys-quotas
> | --with-utmp --with-acl-support
> | make
> | make install
> | I used here for testing the "old" directory, where
> | all my samba3.x  compilations went.
> | grep CFLAGS Makefile says:
> | CFLAGS= -I/usr/include/heimdal -O -D_SAMBA_BUILD_
> | Again, the smbd crashes.
> 
> Could you try the latest SAMBA_3_0 svn tree
> (svn co svn://svnanon.samba.org/samba/branches/SAMBA_3_0 samba_3_0)
> and see if that is any better.  I have fixed some upgrade
> issues.  I'll look back over that printer code and see if I
> see anything.  What version of gcc is this ?
> 
> 
> 
> 
> jerry
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFC55sPIR7qMdg1EfYRAl/fAKDFOHOpCAWW4jmhxYVOAOnsT7NRUwCeJ3WZ
> RBiGRqiKZVE48PG+xlug6pM=
> =rgRY
> -----END PGP SIGNATURE-----

It didn't help, sorry.
gcc -v:
Thread model: posix
gcc version 3.3.4 (pre 3.3.5 20040809)

I played around with the *.tdb a bit. It may be a normal behaviour, but 
on certain circumstances the smbd does not crash.
in samba3.0.20pre2
rm -rf var/* (I made a backup)
restore orig-tdbs
cp samba3working/var/locks/*.tdb samba3.0.20pre2/var/locks/
=> smbd crashes

Next try, just guessing it has something to do with printing:
rm -rf var/*
restore orig-tdbs
cp ntprinters.tdb /opt/samba3.0.20pre2/var/locks/
rcsmb start && sleep 6 ; rcsmb stop      #OK
cp ntdrivers.tdb /opt/samba3.0.20pre2/var/locks/
rcsmb start && sleep 6 ; rcsmb stop      #crash

Ok, so it's ntdrivers.tdb?
rm -rf var/*
restore orig-tdbs
cp ntdrivers.tdb /opt/samba3.0.20pre2/var/locks/
rcsmb start && sleep 6 ; rcsmb stop      #OK, logfile says:
#[2005/07/27 21:12:35, 0] #printing/nt_printing.c:upgrade_to_version_4(397)
#  upgrade_to_version_4: upgrading printer security descriptors
#So both files are necessary to cause the trouble?
cp ntprinters.tdb /opt/samba3.0.20pre2/var/locks/
rcsmb start && sleep 6 ; rcsmb stop      #No, OK!

Only if I copy all tdb or the ntprinters before the ntdrivers, smbd 
doesn't start. Else, everything seems to be OK.

I don't know if this is of any value for you.

With kind regards,
mamue


More information about the samba mailing list