[Samba] samba 4.9.5 smbd panic

Andrea Cucciarre' acucciarre at cloudian.com
Fri Jan 24 11:23:24 UTC 2020


Hello,

I have the logs with log level set to 10.
May I know which log file do you need? The panic message seems to be the 
same as when happened with log level set to 2 (attached below) and many 
clients were accessing the share so there are a lot of logs.
I can't reproduce it in my lab tests, so It would help me to run more 
specific tests if you could explain me what smbd was doing when the 
panic occurred.

Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] PANIC: 
assert failed at ../source3/modules/vfs_default.c(1614): ok
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] 
[2020/01/21 21:22:16.517305,  0, pid=24238, effective(0, 0), real(0, 0)] 
../source3/lib/util.c:816(smb_panic_s3)
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] PANIC 
(pid 24238): assert failed: ok
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] 
[2020/01/21 21:22:16.532491,  0, pid=24238, effective(0, 0), real(0, 0)] 
../lib/util/fault.c:261(log_stack_trace)
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] 
BACKTRACE: 54 stack frames:
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #0 
/opt/samba/lib/libsamba-util.so.0.0.1'log_stack_trace+0x26 [0xfedabc3e]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #1 
/opt/samba/lib/libsmbconf.so.0'smb_panic_s3+0x68 [0xfe8b184f]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #2 
/opt/samba/lib/libsamba-util.so.0.0.1'smb_panic+0x2a [0xfedabc00]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #3 
/opt/samba/lib/private/libsmbd-base-samba4.so'vfswrap_offload_write_cleanup+0xd8 
[0xfe4f3cb5]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #4 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_cleanup+0x4b 
[0xfec48771]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #5 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_received+0xad 
[0xfec48ade]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #6 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_destructor+0x1e 
[0xfec486b4]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #7 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_internal+0xf6 
[0xfecc373b]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #8 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_children_internal+0x7a 
[0xfecc45de]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #9 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_internal+0x255 
[0xfecc389a]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #10 
/opt/samba/lib/private/libtalloc.so.2.1.14'_talloc_free_internal+0x98 
[0xfecc3a50]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #11 
/opt/samba/lib/private/libtalloc.so.2.1.14'_talloc_free+0xea [0xfecc497e]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #12 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_received+0xd0 
[0xfec48b01]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #13 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_destructor+0x1e 
[0xfec486b4]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #14 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_internal+0xf6 
[0xfecc373b]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #15 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_children_internal+0x7a 
[0xfecc45de]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #16 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_internal+0x255 
[0xfecc389a]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #17 
/opt/samba/lib/private/libtalloc.so.2.1.14'_talloc_free_internal+0x98 
[0xfecc3a50]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #18 
/opt/samba/lib/private/libtalloc.so.2.1.14'_talloc_free+0xea [0xfecc497e]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #19 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_received+0xd0 
[0xfec48b01]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #20 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_destructor+0x1e 
[0xfec486b4]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #21 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_internal+0xf6 
[0xfecc373b]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #22 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_children_internal+0x7a 
[0xfecc45de]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #23 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_internal+0x255 
[0xfecc389a]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #24 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_children_internal+0x7a 
[0xfecc45de]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #25 
/opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_internal+0x255 
[0xfecc389a]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #26 
/opt/samba/lib/private/libtalloc.so.2.1.14'_talloc_free_internal+0x98 
[0xfecc3a50]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #27 
/opt/samba/lib/private/libtalloc.so.2.1.14'_talloc_free+0xea [0xfecc497e]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #28 
/opt/samba/lib/private/libsmbd-base-samba4.so'exit_server_common+0x492 
[0xfe621481]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #29 
/opt/samba/lib/private/libsmbd-base-samba4.so'smbd_reinit_after_fork+0x0 
[0xfe621636]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #30 
/opt/samba/lib/private/libsmbd-shim-samba4.so'exit_server_cleanly+0x29 
[0xfdb61056]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #31 
/opt/samba/lib/private/libsmbd-base-samba4.so'smbd_server_connection_terminate_ex+0x169 
[0xfe5e9cfb]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #32 
/opt/samba/lib/private/libsmbd-base-samba4.so'smbd_smb2_connection_handler+0x81 
[0xfe5f1f81]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #33 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_common_invoke_fd_handler+0xe2 
[0xfec4727c]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #34 
/opt/samba/lib/private/libtevent.so.0.9.37'epoll_event_loop+0x359 
[0xfec504d5]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #35 
/opt/samba/lib/private/libtevent.so.0.9.37'epoll_event_loop_once+0x12d 
[0xfec50b12]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #36 
/opt/samba/lib/private/libtevent.so.0.9.37'std_event_loop_once+0x58 
[0xfec4d7e0]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #37 
/opt/samba/lib/private/libtevent.so.0.9.37'_tevent_loop_once+0xdb 
[0xfec46715]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #38 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_common_loop_wait+0x22 
[0xfec469a2]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #39 
/opt/samba/lib/private/libtevent.so.0.9.37'std_event_loop_wait+0x58 
[0xfec4d87b]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #40 
/opt/samba/lib/private/libtevent.so.0.9.37'_tevent_loop_wait+0x23 
[0xfec46a37]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #41 
/opt/samba/lib/private/libsmbd-base-samba4.so'smbd_process+0xb5c 
[0xfe5d6d7a]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #42 
/opt/samba/sbin/smbd'smbd_accept_connection+0x365 [0x805c8c1]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #43 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_common_invoke_fd_handler+0xe2 
[0xfec4727c]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #44 
/opt/samba/lib/private/libtevent.so.0.9.37'epoll_event_loop+0x359 
[0xfec504d5]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #45 
/opt/samba/lib/private/libtevent.so.0.9.37'epoll_event_loop_once+0x12d 
[0xfec50b12]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #46 
/opt/samba/lib/private/libtevent.so.0.9.37'std_event_loop_once+0x58 
[0xfec4d7e0]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #47 
/opt/samba/lib/private/libtevent.so.0.9.37'_tevent_loop_once+0xdb 
[0xfec46715]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #48 
/opt/samba/lib/private/libtevent.so.0.9.37'tevent_common_loop_wait+0x22 
[0xfec469a2]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #49 
/opt/samba/lib/private/libtevent.so.0.9.37'std_event_loop_wait+0x58 
[0xfec4d87b]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #50 
/opt/samba/lib/private/libtevent.so.0.9.37'_tevent_loop_wait+0x23 
[0xfec46a37]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #51 
/opt/samba/sbin/smbd'smbd_parent_loop+0x95 [0x805d3f7]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #52 
/opt/samba/sbin/smbd'main+0x1778 [0x805f4b1]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] #53 
/opt/samba/sbin/smbd'_start+0x83 [0x8056a53]
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] 
[2020/01/21 21:22:16.539451,  0, pid=24238, effective(0, 0), real(0, 0)] 
../source3/lib/dumpcore.c:315(dump_core)
Jan 21 21:22:16 fact-hf01 smbd[24238]: [ID 702911 daemon.error] dumping 
core in /opt/samba/var/cores/smbd


