Bug 5375 - Crashed smb server
Crashed smb server
Status: RESOLVED FIXED
Product: Samba 3.2
Classification: Unclassified
Component: Nmbd
unspecified
x64 Linux
: P3 critical
: ---
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
: 5376 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-07 00:24 UTC by Moskvin
Modified: 2008-04-08 00:45 UTC (History)
1 user (show)

See Also:


Attachments
Samba server config (6.12 KB, application/octet-stream)
2008-04-07 02:32 UTC, Moskvin
no flags Details
fix (1.32 KB, patch)
2008-04-07 03:22 UTC, Volker Lendecke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Moskvin 2008-04-07 00:24:25 UTC
smbd version 3.2.0pre2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
standard input is not a socket, assuming -D option


*** glibc detected *** smbd: double free or corruption (out): 0x0000000000c65910 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b70ea5f701d]
/lib/libc.so.6(cfree+0x76)[0x2b70ea5f8d26]
smbd(str_list_sub_basic+0x8f)[0x62e1aa]
smbd[0x48882d]
smbd(authorise_login+0xac)[0x489458]
smbd[0x4e6abe]
smbd(make_connection+0x689)[0x4e88d6]
smbd(reply_tcon_and_X+0x40a)[0x4ab206]
smbd[0x4e2d60]
smbd[0x4e4674]
smbd(smbd_process+0xbed)[0x4e5321]
smbd(main+0xce0)[0x8534d7]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b70ea5a61c4]
smbd[0x4730c9]
======= Memory map: ========
00400000-0098b000 r-xp 00000000 08:14 528072                             /usr/sbin/smbd
00b8b000-00ba9000 rw-p 0058b000 08:14 528072                             /usr/sbin/smbd
00ba9000-00c75000 rw-p 00ba9000 00:00 0                                  [heap]
2b70e7722000-2b70e773d000 r-xp 00000000 08:14 513343                     /lib/ld-2.7.so
2b70e773d000-2b70e7740000 rw-p 2b70e773d000 00:00 0
2b70e7740000-2b70e7760000 r--s 00000000 08:14 385259                     /usr/share/samba/upcase.dat
2b70e7760000-2b70e7780000 r--s 00000000 08:14 385261                     /usr/share/samba/lowcase.dat
2b70e7780000-2b70e7787000 r--s 00000000 08:14 105408                     /usr/lib/gconv/gconv-modules.cache
2b70e7787000-2b70e7788000 rw-s 00000000 08:14 18509                      /var/lib/samba/ntforms.tdb
2b70e7788000-2b70e778a000 rw-s 00000000 08:14 18508                      /var/lib/samba/ntprinters.tdb
2b70e778a000-2b70e778c000 rw-s 00000000 08:14 18507                      /var/lib/samba/ntdrivers.tdb
2b70e778c000-2b70e778e000 rw-s 00000000 08:14 18483                      /var/lib/samba/account_policy.tdb
2b70e778e000-2b70e77a1000 rw-s 00000000 08:14 414639                     /var/lib/samba/group_mapping.ldb
2b70e77a1000-2b70e77a2000 rw-s 00000000 08:14 42530                      /var/run/samba/gencache.tdb
2b70e77a2000-2b70e77a3000 rw-s 00000000 08:14 42523                      /var/run/samba/locking.tdb
2b70e77a3000-2b70e77ad000 rw-s 00000000 08:14 42158                      /var/run/samba/brlock.tdb
2b70e77ad000-2b70e77c3000 rw-s 00000000 08:14 41543                      /var/run/samba/connections.tdb
2b70e77c3000-2b70e77c4000 rw-s 00000000 08:14 41166                      /var/run/samba/sessionid.tdb
2b70e77c4000-2b70e77c5000 rw-s 00000000 08:14 41035                      /var/run/samba/messages.tdb
2b70e77c5000-2b70e77cb000 rw-s 00000000 08:14 406891                     /etc/samba/secrets.tdb
2b70e793c000-2b70e793e000 rw-p 0001a000 08:14 513343                     /lib/ld-2.7.so
2b70e793e000-2b70e7980000 r-xp 00000000 08:14 159341                     /usr/lib/libldap_r-2.4.so.2.0.3
2b70e7980000-2b70e7b7f000 ---p 00042000 08:14 159341                     /usr/lib/libldap_r-2.4.so.2.0.3
2b70e7b7f000-2b70e7b82000 rw-p 00041000 08:14 159341                     /usr/lib/libldap_r-2.4.so.2.0.3
2b70e7b82000-2b70e7b84000 rw-p 2b70e7b82000 00:00 0
2b70e7b84000-2b70e7b92000 r-xp 00000000 08:14 159342                     /usr/lib/liblber-2.4.so.2.0.3
2b70e7b92000-2b70e7d91000 ---p 0000e000 08:14 159342                     /usr/lib/liblber-2.4.so.2.0.3
2b70e7d91000-2b70e7d92000 rw-p 0000d000 08:14 159342                     /usr/lib/liblber-2.4.so.2.0.3
2b70e7d92000-2b70e7dbb000 r-xp 00000000 08:14 471962                     /usr/lib/libgssapi_krb5.so.2.2
2b70e7dbb000-2b70e7fba000 ---p 00029000 08:14 471962                     /usr/lib/libgssapi_krb5.so.2.2
2b70e7fba000-2b70e7fbc000 rw-p 00028000 08:14 471962                     /usr/lib/libgssapi_krb5.so.2.2
2b70e7fbc000-2b70e7fbd000 rw-p 2b70e7fbc000 00:00 0
2b70e7fbd000-2b70e8054000 r-xp 00000000 08:14 26471                      /usr/lib/libkrb5.so.3.3
2b70e8054000-2b70e8254000 ---p 00097000 08:14 26471                      /usr/lib/libkrb5.so.3.3
2b70e8254000-2b70e8258000 rw-p 00097000 08:14 26471                      /usr/lib/libkrb5.so.3.3
2b70e8258000-2b70e827b000 r-xp 00000000 08:14 414937                     /usr/lib/libk5crypto.so.3.1
Comment 1 Volker Lendecke 2008-04-07 01:12:31 UTC
Please upload your smb.conf and a debug level 10 log of smbd

Thanks,

Volker
Comment 2 Moskvin 2008-04-07 02:32:14 UTC
Created attachment 3244 [details]
Samba server config

how enable debug in log file?
Comment 3 Volker Lendecke 2008-04-07 03:22:06 UTC
Created attachment 3246 [details]
fix

Can you try the attached patch?

Thanks,

Volker
Comment 4 Volker Lendecke 2008-04-07 03:23:05 UTC
For me that patch fixes exactly the segfault you saw, closing the bug. Please re-open if it does not help for you.

Thanks for testing!

Volker
Comment 5 Moskvin 2008-04-07 03:33:30 UTC
(In reply to comment #4)
> For me that patch fixes exactly the segfault you saw, closing the bug. Please
> re-open if it does not help for you.
> 
> Thanks for testing!
> 
> Volker
> 

Thanks for development!

I will write after applying patch.
Comment 6 Volker Lendecke 2008-04-08 00:45:29 UTC
*** Bug 5376 has been marked as a duplicate of this bug. ***