[Samba] [samba4] crash of winbind after "ls -l /usr/local/samba/var/locks/sysvol"

Philippe.Simonet at swisscom.com Philippe.Simonet at swisscom.com
Tue Apr 30 14:32:34 MDT 2013


Many thanks Michae for your answer,l

here the results of bisect and some samba 'strange' console output.

I hope this can help

best regards

Philippe


-----------------------------------------------------------------------------------------------------
to produce the problem : 
-----------------------------------------------------------------------------------------------------
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-fhs
make install
samba -i -M single
wbinfo --uid-info 3000000

-----------------------------------------------------------------------------------------------------
last bisect : 
-----------------------------------------------------------------------------------------------------
git bisect good
f77d5d6479c879c8770fbc9a6ca5656ef3e41019 is the first bad commit
commit f77d5d6479c879c8770fbc9a6ca5656ef3e41019
Author: Timur Bakeyev <timur at FreeBSD.org>
Date:   Wed Feb 27 16:25:07 2013 -0800

    Fix bug # 9666 - Broken filtering of link-local addresses.
    
    This patch should address the problem with Link Local addresses
    on FreeBSD and Linux.
    
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(v4-0-test): Karolin Seeger <kseeger at samba.org>
    Autobuild-Date(v4-0-test): Fri Mar  1 18:21:19 CET 2013 on sn-devel-104

:040000 040000 e022079ce7298f5cfa9d99e51e7afedb35048b02 164c1aba0559999b0179d3b47f415f6e3e5b3cd7 M      lib
-----------------------------------------------------------------------------------------------------

and interesting : the samba console log when the wbinfo is working well is MUCH shorter : 

wbinfo ok : -----------------------------------------------------------------------------------------------------
Terminating connection - 'wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED'
single_terminate: reason[wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED]
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
interpret_string_addr_internal: getaddrinfo failed for name (null) (flags 4) [Name or service not known]
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
interpret_addr: host address is invalid for host fe80::5246:5dff:fea3:7167%eth0
Terminating connection - 'wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED'
single_terminate: reason[wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED]

