John C. Hennessy
2005-Mar-01 17:32 UTC
[Samba] Problem with 3.0.10 and 3.0.11 with 1 smbd process using 99% cpu
I've been having problems since updating to samba 3.0.10 on Debian 3.1 Below is the output of ltrace and gdb on the offending smbd process. I tried upgrading to 3.0.11 and the problem still exists. Anyone have any suggestions? [ltrace output] After about 20 seconds on the processes ltrace loops this iconv(0x82cecc8, 0xbffff218, 0xbffff21c, 0xbffff220, 0xbffff224) = -1 __errno_location() = 0x403ac560 iconv(0x82cecc8, 0, 0, 0, 0) = 0 __errno_location() = 0x403ac560 iconv(0x82cecc8, 0xbffff218, 0xbffff21c, 0xbffff220, 0xbffff224) = -1 __errno_location() = 0x403ac560 iconv(0x82cecc8, 0, 0, 0, 0) = 0 __errno_location() = 0x403ac560 iconv(0x82cecc8, 0xbffff218, 0xbffff21c, 0xbffff220, 0xbffff224) = -1 __errno_location() = 0x403ac560 iconv(0x82cecc8, 0, 0, 0, 0) = 0 __errno_location() = 0x403ac560 iconv(0x82cecc8, 0xbffff218, 0xbffff21c, 0xbffff220, 0xbffff224) = -1 __errno_location() = 0x403ac560 iconv(0x82cecc8, 0, 0, 0, 0) = 0 __errno_location() = 0x403ac560 [gdb backtrace] Attaching to program: /usr/sbin/smbd, process 10657 <snip> 0x40202cf9 in memcpy () from /lib/tls/libc.so.6 (gdb) bt #0 0x40202cf9 in memcpy () from /lib/tls/libc.so.6 #1 0x081ac059 in tdb_set_lock_alarm () #2 0x081ac20d in tdb_set_lock_alarm () #3 0x081ad49b in tdb_exists () #4 0x081ad6e3 in tdb_traverse () #5 0x081b4a79 in pjob_delete () #6 0x081b4f61 in pjob_delete () #7 0x081a450b in message_dispatch () #8 0x081b5186 in start_background_queue () #9 0x081ffd62 in main () (gdb) John C. Hennessy President/CTO HNK Technology Solutions, Inc.
Gerald (Jerry) Carter
2005-Mar-01 18:03 UTC
[Samba] Problem with 3.0.10 and 3.0.11 with 1 smbd process using 99% cpu
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John C. Hennessy wrote: | I've been having problems since updating | to samba 3.0.10 on Debian 3.1 Below is the output of | ltrace and gdb on the offending smbd process. | I tried upgrading to 3.0.11 and the problem | still exists. Anyone have any suggestions? | | [gdb backtrace] | Attaching to program: /usr/sbin/smbd, process 10657 | <snip> | 0x40202cf9 in memcpy () from /lib/tls/libc.so.6 | (gdb) bt | #0 0x40202cf9 in memcpy () from /lib/tls/libc.so.6 | #1 0x081ac059 in tdb_set_lock_alarm () | #2 0x081ac20d in tdb_set_lock_alarm () | #3 0x081ad49b in tdb_exists () | #4 0x081ad6e3 in tdb_traverse () | #5 0x081b4a79 in pjob_delete () | #6 0x081b4f61 in pjob_delete () | #7 0x081a450b in message_dispatch () | #8 0x081b5186 in start_background_queue () | #9 0x081ffd62 in main () | (gdb) There were a lot of printing fixes in 3.0.11. I would really suggest an upgrade. Particularly due to loading issues like this one. cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCJK5mIR7qMdg1EfYRAp4VAJ0Snpx98UQFocnUjqQX5hRz3iOTSwCg6hxB kCy0gZ4uUC38l7o0YZLlKFk=VUq3 -----END PGP SIGNATURE-----
John C. Hennessy
2005-Mar-01 20:07 UTC
[Samba] Problem with 3.0.10 and 3.0.11 with 1 smbd process using 99% cpu
Just to let everyone know I was able to fix the problem. I cleaned out the tdb files which appearntly had been corrupted. -John John C. Hennessy wrote:> I've been having problems since updating to samba 3.0.10 on Debian 3.1 > Below is the output of ltrace and gdb on the offending smbd process. > I tried upgrading to 3.0.11 and the problem still exists. Anyone have > any suggestions? > > > [ltrace output] > After about 20 seconds on the processes ltrace loops this > > iconv(0x82cecc8, 0xbffff218, 0xbffff21c, 0xbffff220, 0xbffff224) = -1 > __errno_location() = 0x403ac560 > iconv(0x82cecc8, 0, 0, 0, 0) = 0 > __errno_location() = 0x403ac560 > iconv(0x82cecc8, 0xbffff218, 0xbffff21c, 0xbffff220, 0xbffff224) = -1 > __errno_location() = 0x403ac560 > iconv(0x82cecc8, 0, 0, 0, 0) = 0 > __errno_location() = 0x403ac560 > iconv(0x82cecc8, 0xbffff218, 0xbffff21c, 0xbffff220, 0xbffff224) = -1 > __errno_location() = 0x403ac560 > iconv(0x82cecc8, 0, 0, 0, 0) = 0 > __errno_location() = 0x403ac560 > iconv(0x82cecc8, 0xbffff218, 0xbffff21c, 0xbffff220, 0xbffff224) = -1 > __errno_location() = 0x403ac560 > iconv(0x82cecc8, 0, 0, 0, 0) = 0 > __errno_location() = 0x403ac560 > > [gdb backtrace] > Attaching to program: /usr/sbin/smbd, process 10657 > <snip> > 0x40202cf9 in memcpy () from /lib/tls/libc.so.6 > (gdb) bt > #0 0x40202cf9 in memcpy () from /lib/tls/libc.so.6 > #1 0x081ac059 in tdb_set_lock_alarm () > #2 0x081ac20d in tdb_set_lock_alarm () > #3 0x081ad49b in tdb_exists () > #4 0x081ad6e3 in tdb_traverse () > #5 0x081b4a79 in pjob_delete () > #6 0x081b4f61 in pjob_delete () > #7 0x081a450b in message_dispatch () > #8 0x081b5186 in start_background_queue () > #9 0x081ffd62 in main () > (gdb) > > John C. Hennessy > President/CTO > HNK Technology Solutions, Inc. > > >