Bug 1584 - One process use 100% prosessor time
Summary: One process use 100% prosessor time
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.5
Hardware: x86 Linux
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-04 04:58 UTC by Andrzej Zawadzki
Modified: 2005-08-24 10:22 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrzej Zawadzki 2004-08-04 04:58:59 UTC
System: PLD Linux Distribution 1.99 AC

After proper logout, a WIN2000 client from damain server still exist users process:
user   11726 80.7  0.7 14176 5928 ?        TN   Aug03 1350:38 smbd -D
(one day old) and hold 1 file

strace -p $PID

fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
fcntl64(11, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0
kill(11726, SIG_0)                      = 0
fcntl64(11, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=552, len=1},
0xbfffeff0) = 0


and

gdb bt
Attaching to process 11726
Reading symbols from /usr/sbin/smbd...(no debugging symbols found)...done.
Using host libthread_db library "/lib/libthread_db.so.1".
Reading symbols from /usr/lib/libldap-2.2.so.7...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libldap-2.2.so.7
Reading symbols from /usr/lib/liblber-2.2.so.7...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/liblber-2.2.so.7
Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libgssapi.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgssapi.so.1
Reading symbols from /usr/lib/libkrb5.so.17...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5.so.17
Reading symbols from /usr/lib/libasn1.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libasn1.so.6
Reading symbols from /usr/lib/libcrypto.so.0.9.7...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.7
Reading symbols from /usr/lib/libroken.so.16...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libroken.so.16
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/lib/libcups.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcups.so.2
Reading symbols from /usr/lib/libssl.so.0.9.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libssl.so.0.9.7
Reading symbols from /lib/libpam.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpam.so.0
Reading symbols from /lib/libattr.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libattr.so.1
Reading symbols from /lib/libacl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libacl.so.1
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpopt.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpopt.so.0
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libdb-4.2.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdb-4.2.so
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/gconv/ISO8859-2.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/gconv/ISO8859-2.so
Reading symbols from /usr/lib/gconv/IBM852.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gconv/IBM852.so
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/samba/vfs/recycle.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/samba/vfs/recycle.so
Reading symbols from /usr/lib/samba/vfs/vscan-clamav.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/samba/vfs/vscan-clamav.so
Reading symbols from /usr/lib/libmagic.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libmagic.so.1
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/samba/vfs/extd_audit.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/samba/vfs/extd_audit.so
0x403542d8 in fcntl () from /lib/libc.so.6
(gdb) bt
#0  0x403542d8 in fcntl () from /lib/libc.so.6
#1  0x081f0233 in tdb_set_lock_alarm ()
#2  0x0000000b in ?? ()
#3  0x0000000e in ?? ()
#4  0xbfffeff0 in ?? ()
#5  0x081f1fdc in tdb_fetch ()
#6  0x00000002 in ?? ()
#7  0x00000228 in ?? ()
#8  0x00000000 in ?? ()
#9  0x00000001 in ?? ()
#10 0x00000000 in ?? ()
#11 0x00000000 in ?? ()
#12 0x00000048 in ?? ()
#13 0x00000091 in ?? ()
#14 0x403bb980 in __after_morecore_hook () from /lib/libc.so.6
#15 0x00000090 in ?? ()
#16 0x0856b440 in ?? ()
#17 0x083f1aa0 in ?? ()
#18 0x00000060 in ?? ()
#19 0x0000000e in ?? ()
#20 0x00000001 in ?? ()
#21 0x081f0648 in tdb_set_lock_alarm ()
#22 0x083f1aa0 in ?? ()
#23 0x00000228 in ?? ()
#24 0x00000002 in ?? ()
#25 0x0000000e in ?? ()
#26 0x00000000 in ?? ()
#27 0x00000000 in ?? ()
#28 0x082deae0 in global_in_nmbd ()
#29 0x083f1aa0 in ?? ()
#30 0x083f1aa0 in ?? ()
#31 0x08550cd0 in ?? ()
#32 0x00000000 in ?? ()
#33 0x081f3ff1 in tdb_chainunlock ()
#34 0x083f1aa0 in ?? ()
#35 0x00000060 in ?? ()
#36 0x00000001 in ?? ()
#37 0x00000000 in ?? ()
#38 0x082deae0 in global_in_nmbd ()
#39 0x00000010 in ?? ()
#40 0x00000000 in ?? ()
#41 0x0819ce7f in unlock_share_entry ()
#42 0x083f1aa0 in ?? ()
#43 0x082deae0 in global_in_nmbd ()
#44 0x00000010 in ?? ()
#45 0x0269a551 in ?? ()
#46 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#47 0x00000000 in ?? ()
#48 0x08550cd0 in ?? ()
#49 0x08550cd0 in ?? ()
#50 0x082deae0 in global_in_nmbd ()
#51 0x00000010 in ?? ()
#52 0x00000000 in ?? ()
#53 0x080c0006 in fd_close ()
#54 0x0840e7e8 in ?? ()
#55 0x00006808 in ?? ()
#56 0x00000000 in ?? ()
#57 0x0269a551 in ?? ()
#58 0x00000000 in ?? ()
#59 0xbffff0f4 in ?? ()
#60 0x00000004 in ?? ()
#61 0x081f04ae in tdb_set_lock_alarm ()
#62 0x00000000 in ?? ()
#63 0x00000000 in ?? ()
#64 0x00000000 in ?? ()
#65 0xa5c02332 in ?? ()
#66 0x0269a551 in ?? ()
#67 0x00000000 in ?? ()
#68 0x00006808 in ?? ()
#69 0x00000000 in ?? ()
#70 0x083f1aa0 in ?? ()
#71 0x08550cd0 in ?? ()
#72 0x00000001 in ?? ()
#73 0x081f3fa1 in tdb_chainlock ()
#74 0x00002dce in ?? ()
#75 0x0004136c in ?? ()
#76 0x00000042 in ?? ()
#77 0x0002019f in ?? ()
#78 0x410f8c4a in ?? ()
#79 0x00039b85 in ?? ()
#80 0x00006808 in ?? ()
#81 0x00000000 in ?? ()
#82 0x0269a551 in ?? ()
#83 0x00000000 in ?? ()
#84 0x00000b4c in ?? ()
#85 0x0269a551 in ?? ()
#86 0x00000000 in ?? ()
#87 0xbffff72c in ?? ()
#88 0x0000002b in ?? ()
#89 0x00008040 in ?? ()
#90 0x0840e7e8 in ?? ()
#91 0x00000001 in ?? ()
#92 0x00000004 in ?? ()
#93 0x080c0f0d in open_file_shared1 ()
---Type <return> to continue, or q <return> to quit---
#94 0xbffff6e0 in ?? ()
#95 0x00006808 in ?? ()
#96 0x00000000 in ?? ()
#97 0x0269a551 in ?? ()
#98 0x00000000 in ?? ()
#99 0x00100080 in ?? ()
#100 0x00008040 in ?? ()
#101 0xbffff1c8 in ?? ()
#102 0xbffff20c in ?? ()
#103 0xbffff1cc in ?? ()
#104 0x0269a551 in ?? ()
#105 0x000081f4 in ?? ()
#106 0x00000001 in ?? ()
#107 0x000001f4 in ?? ()
#108 0x00000020 in ?? ()
#109 0x00000000 in ?? ()
#110 0x00000000 in ?? ()
#111 0x0855de70 in ?? ()
#112 0x00000000 in ?? ()
#113 0x0269a551 in ?? ()
#114 0x00000000 in ?? ()
#115 0x00006808 in ?? ()
#116 0x00000000 in ?? ()
#117 0x00000000 in ?? ()
#118 0x00000000 in ?? ()
#119 0x00000001 in ?? ()
#120 0x00000000 in ?? ()
#121 0x00000001 in ?? ()
#122 0x00000000 in ?? ()
#123 0x00000000 in ?? ()
#124 0x00000001 in ?? ()
#125 0x00000000 in ?? ()
#126 0xbffff210 in ?? ()
#127 0x00000044 in ?? ()
#128 0x00008040 in ?? ()
#129 0x00000000 in ?? ()
#130 0x00000080 in ?? ()
#131 0x40752008 in ?? ()
#132 0x08098ec9 in reply_ntcreate_and_X ()
#133 0xbffff6e0 in ?? ()
#134 0xbffff680 in ?? ()
#135 0x00100080 in ?? ()
#136 0x00008040 in ?? ()
#137 0x00000001 in ?? ()
#138 0x00000000 in ?? ()
#139 0x00000000 in ?? ()
#140 0xbffff26c in ?? ()
---Type <return> to continue, or q <return> to quit---
#141 0xbffff270 in ?? ()
#142 0x00000000 in ?? ()
#143 0x00000000 in ?? ()
#144 0x6567615c in ?? ()
#145 0x656a636e in ?? ()
#146 0x746b615c in ?? ()
#147 0x6e6c6175 in ?? ()
#148 0x72645c65 in ?? ()
#149 0x5c696b75 in ?? ()
#150 0x4b555244 in ?? ()
#151 0x54535f49 in ?? ()
#152 0x00000000 in ?? ()
#153 0x782e495f in ?? ()
#154 0x0000736c in ?? ()
#155 0x00010a00 in ?? ()
#156 0x00000000 in ?? ()
#157 0x00000000 in ?? ()
#158 0x00000001 in ?? ()
#159 0x00000001 in ?? ()
#160 0x00000007 in ?? ()
#161 0x00000010 in ?? ()
#162 0x00000000 in ?? ()
#163 0x00000000 in ?? ()
#164 0x00000000 in ?? ()
#165 0x00000000 in ?? ()
#166 0x00100080 in ?? ()
#167 0x00000000 in ?? ()
#168 0xffffffff in ?? ()
#169 0x00000000 in ?? ()
#170 0x534c582e in ?? ()
#171 0x782e4900 in ?? ()
#172 0x0000736c in ?? ()
#173 0x000002d0 in ?? ()
#174 0x08547750 in ?? ()
#175 0x081f098a in tdb_set_lock_alarm ()
#176 0x08547750 in ?? ()
#177 0x084db308 in ?? ()
#178 0x40310474 in mallopt () from /lib/libc.so.6
Previous frame inner to this frame (corrupt stack?)
Comment 1 Gerald (Jerry) Carter (dead mail address) 2004-08-16 13:57:53 UTC
There was one recursion bug in the SVN tree recently (for 3.0.6).
Unless you have any more information, I'm going to assume that 
it was the same bug.  If you see a recurrence of this behavior in 
3.0.6, please reopen this bug.
Comment 2 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:22:07 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.