Bug 7780 - smbd crashes after user logout
smbd crashes after user logout
Status: NEW
Product: Samba 3.4
Classification: Unclassified
Component: File services
3.4.0
x86 Linux
: P3 major
: ---
Assigned To: Volker Lendecke
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-08 03:44 UTC by Petr Jurasek
Modified: 2010-11-08 04:40 UTC (History)
1 user (show)

See Also:


Attachments
smb.conf (1014 bytes, application/octet-stream)
2010-11-08 04:04 UTC, Petr Jurasek
no flags Details
local.conf (included from smb.conf) (2.62 KB, application/octet-stream)
2010-11-08 04:04 UTC, Petr Jurasek
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jurasek 2010-11-08 03:44:38 UTC
Hi,

I've samba 3.4 on debian-lenny. When some users tried to logout (and write roaming profile), samba crashes.

After that, I must kill (with -9) samba process:
root      3691     1  0 08:05 ?        00:00:00   /usr/sbin/smbd -D
10695     6746     1  0 09:08 ?        00:00:00   /usr/sbin/smbd -D

And after that, I can start samba again.

Config file:
   netbios name = UHRINEVES
   workgroup = rabat
   server string = FileBox server
   map to guest = Bad User
   security = user
   domain logons = yes
   domain master = yes
   wins support = yes
   passdb backend = ldapsam:ldapi://%2Fvar%2Frun%2Fslapd.socket/
   ldap suffix = key=rabatcr.cz,ou=Samba,o=rabat
   add machine script = /usr/sbin/samba_add_machine %u rabatcr.cz
   admin users = S-1-5-21-1270665400-602707436-1495454439-512
   interfaces = eth1 lo
   logon drive = h:
   logon script = %U.bat
   logon home = \\%L\home\.profile
   logon path = \\%L\profile\.profile_nt
   passwd program = /usr/sbin/samba_chpasswd %u rabatcr.cz
   guest account = guest!



Log from user's ip:
[2010/11/08 09:18:18,  2, effective(10695, 4), real(0, 0)] smbd/close.c:612(close_normal_file)
  vera.pradova closed file Outlook/Outlook.pst (numopen=0) NT_STATUS_OK
[2010/11/08 09:18:18,  2, effective(10695, 4), real(0, 0)] smbd/open.c:580(open_file)
  vera.pradova opened file Outlook/Outlook.pst read=Yes write=No (numopen=1)
[2010/11/08 09:18:18,  2, effective(10695, 4), real(0, 0)] lib/tallocmsg.c:106(register_msg_pool_usage)
  Registered MSG_REQ_POOL_USAGE
[2010/11/08 09:18:18,  2, effective(10695, 4), real(0, 0)] lib/dmallocmsg.c:77(register_dmalloc_msgs)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2010/11/08 09:18:18,  0, effective(10695, 4), real(0, 0)] lib/messages_ctdbd.c:63(messaging_ctdbd_connection)
  messaging_ctdbd_connection():valid for pid[0] but it's [7151]
[2010/11/08 09:18:18,  0, effective(10695, 4), real(0, 0)] lib/util.c:1480(smb_panic)
  PANIC (pid 7151): messaging_ctdbd_connection() invalid process
  
[2010/11/08 09:18:18,  0, effective(10695, 4), real(0, 0)] lib/util.c:1584(log_stack_trace)
  BACKTRACE: 21 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7cea8cd]
   #1 /usr/sbin/smbd(smb_panic+0x2d) [0xb7cea9cd]
   #2 /usr/sbin/smbd(messaging_ctdbd_connection+0x114) [0xb7cc6534]
   #3 /usr/sbin/smbd(process_exists+0x83) [0xb7ceaef3]
   #4 /usr/sbin/smbd [0xb7c75ac1]
   #5 /usr/sbin/smbd [0xb7c75fa1]
   #6 /usr/sbin/smbd(strict_lock_default+0xac) [0xb7c74d8c]
   #7 /usr/sbin/smbd [0xb7b05d7c]
   #8 /usr/sbin/smbd(reply_read_and_X+0x2c1) [0xb7aaf1c1]
   #9 /usr/sbin/smbd [0xb7af0e4e]
   #10 /usr/sbin/smbd [0xb7af399d]
   #11 /usr/sbin/smbd [0xb7af3e7a]
   #12 /usr/sbin/smbd(run_events+0x13c) [0xb7cfb84c]
   #13 /usr/sbin/smbd(smbd_process+0x931) [0xb7af34c1]
   #14 /usr/sbin/smbd [0xb7fc703d]
   #15 /usr/sbin/smbd(run_events+0x13c) [0xb7cfb84c]
   #16 /usr/sbin/smbd [0xb7cfbaee]
   #17 /usr/sbin/smbd(_tevent_loop_once+0x97) [0xb7cfc107]
   #18 /usr/sbin/smbd(main+0xc07) [0xb7fc7d37]
   #19 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7585455]
   #20 /usr/sbin/smbd [0xb7a70e01]
[2010/11/08 09:18:18,  0, effective(10695, 4), real(0, 0)] lib/util.c:1485(smb_panic)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 7151]
[2010/11/08 09:18:18,  0, effective(10695, 4), real(0, 0)] lib/util.c:1493(smb_panic)
  smb_panic(): action returned status 0
[2010/11/08 09:18:18,  0, effective(0, 0), real(0, 0)] lib/fault.c:321(dump_core)
  dumping core in /var/log/samba/cores/smbd

