Bug 1385327

Summary: Samba: Internal Error: Signal 11
Product: [Fedora] Fedora Reporter: Marc Muehlfeld <rh>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: abokovoy, anoopcs, asn, gdeschner, jrivera, lists, lmohanty, madam, mmuehlfe, nerijus, sbose, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-17 15:05:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
smb.conf
none
Level 10 Debug Log none

Description Marc Muehlfeld 2016-10-16 10:10:17 UTC
Created attachment 1210937 [details]
smb.conf

Description of problem:
Samba crashes with "internal error: Signal 11" at startup.



Version-Release number of selected component (if applicable):
samba-4.5.0-2.fc25.x86_64



How reproducible:
Always.



Steps to Reproduce:
1. Install Samba
2. Start Samba (systemctl start smb)



Actual results:
[2016/10/16 11:53:26.406049,  1] ../source3/profile/profile.c:51(set_profile_level)
  INFO: Profiling turned OFF from pid 5248
[2016/10/16 11:53:26.411048,  0] ../lib/util/fault.c:78(fault_report)
  ===============================================================
[2016/10/16 11:53:26.411122,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 11 in pid 5251 (4.5.0)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2016/10/16 11:53:26.411150,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2016/10/16 11:53:26.411169,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 5251): internal error
[2016/10/16 11:53:26.411262,  0] ../lib/util/fault.c:78(fault_report)
  ===============================================================