Regards
Andrea Cucciarre'


On 1/15/2020 11:53 AM, Rowland penny via samba wrote:
> On 15/01/2020 10:16, Andrea Cucciarre' via samba wrote:
>> Hello,
>>
>> Some of my system running Samba 4.9.5 are suffering the following 
>> smbd panic:
>>
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] 
>> [2020/01/14 21:15:56.552277,  0] ../lib/util/fault.c:79(fault_report)
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] 
>> ===============================================================
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] 
>> [2020/01/14 21:15:56.554475,  0] ../lib/util/fault.c:80(fault_report)
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] 
>> INTERNAL ERROR: Signal 11 in pid 444 (4.9.5)
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] Please 
>> read the Trouble-Shooting section of the Samba HOWTO
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] 
>> [2020/01/14 21:15:56.554638,  0] ../lib/util/fault.c:82(fault_report)
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] 
>> ===============================================================
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] 
>> [2020/01/14 21:15:56.554713,  0] ../source3/lib/util.c:816(smb_panic_s3)
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] PANIC 
>> (pid 444): internal error
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] 
>> [2020/01/14 21:15:56.658060,  0] 
>> ../lib/util/fault.c:261(log_stack_trace)
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] 
>> BACKTRACE: 60 stack frames:
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #0 
>> /opt/samba/lib/libsamba-util.so.0.0.1'log_stack_trace+0x26 [0xfedabc3e]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #1 
>> /opt/samba/lib/libsmbconf.so.0'smb_panic_s3+0x68 [0xfe8b184f]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #2 
>> /opt/samba/lib/libsamba-util.so.0.0.1'smb_panic+0x2a [0xfedabc00]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #3 
>> /opt/samba/lib/libsamba-util.so.0.0.1'sig_fault+0x0 [0xfedab910]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #4 
>> /opt/samba/lib/libsamba-util.so.0.0.1'sig_fault+0x1b [0xfedab92b]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #5 
>> /lib/libc.so.1'__sighndlr+0x15 [0xfc57c465]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #6 
>> /lib/libc.so.1'call_user_handler+0x298 [0xfc570ceb]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #7 
>> /opt/samba/lib/private/libsmbd-base-samba4.so'change_to_user+0x2a 
>> [0xfe59ed5a]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #8 
>> /opt/samba/lib/private/libsmbd-base-samba4.so'change_to_user_by_fsp+0x2e 
>> [0xfe59eeab]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #9 
>> /opt/samba/lib/private/libsmbd-base-samba4.so'vfswrap_offload_write_cleanup+0x5c 
>> [0xfe4f3c39]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #10 
>> /opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_cleanup+0x4b 
>> [0xfec48771]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #11 
>> /opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_received+0xad 
>> [0xfec48ade]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #12 
>> /opt/samba/lib/private/libtevent.so.0.9.37'tevent_req_destructor+0x1e 
>> [0xfec486b4]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #13 
>> /opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_internal+0xf6 
>> [0xfecc373b]
>> Jan 14 21:15:56 fact-hf01 smbd[444]: [ID 702911 daemon.error] #14 
>> /opt/samba/lib/private/libtalloc.so.2.1.14'_tc_free_children_internal+0x7a 
>> [0xfecc45de]
>> .......
>>
>> # pstack core\ \(1\).smbd
>> core 'core (1).smbd' of 444:    /opt/samba/sbin/smbd --daemon
>> -----------------  lwp# 1 / thread# 1  --------------------
>>  fc581035 _lwp_kill (1, 6, 8046b60, fc5ef000, fc5ef000, 0) + 15
>>  fc515eeb raise    (6, 0, 8046b80, 0, 0, 0) + 2b
>>  fc4f0aae abort    (fe8ffff0, fc1b2a40, 8046be8, fe8b19a5, fc5ef000, 
>> fee05a6c) + 10e
>>  fe8c31ed ???????? (fc5ef000, fee05a6c, 8046c08, 810a118, fedf4e80, 
>> fee05a6c)
>>  fe8b19a5 readdirname (fedf4f75, 808d590, 8046c14, fedabbe2)
>>  fedabc00 smb_panic (fedf4f75, 0, fedf4f5e, fedf50c4, fc518c46, 
>> fc5ef000) + 2a
>>  fedab910 sig_fault (b, fc5ef000, 8046c9c, fedab91b)
>>  fedab92b sig_fault (b, 0, 8046d10, fc5ef000, fc5ef000, fc1b2a40) + 1b
>>  fc57c465 __sighndlr (b, 0, 8046d10, fedab910, 80a44e0, 8046ca8) + 15
>>  fc570ceb call_user_handler (b, 0, 8046d10, fc1b2a40, fc5ef804, 
>> 8046d28) + 298
>>  fc570d89 sigacthandler (b, 0, 8046d10) + 80
>>  --- called from signal handler with signal 11 (SIGSEGV) ---
>>  fe59ed5a change_to_user (fdea6642, 0, 0, fe59ee89) + 2a
>>  fe59eeab change_to_user_by_fsp (812bdd8, fe6d7418, fe6d73f0, 
>> fe4f3be9) + 2e
>>  fe4f3c39 vfswrap_offload_write_cleanup (8160b98, 6, 8160be8, 
>> fec48731) + 5c
>>  fec48771 tevent_req_cleanup (8160b98, fec52af0, 26011999, fec48a3d) 
>> + 4b
>>  fec48ade tevent_req_received (8160b98, 0, 8160b68, fec486a2) + ad
>>  fec486b4 tevent_req_destructor (8160b98, 0, 8047048, fecc3651) + 1e
>>  fecc373b _tc_free_internal (8160b68, fec52b30, 0, fecc4570) + f6
>>  fecc45de _tc_free_children_internal (8161220, 8161250, fec52b30, 
>> fecc3651) + 7a
>>  fecc389a _tc_free_internal (8161220, fec52b30, 0, fecc39c4) + 255
>>  fecc3a50 _talloc_free_internal (8161250, fec52b30, 8047108, 
>> fecc48a0) + 98
>>  fecc497e _talloc_free (8161250, fec52b30, 8047138, fec48a3d) + ea
>>  fec48b01 tevent_req_received (8161170, 816c250, 8161140, fec486a2) + d0
>>  fec486b4 tevent_req_destructor (8161170, fec52b30, fec52b30, 
>> fecc3651) + 1e
>>  fecc373b _tc_free_internal (8161140, fec52b30, 80471d8, fecc4570) + f6
>>  fecc45de _tc_free_children_internal (816c1a0, 816c1d0, fec52b30, 
>> fecc3651) + 7a
>>  fecc389a _tc_free_internal (816c1a0, fec52b30, 4, fecc39c4) + 255
>>  fecc3a50 _talloc_free_internal (816c1d0, fec52b30, 809fac8, 
>> fecc48a0) + 98
>>  fecc497e _talloc_free (816c1d0, fec52b30, 0, fec48a3d) + ea
>>
>> Any idea what could be the root-cause?
>>
> First, Samba shouldn't panic, so we are going to need more info. What 
> OS ? Is this using OS packages or have you compiled Samba yourself ? 
> How are you running Samba, supplying your smb.conf will help. Can you 
> get level 10 logs ?
>
> Rowland
>
>
>




More information about the samba mailing list