wbinfo doing samba crash :: -----------------------------------------------------------------------------------------------------
Terminating connection - 'wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED'
single_terminate: reason[wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED]
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
interpret_string_addr_internal: getaddrinfo failed for name (null) (flags 4) [Name or service not known]
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
not adding non-broadcast interface tun0
not adding non-broadcast interface tun1
/usr/sbin/smbd: Allowed connection from 192.168.1.113 (192.168.1.113)
/usr/sbin/smbd: init_oplocks: initializing messages.
/usr/sbin/smbd: Transaction 0 of length 194 (0 toread)
/usr/sbin/smbd: switch message SMBnegprot (pid 14995) conn 0x0
/usr/sbin/smbd: Requested protocol [PC NETWORK PROGRAM 1.0]
/usr/sbin/smbd: Requested protocol [MICROSOFT NETWORKS 1.03]
/usr/sbin/smbd: Requested protocol [MICROSOFT NETWORKS 3.0]
/usr/sbin/smbd: Requested protocol [LANMAN1.0]
/usr/sbin/smbd: Requested protocol [LM1.2X002]
/usr/sbin/smbd: Requested protocol [DOS LANMAN2.1]
/usr/sbin/smbd: Requested protocol [LANMAN2.1]
/usr/sbin/smbd: Requested protocol [Samba]
/usr/sbin/smbd: Requested protocol [NT LANMAN 1.0]
/usr/sbin/smbd: Requested protocol [NT LM 0.12]
/usr/sbin/smbd: GENSEC backend 'gssapi_spnego' registered
/usr/sbin/smbd: GENSEC backend 'gssapi_krb5' registered
/usr/sbin/smbd: GENSEC backend 'gssapi_krb5_sasl' registered
/usr/sbin/smbd: GENSEC backend 'schannel' registered
/usr/sbin/smbd: GENSEC backend 'spnego' registered
/usr/sbin/smbd: GENSEC backend 'ntlmssp' registered
/usr/sbin/smbd: GENSEC backend 'krb5' registered
/usr/sbin/smbd: GENSEC backend 'fake_gssapi_krb5' registered
/usr/sbin/smbd: ldb_wrap open of secrets.ldb
/usr/sbin/smbd: AUTH backend 'sam' registered
/usr/sbin/smbd: AUTH backend 'sam_ignoredomain' registered
/usr/sbin/smbd: AUTH backend 'anonymous' registered
/usr/sbin/smbd: AUTH backend 'winbind' registered
/usr/sbin/smbd: AUTH backend 'winbind_wbclient' registered
/usr/sbin/smbd: AUTH backend 'name_to_ntstatus' registered
/usr/sbin/smbd: AUTH backend 'unix' registered
/usr/sbin/smbd: using SPNEGO
/usr/sbin/smbd: Selected protocol NT LANMAN 1.0
Kerberos: AS-REQ GWNOIS03$@TEST.CH from ipv4:192.168.1.113:57556 for krbtgt/TEST.CH at TEST.CH
Kerberos: No preauth found, returning PREAUTH-REQUIRED -- GWNOIS03$@TEST.CH
Kerberos: AS-REQ GWNOIS03$@TEST.CH from ipv4:192.168.1.113:42916 for krbtgt/TEST.CH at TEST.CH
Kerberos: Client sent patypes: encrypted-timestamp
Kerberos: Looking for PKINIT pa-data -- GWNOIS03$@TEST.CH
Kerberos: Looking for ENC-TS pa-data -- GWNOIS03$@TEST.CH
Kerberos: ENC-TS Pre-authentication succeeded -- GWNOIS03$@TEST.CH using arcfour-hmac-md5
Kerberos: AS-REQ authtime: 2013-04-30T22:18:57 starttime: unset endtime: 2013-05-01T08:18:57 renew till: unset
Kerberos: Client supported enctypes: aes256-cts-hmac-sha1-96, aes128-cts-hmac-sha1-96, des3-cbc-sha1, des3-cbc-md5, arcfour-hmac-md5, using arcfour-hmac-md5/arcfour-hmac-md5
Kerberos: Requested flags: proxiable, forwardable
Kerberos: TGS-REQ GWNOIS03$@TEST.CH from ipv4:192.168.1.113:53697 for cifs/gwnois03.test.ch at TEST.CH [canonicalize]
Kerberos: TGS-REQ authtime: 2013-04-30T22:18:57 starttime: 2013-04-30T22:18:57 endtime: 2013-05-01T08:18:57 renew till: unset
Kerberos: TGS-REQ GWNOIS03$@TEST.CH from ipv4:192.168.1.113:45930 for krbtgt/TEST.CH at TEST.CH [forwarded, forwardable]
Kerberos: TGS-REQ authtime: 2013-04-30T22:18:57 starttime: 2013-04-30T22:18:57 endtime: 2013-05-01T08:18:57 renew till: unset
/usr/sbin/smbd: Transaction 1 of length 2688 (0 toread)
/usr/sbin/smbd: switch message SMBsesssetupX (pid 14995) conn 0x0
/usr/sbin/smbd: wct=12 flg2=0xc803
/usr/sbin/smbd: Doing spnego session setup
/usr/sbin/smbd: NativeOS=[Unix] NativeLanMan=[Samba 4.0.4-GIT-f77d5d6] PrimaryDomain=[TEST]
/usr/sbin/smbd: ldb_wrap open of secrets.ldb
/usr/sbin/smbd: ldb_wrap open of privilege.ldb
Terminating connection - 'wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED'
single_terminate: reason[wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED]
/usr/sbin/smbd: Adding homes service for user 'TEST\GWNOIS03$' using home directory: '/srv1/home/%U'
/usr/sbin/smbd: adding home's share [GWNOIS03$] for user 'TEST\GWNOIS03$' at '/srv1/home/%U'
/usr/sbin/smbd: Transaction 2 of length 102 (0 toread)
/usr/sbin/smbd: switch message SMBtconX (pid 14995) conn 0x0
/usr/sbin/smbd: Allowed connection from 192.168.1.113 (192.168.1.113)
/usr/sbin/smbd: Connect path is '/tmp' for service [IPC$]
/usr/sbin/smbd: Initialising default vfs hooks
/usr/sbin/smbd: Initialising custom vfs hooks from [/[Default VFS]/]
/usr/sbin/smbd: Initialising custom vfs hooks from [acl_xattr]
/usr/sbin/smbd: Module 'acl_xattr' loaded
/usr/sbin/smbd: Initialising custom vfs hooks from [dfs_samba4]
/usr/sbin/smbd: connect_acl_xattr: setting 'inherit acls = true' 'dos filemode = true' and 'force unknown acl user = true' for service IPC$
/usr/sbin/smbd: 192.168.1.113 (ipv4:192.168.1.113:54676) connect to service IPC$ initially as user TEST\GWNOIS03$ (uid=3000022, gid=3000023) (pid 14995)
/usr/sbin/smbd: tconX service=IPC$ 
/usr/sbin/smbd: Transaction 3 of length 108 (0 toread)
/usr/sbin/smbd: switch message SMBntcreateX (pid 14995) conn 0x2723c70
/usr/sbin/smbd: Transaction 4 of length 160 (0 toread)
/usr/sbin/smbd: switch message SMBtrans (pid 14995) conn 0x2723c70
/usr/sbin/smbd: trans <\PIPE\> data=72 params=0 setup=2
/usr/sbin/smbd: named pipe command on <> name
/usr/sbin/smbd: Got API command 0x26 on pipe "netlogon" (pnum 8102)
/usr/sbin/smbd: Transaction 5 of length 104 (0 toread)
/usr/sbin/smbd: switch message SMBntcreateX (pid 14995) conn 0x2723c70
Terminating connection - 'wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED'
single_terminate: reason[wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED]
Terminating connection - 'wbsrv_samba3_send_reply_done: tstream_writev_queue_recv() - 32:Broken pipe'
single_terminate: reason[wbsrv_samba3_send_reply_done: tstream_writev_queue_recv() - 32:Broken pipe]
Terminating connection - 'NT_STATUS_CONNECTION_DISCONNECTED'
single_terminate: reason[NT_STATUS_CONNECTION_DISCONNECTED]
Terminating connection - 'NT_STATUS_CONNECTION_DISCONNECTED'
single_terminate: reason[NT_STATUS_CONNECTION_DISCONNECTED]
/usr/sbin/smbd: 192.168.1.113 (ipv4:192.168.1.113:54676) closed connection to service IPC$
Kerberos: TGS-REQ GWNOIS03$@TEST.CH from ipv4:192.168.1.113:53290 for host/gwnois03.test.ch at TEST.CH [canonicalize]
Kerberos: TGS-REQ authtime: 2013-04-30T22:18:57 starttime: 2013-04-30T22:19:32 endtime: 2013-05-01T08:18:57 renew till: unset
/usr/sbin/smbd: Server exit (failed to receive smb request)
Terminating connection - 'wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED'
single_terminate: reason[wbsrv_call_loop: tstream_read_pdu_blob_recv() - NT_STATUS_CONNECTION_DISCONNECTED]
===============================================================
INTERNAL ERROR: Signal 11 in pid 14988 (4.0.4-GIT-f77d5d6)
Please read the Trouble-Shooting section of the Samba HOWTO
===============================================================
PANIC: internal error
Aborted