[2016/10/16 11:53:26.411335,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 11 in pid 5252 (4.5.0)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2016/10/16 11:53:26.411361,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2016/10/16 11:53:26.411379,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 5252): internal error
[2016/10/16 11:53:26.411682,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 14 stack frames:
   #0 /lib64/libsmbconf.so.0(log_stack_trace+0x1c) [0x7f70b11cb80c]
   #1 /lib64/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f70b11cb8e0]
   #2 /lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f70b36bf82f]
   #3 /lib64/libsamba-util.so.0(+0x22a46) [0x7f70b36bfa46]
   #4 /lib64/libpthread.so.0(+0x115c0) [0x7f70b39235c0]
   #5 /lib64/libtevent.so.0(tevent_debug+0x56) [0x7f70afc04f06]
   #6 /lib64/libtevent.so.0(tevent_common_loop_timer_delay+0xba) [0x7f70afc094ea]
   #7 /lib64/libsmbconf.so.0(run_events_poll+0x1a9) [0x7f70b11e32b9]
   #8 /lib64/libsmbconf.so.0(+0x36457) [0x7f70b11e3457]
   #9 /lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f70afc04abd]
   #10 /lib64/libtevent.so.0(tevent_req_poll+0x23) [0x7f70afc05e23]
   #11 /usr/sbin/smbd(main+0x860) [0x55889a3176b0]
   #12 /lib64/libc.so.6(__libc_start_main+0xf1) [0x7f70af85a401]
   #13 /usr/sbin/smbd(_start+0x2a) [0x55889a3186ba]
[2016/10/16 11:53:26.411797,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 5 stack frames:
[2016/10/16 11:53:26.411818,  0] ../source3/lib/dumpcore.c:303(dump_core)
   #0 /lib64/libsmbconf.so.0(log_stack_trace+0x1c) [0x7f70b11cb80c]
  dumping core in /var/log/samba/cores/smbd
   #1 /lib64/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f70b11cb8e0]
   #2 /lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f70b36bf82f]
   #3 /lib64/libsamba-util.so.0(+0x22a46) [0x7f70b36bfa46]
   #4 /lib64/libpthread.so.0(+0x115c0) [0x7f70b39235c0]
[2016/10/16 11:53:26.411874,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
[2016/10/16 11:53:26.416653,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2016/10/16 11:53:26.417636,  1] ../source3/printing/printer_list.c:234(printer_list_get_last_refresh)
  Failed to fetch record!
[2016/10/16 11:53:26.421938,  0] ../lib/util/fault.c:78(fault_report)
  ===============================================================
[2016/10/16 11:53:26.422014,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 11 in pid 5255 (4.5.0)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2016/10/16 11:53:26.422046,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2016/10/16 11:53:26.422064,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 5255): internal error
[2016/10/16 11:53:26.422610,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 15 stack frames:
   #0 /lib64/libsmbconf.so.0(log_stack_trace+0x1c) [0x7f70b11cb80c]
   #1 /lib64/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f70b11cb8e0]
   #2 /lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f70b36bf82f]
   #3 /lib64/libsamba-util.so.0(+0x22a46) [0x7f70b36bfa46]
   #4 /lib64/libpthread.so.0(+0x115c0) [0x7f70b39235c0]
   #5 /lib64/libtalloc.so.2(talloc_get_size+0x5) [0x7f70afe15125]
   #6 /lib64/libsmbconf.so.0(event_add_to_poll_args+0x76) [0x7f70b11e2eb6]
   #7 /lib64/libsmbconf.so.0(+0x36491) [0x7f70b11e3491]
   #8 /lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f70afc04abd]
   #9 /lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f70afc04ceb]
   #10 /usr/lib64/samba/libsmbd-base-samba4.so(start_background_queue+0x2b1) [0x7f70b31d5a31]
   #11 /usr/lib64/samba/libsmbd-base-samba4.so(printing_subsystem_init+0xb7) [0x7f70b31d5d57]
   #12 /usr/sbin/smbd(main+0x17e1) [0x55889a318631]
   #13 /lib64/libc.so.6(__libc_start_main+0xf1) [0x7f70af85a401]
   #14 /usr/sbin/smbd(_start+0x2a) [0x55889a3186ba]
[2016/10/16 11:53:26.422774,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
[2016/10/16 11:53:26.453473,  1] ../source3/smbd/server.c:803(remove_child_pid)
  remove_child_pid: Restarting cleanupd
[2016/10/16 11:53:26.453523,  0] ../lib/util/fault.c:78(fault_report)
  ===============================================================
[2016/10/16 11:53:26.453571,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 11 in pid 5250 (4.5.0)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2016/10/16 11:53:26.453595,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2016/10/16 11:53:26.453612,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 5250): internal error
[2016/10/16 11:53:26.453870,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 19 stack frames:
   #0 /lib64/libsmbconf.so.0(log_stack_trace+0x1c) [0x7f70b11cb80c]
   #1 /lib64/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f70b11cb8e0]
   #2 /lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f70b36bf82f]
   #3 /lib64/libsamba-util.so.0(+0x22a46) [0x7f70b36bfa46]
   #4 /lib64/libpthread.so.0(+0x115c0) [0x7f70b39235c0]
   #5 /lib64/libtevent.so.0(tevent_timeval_compare+0) [0x7f70afc090a0]
   #6 /lib64/libtevent.so.0(+0x9251) [0x7f70afc09251]
   #7 /lib64/libtevent.so.0(tevent_common_add_timer+0x13) [0x7f70afc09403]
   #8 /lib64/libtevent.so.0(tevent_req_set_endtime+0x60) [0x7f70afc05ef0]
   #9 /lib64/libtevent.so.0(tevent_wakeup_send+0x55) [0x7f70afc097a5]
   #10 /usr/sbin/smbd(+0xaebe) [0x55889a31bebe]
   #11 /lib64/libtevent.so.0(tevent_common_check_signal+0x278) [0x7f70afc08a58]
   #12 /lib64/libsmbconf.so.0(run_events_poll+0x24) [0x7f70b11e3134]
   #13 /lib64/libsmbconf.so.0(+0x364f7) [0x7f70b11e34f7]
   #14 /lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f70afc04abd]
   #15 /lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f70afc04ceb]
   #16 /usr/sbin/smbd(main+0x1642) [0x55889a318492]
   #17 /lib64/libc.so.6(__libc_start_main+0xf1) [0x7f70af85a401]
   #18 /usr/sbin/smbd(_start+0x2a) [0x55889a3186ba]
[2016/10/16 11:53:26.454026,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd



Expected results:
smbd should start correctly.



Additional info:
- SELinux is disabled.
- Even if the log says, there is no core dump file in the mentioned directory.
- smb.conf for a standalone server with guest share attached.

Comment 1 Marc Muehlfeld 2016-10-16 10:12:37 UTC
Created attachment 1210938 [details]
Level 10 Debug Log

Comment 2 Marc Muehlfeld 2016-10-16 14:20:57 UTC
I figured out, what causes the problem: The libtevent package is incompatible.

F25 ships libtevent-0.9.30-1.fc25.x86_64. I downloaded the libtevent-0.9.28-1.fc24.x86_64 from the F24 repo and downgraded it using "dnf". Now Samba starts correctly.

Can you please ship an older version of libtevent in F25 or fix whatever causes this incompatibility? Thanks.

Comment 3 Nerijus Baliƫnas 2016-10-17 08:26:20 UTC
Same here, downgrading libtevent helped.

Comment 4 Andreas Schneider 2016-10-17 15:05:57 UTC

*** This bug has been marked as a duplicate of bug 1375973 ***