Bug 19356 - samba crashes at start
Summary: samba crashes at start
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Buchan Milne
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2016-09-14 13:06 CEST by Helge Hielscher
Modified: 2016-09-29 19:22 CEST (History)
7 users (show)

See Also:
Source RPM: samba-4.4.5-1.mga6.src.rpm
CVE:
Status comment:


Attachments
my smb.conf (12.11 KB, application/json)
2016-09-14 13:08 CEST, Helge Hielscher
Details

Description Helge Hielscher 2016-09-14 13:06:14 CEST
Description of problem: samba does not start


Version-Release number of selected component (if applicable): unsure because samba was not updated recently


How reproducible: always


Steps to Reproduce:
1. # /bin/systemctl restart smb.service

Result:

[2016/09/14 12:59:41.048723,  0] ../lib/util/fault.c:78(fault_report)
  ===============================================================
[2016/09/14 12:59:41.048982,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 11 in pid 18326 (4.4.5)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2016/09/14 12:59:41.049094,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2016/09/14 12:59:41.049166,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 18326): internal error
[2016/09/14 12:59:41.051258,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 14 stack frames:
   #0 /usr/lib64/libsmbconf.so.0(log_stack_trace+0x2d) [0x7f523529087d]
   #1 /usr/lib64/libsmbconf.so.0(smb_panic_s3+0x30) [0x7f5235290980]
   #2 /usr/lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f52377e227f]
   #3 /usr/lib64/libsamba-util.so.0(+0x204a6) [0x7f52377e24a6]
   #4 /usr/lib64/libpthread.so.0(+0x10bb0) [0x7f5237a4dbb0]
   #5 /usr/lib64/libtevent.so.0(tevent_debug+0x56) [0x7f5233c734c6]
   #6 /usr/lib64/libtevent.so.0(tevent_common_loop_timer_delay+0xba) [0x7f5233c77a9a]
   #7 /usr/lib64/libsmbconf.so.0(run_events_poll+0x1e4) [0x7f52352a8e24]
   #8 /usr/lib64/libsmbconf.so.0(+0x39fa6) [0x7f52352a8fa6]
   #9 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f5233c7307d]
   #10 /usr/lib64/libtevent.so.0(tevent_req_poll+0x1f) [0x7f5233c7442f]
   #11 /usr/sbin/smbd(main+0x9e6) [0x55df81e1cf96]
   #12 /usr/lib64/libc.so.6(__libc_start_main+0xf0) [0x7f52338db600]
   #13 /usr/sbin/smbd(_start+0x29) [0x55df81e1dfe9]
[2016/09/14 12:59:41.051924,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
[2016/09/14 12:59:41.053297,  0] ../lib/util/fault.c:78(fault_report)
  ===============================================================
[2016/09/14 12:59:41.053575,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 11 in pid 18327 (4.4.5)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2016/09/14 12:59:41.053652,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2016/09/14 12:59:41.053704,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 18327): internal error
[2016/09/14 12:59:41.054617,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 5 stack frames:
   #0 /usr/lib64/libsmbconf.so.0(log_stack_trace+0x2d) [0x7f523529087d]
   #1 /usr/lib64/libsmbconf.so.0(smb_panic_s3+0x30) [0x7f5235290980]
   #2 /usr/lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f52377e227f]
   #3 /usr/lib64/libsamba-util.so.0(+0x204a6) [0x7f52377e24a6]
   #4 /usr/lib64/libpthread.so.0(+0x10bb0) [0x7f5237a4dbb0]
[2016/09/14 12:59:41.054742,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
[2016/09/14 12:59:41.057860,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2016/09/14 12:59:41.068496,  0] ../lib/util/fault.c:78(fault_report)
  ===============================================================
[2016/09/14 12:59:41.068597,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 11 in pid 18330 (4.4.5)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2016/09/14 12:59:41.068645,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2016/09/14 12:59:41.068673,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 18330): internal error
[2016/09/14 12:59:41.069722,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 15 stack frames:
   #0 /usr/lib64/libsmbconf.so.0(log_stack_trace+0x2d) [0x7f523529087d]
   #1 /usr/lib64/libsmbconf.so.0(smb_panic_s3+0x30) [0x7f5235290980]
   #2 /usr/lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f52377e227f]
   #3 /usr/lib64/libsamba-util.so.0(+0x204a6) [0x7f52377e24a6]
   #4 /usr/lib64/libpthread.so.0(+0x10bb0) [0x7f5237a4dbb0]
   #5 /usr/lib64/libtalloc.so.2(talloc_get_size+0x5) [0x7f5233e836b5]
   #6 /usr/lib64/libsmbconf.so.0(event_add_to_poll_args+0x86) [0x7f52352a89e6]
   #7 /usr/lib64/libsmbconf.so.0(+0x39fef) [0x7f52352a8fef]
   #8 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f5233c7307d]
   #9 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f5233c732ab]
   #10 /usr/lib64/samba/libsmbd-base-samba4.so(start_background_queue+0x29f) [0x7f52372e078f]
   #11 /usr/lib64/samba/libsmbd-base-samba4.so(printing_subsystem_init+0xad) [0x7f52372e0acd]
   #12 /usr/sbin/smbd(main+0x13f4) [0x55df81e1d9a4]
   #13 /usr/lib64/libc.so.6(__libc_start_main+0xf0) [0x7f52338db600]
   #14 /usr/sbin/smbd(_start+0x29) [0x55df81e1dfe9]
[2016/09/14 12:59:41.069972,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
[2016/09/14 12:59:41.072296,  0] ../lib/util/fault.c:78(fault_report)
  ===============================================================
[2016/09/14 12:59:41.072388,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 11 in pid 18325 (4.4.5)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2016/09/14 12:59:41.072442,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2016/09/14 12:59:41.072481,  0] ../source3/lib/util.c:791(smb_panic_s3)
  PANIC (pid 18325): internal error
[2016/09/14 12:59:41.073117,  0] ../source3/lib/util.c:902(log_stack_trace)
  BACKTRACE: 13 stack frames:
   #0 /usr/lib64/libsmbconf.so.0(log_stack_trace+0x2d) [0x7f523529087d]
   #1 /usr/lib64/libsmbconf.so.0(smb_panic_s3+0x30) [0x7f5235290980]
   #2 /usr/lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f52377e227f]
   #3 /usr/lib64/libsamba-util.so.0(+0x204a6) [0x7f52377e24a6]
   #4 /usr/lib64/libpthread.so.0(+0x10bb0) [0x7f5237a4dbb0]
   #5 /usr/lib64/libtalloc.so.2(talloc_get_size+0x5) [0x7f5233e836b5]
   #6 /usr/lib64/libsmbconf.so.0(event_add_to_poll_args+0x86) [0x7f52352a89e6]
   #7 /usr/lib64/libsmbconf.so.0(+0x39fef) [0x7f52352a8fef]
   #8 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f5233c7307d]
   #9 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f5233c732ab]
   #10 /usr/sbin/smbd(main+0x188b) [0x55df81e1de3b]
   #11 /usr/lib64/libc.so.6(__libc_start_main+0xf0) [0x7f52338db600]
   #12 /usr/sbin/smbd(_start+0x29) [0x55df81e1dfe9]
[2016/09/14 12:59:41.073424,  0] ../source3/lib/dumpcore.c:303(dump_core)
  dumping core in /var/log/samba/cores/smbd
Comment 1 Helge Hielscher 2016-09-14 13:08:59 CEST
Created attachment 8411 [details]
my smb.conf
Comment 2 Helge Hielscher 2016-09-14 13:17:15 CEST
also crashed with smb.conf from samba-common-4.4.5-1.mga6.x86_64.rpm
Comment 3 David Walser 2016-09-14 16:59:49 CEST
Thanks for the report, I believe this just needed to be rebuilt for some supporting libraries that have been updated since it was built.

Please confirm that samba-4.4.5-2.mga6 no longer crashes when it reaches your mirror, and close this as FIXED if so.
Comment 4 Helge Hielscher 2016-09-15 13:07:40 CEST
Unfortunately samba-common-4.4.5-2.mga6 did not fix it. I get just the same crash log.
Comment 5 Curtis Hildebrand 2016-09-20 07:00:23 CEST
Same crash on two different computers here as well

CC: (none) => curtis_mageia

Comment 6 Marja Van Waes 2016-09-20 18:59:59 CEST
Assigning to the registered maintainer, but also CC'ing neoclust, who has done recent active maintenance on this package and who is the registered maintainer of samba4 (whatever that may be :-þ), and CC'ing pkg-bugs ml, because the registered maintainer seems to be unavailable

Keywords: (none) => Triaged
CC: (none) => mageia, marja11, pkg-bugs
Assignee: bugsquad => bgmilne

Comment 7 David GEIGER 2016-09-20 19:21:03 CEST
I confirm here too, smb daemon is not activate:


# systemctl status smb 
â smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
   Active: failed (Result: core-dump) since mar. 2016-09-20 19:11:16 CEST; 6s ago
  Process: 2554 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=dumped, signal=ABRT)
 Main PID: 2554 (code=dumped, signal=ABRT)
   Status: "smbd: ready to serve connections..."

sept. 20 19:11:16 daviddavid smbd[2560]: [2016/09/20 19:11:16.024236,  0] ../lib/util/fault.c:81(fault_report)
sept. 20 19:11:16 daviddavid smbd[2560]:   ===============================================================
sept. 20 19:11:16 daviddavid smbd[2560]: [2016/09/20 19:11:16.024254,  0] ../source3/lib/util.c:791(smb_panic_s3)
sept. 20 19:11:16 daviddavid smbd[2554]: [2016/09/20 19:11:16.027501,  0] ../lib/util/fault.c:78(fault_report)
sept. 20 19:11:16 daviddavid smbd[2554]:   ===============================================================
sept. 20 19:11:16 daviddavid smbd[2554]: [2016/09/20 19:11:16.027576,  0] ../lib/util/fault.c:79(fault_report)
sept. 20 19:11:16 daviddavid smbd[2554]:   INTERNAL ERROR: Signal 11 in pid 2554 (4.4.5)
sept. 20 19:11:16 daviddavid systemd[1]: smb.service: Main process exited, code=dumped, status=6/ABRT
sept. 20 19:11:16 daviddavid systemd[1]: smb.service: Unit entered failed state.
sept. 20 19:11:16 daviddavid systemd[1]: smb.service: Failed with result 'core-dump'.
#

CC: (none) => geiger.david68210

Comment 8 Giuseppe Ghibò 2016-09-20 20:21:31 CEST
OK, sound the culprit was the upgrade to libtevent 0.9.30, downgrading to lib{64}tevent0-0.9.29-1.mga6 would have samba starting again. In fact 0.9.30 was pretty recent upgrade.

CC: (none) => ghibomgx

Comment 9 Shlomi Fish 2016-09-20 20:30:20 CEST
Hi all!

(In reply to Giuseppe Ghibò from comment #8)
> OK, sound the culprit was the upgrade to libtevent 0.9.30, downgrading to
> lib{64}tevent0-0.9.29-1.mga6 would have samba starting again. In fact 0.9.30
> was pretty recent upgrade.

I can confirm that the problem disappears with the downgrade of libtevent.

CC: (none) => shlomif

Comment 10 Giuseppe Ghibò 2016-09-22 14:33:21 CEST
There is an upstream bug report for this:

https://bugzilla.samba.org/show_bug.cgi?id=12283

I crosslinked with ours.
Nicolas Lécureuil 2016-09-22 14:40:30 CEST

See Also: (none) => https://bugzilla.samba.org/show_bug.cgi?id=12283

Comment 11 Shlomi Fish 2016-09-27 17:28:44 CEST
OK, with tevent downgraded to 0.9.29, the problem disappears but now htop is showing smbd consuming 100% of a single CPU even when the samba service is completely idle. Does it also happen to you?
Comment 12 David GEIGER 2016-09-27 17:31:39 CEST
(In reply to Shlomi Fish from comment #11)
> OK, with tevent downgraded to 0.9.29, the problem disappears but now htop is
> showing smbd consuming 100% of a single CPU even when the samba service is
> completely idle. Does it also happen to you?

Why downgraded tevent? there is a fix in samba 4.5.0 in Core/Updates_testing who works just fine now, thanks to Giuseppe :)
Comment 13 Giuseppe Ghibò 2016-09-27 17:33:51 CEST
Sorry I forgot to say here that there is samba-4.5.0-2.mga6 in updates/testing and such version works with libtevent 0.9.30 and doesn't consume all the CPUs cycles. Such version includes patches made by the samba authors.
Comment 14 Giuseppe Ghibò 2016-09-27 17:34:52 CEST
Please check too if you can (also on plain samba usage).
Comment 15 David GEIGER 2016-09-27 17:39:22 CEST
For me it seems to work properly testing some samba service, sharing between my PCs, etc...

No regression found!
Comment 16 Nicolas Lécureuil 2016-09-27 17:51:19 CEST
i will move it to release
Comment 17 Helge Hielscher 2016-09-29 00:34:57 CEST
WFM/samba-4.5.0-2.mga6.src.rpm

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 18 Giuseppe Ghibò 2016-09-29 19:22:05 CEST
There is still one side effect: on some configuration /usr/sbin/smbd might eat 100% CPU. This was also affecting previos versions 4.4.x. To get rid of it one need to install and start cups, in particular cups and cups-filters packages and start cups (cups.service and cups-browsed.service)-.

Note You need to log in before you can comment on or make changes to this bug.