> -----Original Message-----
> From: Michael Wood [mailto:esiotrot at gmail.com]
> Sent: Monday, April 29, 2013 12:20 PM
> To: Simonet Philippe, ITS-OUS-OP-IFM-NW-IPE
> Cc: samba at lists.samba.org
> Subject: Re: [Samba] [samba4] crash of winbind after "ls -l
> /usr/local/samba/var/locks/sysvol"
> 
> If you have the time to track this down, it might be worth doing a git bisect.
> It will require compiling samba about 7 times and testing each one.
> 
> Basically you clone the samba repository (as per the Samba 4 HOWTO on the
> wiki) and then:
> 
> 1.) $ git bisect start samba-4.0.5 samba-4.0.4
> 2.) Compile samba as normal and test the result.
> 3.) If it fails, run "git bisect bad".  If it works properly, run "git bisect good".
> 4.) If git tells you it's found the bad commit, report that here.
> Otherwise it will tell you roughly how many steps are left and what commit
> you are on now, in which case, go back to step 2.
> 
> When git bisect tells you the bad commit, you can report that here and it
> might help the Samba developers to find the problem more easily.
> 
> To get your git tree back to where it was before starting the bisect, do "git
> bisect reset".
> 
> On 29 April 2013 10:56,  <Philippe.Simonet at swisscom.com> wrote:
> > Hi all,
> >
> > just as info, i also have the same crash with debian wheezy and samba
> > 4.0.5, by just doing wbinfo --uid-info 3000000 and also only when the
> nssswitch.conf have "compat winbind"
> >
> > but i didn't have this crash with 4.0.4, in this case NO  problem.
> >
> > best regards
> > philippe
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/options/samba
> 
> 
> 
> --
> Michael Wood <esiotrot at gmail.com>


More information about the samba mailing list