[Samba] samba4.2.0 crashes on connection attempt with an internal samba error...

Peter Serbe peter at serbe.ch
Fri Mar 27 14:46:46 MDT 2015


Dear Samba fellows, 

I try to install samba on my notebook in order to get it into 
my samba based domain. It was a bit picky to get everything 
assembled on the notebook - but that last issue is hard. :-( 

I installed it from the sources on Debian Jessie - exactly 
in the same manner I used for my servers. I got sssd and 
kerberos working...

> root at alecto:/usr/src/samba4/samba-4.2.0# getent passwd administrator
> administrator:*:10001:20000:Administrator:/home/Administrator:/bin/sh
> root at alecto:/usr/src/samba4/samba-4.2.0# kinit administrator
> Password for administrator at HOME.SERBE.CH: 
> root at alecto:/usr/src/samba4/samba-4.2.0# klist
> Ticket cache: FILE:/tmp/krb5cc_0
> Default principal: administrator at HOME.SERBE.CH
>
> Valid starting       Expires              Service principal
> 27.03.2015 21:32:35  28.03.2015 07:32:35  krbtgt/HOME.SERBE.CH at HOME.SERBE.CH
>	renew until 28.03.2015 21:32:29

Samba seems to start OK. 

> root at alecto:/usr/src/samba4/samba-4.2.0# tail -n 10 /var/log/daemon.log
> Mar 27 21:34:39 alecto winbindd[4864]: [2015/03/27 21:34:39.873778,  0] ../source3/winbindd/winbindd_cache.c:3235(initialize_winbindd_cache)
> Mar 27 21:34:39 alecto winbindd[4864]:   initialize_winbindd_cache: clearing cache and re-creating with version number 2
> Mar 27 21:34:39 alecto winbindd[4864]: [2015/03/27 21:34:39.877210,  0] ../lib/util/become_daemon.c:124(daemon_ready)
> Mar 27 21:34:39 alecto winbindd[4864]:   STATUS=daemon 'winbindd' finished starting up and ready to serve connections
> Mar 27 21:34:39 alecto nmbd[4867]: [2015/03/27 21:34:39.899625,  0] ../lib/util/become_daemon.c:124(daemon_ready)
> Mar 27 21:34:39 alecto nmbd[4867]:   STATUS=daemon 'nmbd' finished starting up and ready to serve connections
> Mar 27 21:34:39 alecto samba4[4859]: Starting Samba daemons: winbindd nmbd smbd.
> Mar 27 21:34:40 alecto smbd[4870]: [2015/03/27 21:34:40.413519,  0] ../lib/util/become_daemon.c:124(daemon_ready)
> Mar 27 21:34:40 alecto smbd[4870]:   STATUS=daemon 'smbd' finished starting up and ready to serve connections

On the first attempt to connect to samba, it will crash however.

> root at alecto:/usr/src/samba4/samba-4.2.0# smbclient -L localhost -U%
> protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED
> root at alecto:/usr/src/samba4/samba-4.2.0# tail -n 100 /var/log/daemon.log
...
Mar 27 21:39:56 alecto smbd[5091]: [2015/03/27 21:39:56.704070,  0] ../lib/util/fault.c:78(fault_report)
Mar 27 21:39:56 alecto smbd[5091]:   ===============================================================
Mar 27 21:39:56 alecto smbd[5091]: [2015/03/27 21:39:56.704165,  0] ../lib/util/fault.c:79(fault_report)
Mar 27 21:39:56 alecto smbd[5091]:   INTERNAL ERROR: Signal 11 in pid 5091 (4.2.0)
Mar 27 21:39:56 alecto smbd[5091]:   Please read the Trouble-Shooting section of the Samba HOWTO
Mar 27 21:39:56 alecto smbd[5091]: [2015/03/27 21:39:56.704213,  0] ../lib/util/fault.c:81(fault_report)
Mar 27 21:39:56 alecto smbd[5091]:   ===============================================================
Mar 27 21:39:56 alecto smbd[5091]: [2015/03/27 21:39:56.704248,  0] ../source3/lib/util.c:788(smb_panic_s3)
Mar 27 21:39:56 alecto smbd[5091]:   PANIC (pid 5091): internal error
Mar 27 21:39:56 alecto smbd[5091]: [2015/03/27 21:39:56.705134,  0] ../source3/lib/util.c:899(log_stack_trace)
Mar 27 21:39:56 alecto smbd[5091]:   BACKTRACE: 44 stack frames:
Mar 27 21:39:56 alecto smbd[5091]:    #5 /lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0) [0x7f9056a278d0]
Mar 27 21:39:56 alecto smbd[5091]:    #6 /usr/local/samba/lib/private/libkrb5-samba4.so.26(krb5_storage_free+0x10) [0x7f904a0a4b48]
Mar 27 21:39:56 alecto smbd[5091]:    #7 /usr/local/samba/lib/private/libkrb5-samba4.so.26(+0x476a3) [0x7f904a08a6a3]
Mar 27 21:39:56 alecto smbd[5091]:    #8 /usr/local/samba/lib/private/libkrb5-samba4.so.26(krb5_kt_end_seq_get+0x68) [0x7f904a088c22]
Mar 27 21:39:56 alecto smbd[5091]:    #9 /usr/local/samba/lib/private/libgse-samba4.so(+0xa5d6) [0x7f904ecbb5d6]
Mar 27 21:39:56 alecto smbd[5091]:    #10 /usr/local/samba/lib/private/libgse-samba4.so(gse_krb5_get_server_keytab+0x18d) [0x7f904ecbbb49]
Mar 27 21:39:56 alecto smbd[5091]:    #11 /usr/local/samba/lib/private/libgse-samba4.so(+0xb5ff) [0x7f904ecbc5ff]
Mar 27 21:39:56 alecto smbd[5091]:    #12 /usr/local/samba/lib/private/libgse-samba4.so(+0xc631) [0x7f904ecbd631]
Mar 27 21:39:56 alecto smbd[5091]:    #13 /usr/local/samba/lib/libgensec.so.0(gensec_start_mech+0x27e) [0x7f904f12f322]
Mar 27 21:39:56 alecto smbd[5091]:    #14 /usr/local/samba/lib/libgensec.so.0(gensec_start_mech_by_ops+0x27) [0x7f904f12f3d3]
Mar 27 21:39:56 alecto smbd[5091]:    #15 /usr/local/samba/lib/libgensec.so.0(+0xb976) [0x7f904f11c976]
Mar 27 21:39:56 alecto smbd[5091]:    #16 /usr/local/samba/lib/libgensec.so.0(+0xc388) [0x7f904f11d388]
Mar 27 21:39:56 alecto smbd[5091]:    #17 /usr/local/samba/lib/libgensec.so.0(+0xdac2) [0x7f904f11eac2]
Mar 27 21:39:56 alecto smbd[5091]:    #18 /usr/local/samba/lib/libgensec.so.0(gensec_update_ev+0xbd) [0x7f904f12cc0c]
Mar 27 21:39:56 alecto smbd[5091]:    #19 /usr/local/samba/lib/libgensec.so.0(gensec_update+0x46) [0x7f904f12cf1c]
Mar 27 21:39:56 alecto smbd[5091]:    #20 /usr/local/samba/lib/private/libsmbd-base-samba4.so(negprot_spnego+0x111) [0x7f905630ce1b]
Mar 27 21:39:56 alecto smbd[5091]:    #21 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0xeb830) [0x7f905630d830]
Mar 27 21:39:56 alecto smbd[5091]:    #22 /usr/local/samba/lib/private/libsmbd-base-samba4.so(reply_negprot+0x979) [0x7f905630e316]
Mar 27 21:39:56 alecto smbd[5091]:    #23 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x16a699) [0x7f905638c699]
Mar 27 21:39:56 alecto smbd[5091]:    #24 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x16a863) [0x7f905638c863]
Mar 27 21:39:56 alecto smbd[5091]:    #25 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x16b976) [0x7f905638d976]
Mar 27 21:39:56 alecto smbd[5091]:    #26 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x16cc74) [0x7f905638ec74]
Mar 27 21:39:56 alecto smbd[5091]:    #27 /usr/local/samba/lib/private/libsmbd-base-samba4.so(+0x16cd59) [0x7f905638ed59]
Mar 27 21:39:56 alecto smbd[5091]:    #28 /usr/local/samba/lib/libsmbconf.so.0(run_events_poll+0x54f) [0x7f905444d935]
Mar 27 21:39:56 alecto smbd[5091]:    #29 /usr/local/samba/lib/libsmbconf.so.0(+0x3fbc4) [0x7f905444dbc4]
Mar 27 21:39:56 alecto smbd[5091]:    #30 /usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_once+0xf4) [0x7f9055a064f9]
Mar 27 21:39:56 alecto smbd[5091]:    #31 /usr/local/samba/lib/private/libtevent.so.0(tevent_common_loop_wait+0x25) [0x7f9055a06743]
Mar 27 21:39:56 alecto smbd[5091]:    #32 /usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_wait+0x2b) [0x7f9055a0680e]
Mar 27 21:39:56 alecto smbd[5091]:    #33 /usr/local/samba/lib/private/libsmbd-base-samba4.so(smbd_process+0xb19) [0x7f90563932a1]
Mar 27 21:39:56 alecto smbd[5091]:    #34 /usr/local/samba/sbin/smbd(+0xa83d) [0x7f9056e6283d]
Mar 27 21:39:56 alecto smbd[5091]:    #35 /usr/local/samba/lib/libsmbconf.so.0(run_events_poll+0x54f) [0x7f905444d935]
Mar 27 21:39:56 alecto smbd[5091]:    #36 /usr/local/samba/lib/libsmbconf.so.0(+0x3fbc4) [0x7f905444dbc4]
Mar 27 21:39:56 alecto smbd[5091]:    #37 /usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_once+0xf4) [0x7f9055a064f9]
Mar 27 21:39:56 alecto smbd[5091]:    #38 /usr/local/samba/lib/private/libtevent.so.0(tevent_common_loop_wait+0x25) [0x7f9055a06743]
Mar 27 21:39:56 alecto smbd[5091]:    #39 /usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_wait+0x2b) [0x7f9055a0680e]
Mar 27 21:39:56 alecto smbd[5091]:    #40 /usr/local/samba/sbin/smbd(+0xb5ba) [0x7f9056e635ba]
Mar 27 21:39:56 alecto smbd[5091]:    #41 /usr/local/samba/sbin/smbd(main+0x17a7) [0x7f9056e64f18]
Mar 27 21:39:56 alecto smbd[5091]:    #42 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f9052d3db45]
Mar 27 21:39:56 alecto smbd[5091]:    #43 /usr/local/samba/sbin/smbd(+0x5e89) [0x7f9056e5de89]
Mar 27 21:39:56 alecto smbd[5091]: [2015/03/27 21:39:56.716189,  0] ../source3/lib/dumpcore.c:318(dump_core)
Mar 27 21:39:56 alecto smbd[5091]:   dumping core in /usr/local/samba/var/cores/smbd
Mar 27 21:39:56 alecto smbd[5091]: 


I have no clue, on where to start to debug this... 
I tried to add the libraries again, which are mentioned in the OS requirements. 
I also peeked around in the samba wiki's troubleshooting sections - but without 
any success. 

I could also post the smb.conf if necessary (and the krb5.conf and sssd.conf files). 
But I got all these from my working member server by just exchanging the machine 
name. So I suspect the issue is hidden somewhere else. 

Thank You in advance! Any help is really appretiated.
- Peter








More information about the samba mailing list