And log from 0.0.0.0:
[2010/11/08 09:08:57,  0, effective(0, 0), real(0, 0)] lib/util_sock.c:1468(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2010/11/08 09:08:57,  0, effective(0, 0), real(0, 0)] smbd/process.c:62(srv_send_smb)
  Error writing 4 bytes to client. -1. (Transport endpoint is not connected)
[2010/11/08 09:18:18,  2, effective(0, 0), real(0, 0)] lib/messages_local.c:292(message_notify)
  message to process 7151 failed - No such process
[2010/11/08 09:18:18,  2, effective(0, 0), real(0, 0)] lib/messages_local.c:382(messaging_tdb_send)
  pid 7151 doesn't exist - deleting messages record
[2010/11/08 09:18:18,  2, effective(0, 0), real(0, 0)] lib/messages.c:127(traverse_fn)
  pid 7151 doesn't exist - deleting connections -1 []
[2010/11/08 09:18:18,  2, effective(0, 0), real(0, 0)] lib/tallocmsg.c:106(register_msg_pool_usage)
  Registered MSG_REQ_POOL_USAGE
[2010/11/08 09:18:18,  2, effective(0, 0), real(0, 0)] lib/dmallocmsg.c:77(register_dmalloc_msgs)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2010/11/08 09:18:18,  0, effective(0, 0), real(0, 0)] lib/messages_ctdbd.c:63(messaging_ctdbd_connection)
  messaging_ctdbd_connection():valid for pid[0] but it's [3642]
[2010/11/08 09:18:18,  0, effective(0, 0), real(0, 0)] lib/util.c:1480(smb_panic)
  PANIC (pid 3642): messaging_ctdbd_connection() invalid process
  
[2010/11/08 09:18:18,  0, effective(0, 0), real(0, 0)] lib/util.c:1584(log_stack_trace)
  BACKTRACE: 21 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7cea8cd]
   #1 /usr/sbin/smbd(smb_panic+0x2d) [0xb7cea9cd]
   #2 /usr/sbin/smbd(messaging_ctdbd_connection+0x114) [0xb7cc6534]
   #3 /usr/sbin/smbd(process_exists+0x83) [0xb7ceaef3]
   #4 /usr/sbin/smbd [0xb7c75ac1]
   #5 /usr/sbin/smbd [0xb7c76abd]
   #6 /usr/sbin/smbd [0xb7ccf1f7]
   #7 /usr/sbin/smbd [0xb7fd19da]
   #8 /usr/sbin/smbd(tdb_traverse+0xd4) [0xb7fd1ca4]
   #9 /usr/sbin/smbd [0xb7ccf811]
   #10 /usr/sbin/smbd(brl_forall+0x41) [0xb7c75211]
   #11 /usr/sbin/smbd [0xb7c757fe]
   #12 /usr/sbin/smbd(messaging_dispatch_rec+0x5f) [0xb7cc318f]
   #13 /usr/sbin/smbd [0xb7cc57ea]
   #14 /usr/sbin/smbd(tevent_common_check_signal+0x238) [0xb7cfd728]
   #15 /usr/sbin/smbd(run_events+0x26) [0xb7cfb736]
   #16 /usr/sbin/smbd [0xb7cfba41]
   #17 /usr/sbin/smbd(_tevent_loop_once+0x97) [0xb7cfc107]
   #18 /usr/sbin/smbd(main+0xc07) [0xb7fc7d37]
   #19 /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7585455]
   #20 /usr/sbin/smbd [0xb7a70e01]
[2010/11/08 09:18:18,  0, effective(0, 0), real(0, 0)] lib/util.c:1485(smb_panic)
  smb_panic(): calling panic action [/usr/share/samba/panic-action 3642]


Any idea to solved this problem?
Comment 1 Petr Jurasek 2010-11-08 03:51:16 UTC
coredump you can find at:
http://www.solnet.cz/files/download/core.20101108
Comment 2 Volker Lendecke 2010-11-08 03:53:20 UTC
You are using clustered Samba with ctdb? Please upload your smb.conf and your ctdb configuration.

Thanks,

Volker
Comment 3 Petr Jurasek 2010-11-08 04:03:17 UTC
(In reply to comment #2)
> You are using clustered Samba with ctdb? Please upload your smb.conf and your
> ctdb configuration.

No, not using clustered Samba.

Smb.conf (and included local.conf) follows.
Comment 4 Petr Jurasek 2010-11-08 04:04:24 UTC
Created attachment 6052 [details]
smb.conf
Comment 5 Petr Jurasek 2010-11-08 04:04:52 UTC
Created attachment 6053 [details]
local.conf (included from smb.conf)
Comment 6 Volker Lendecke 2010-11-08 04:16:10 UTC
You're saying you are using Version 3.4.0. If you do not want to upgrade to 3.5, please at least upgrade to 3.4.9, which is the latest 3.4 version.

Thanks,

Volker
Comment 7 Petr Jurasek 2010-11-08 04:40:31 UTC
(In reply to comment #6)
> You're saying you are using Version 3.4.0. If you do not want to upgrade to
> 3.5, please at least upgrade to 3.4.9, which is the latest 3.4 version.

We're using samba 3.4 from ubuntu karmic. 3.4.7 is in lucid and 3.5.4 in maverick. I'll try to backport version 3.5.4 from maverick and check.