[Pkg-samba-maint] Bug#428411: Bug#428411: Acknowledgement (winbind: Winbind with idmap = rid segfaults when connecting from windows host)

Gregor Kronenberger gkronenberger at gmail.com
Wed Jun 20 12:58:38 UTC 2007


On 6/19/07, Christian Perrier <bubulle at debian.org> wrote:
> I'm not entirely sure that it would help but could you try installing
> the samba-dbg package and launch winbindd in a gdb session?

Hi,

I installed samba-dbg and gdb. In a ssh terminal I ran:
#/etc/init.d/winbind stop
#gdb winbindd
[stuff...]
(gdb) run -d 10 -i

I captured all the output that was left in the terminal's buffer. It
is attached as a text file. Please excuse my ignorance on how to run
winbind in a gdb session with complete output logging. The above
method was the first I could find on google. If more detail is
required, I would love to provide it, if someone could tell me in a
little more detail how to acquire it.

Greg
-------------- next part --------------
ntlmssp_check_packet: NTLMSSP signature OK !
cli_pipe_validate_current_pdu: got pdu len 176, data_len 116, ss_len 12
rpc_api_pipe: got PDU len of 176 at offset 0
rpc_api_pipe: Remote machine gwk-serv.GKNet.local pipe \lsarpc fnum 0xf returned 232 bytes.
000000 lsa_io_r_lookup_names
    0000 ptr_dom_ref: 00020000
    000004 lsa_io_dom_r_ref
        0004 num_ref_doms_1: 00000001
        0008 ptr_ref_dom   : 00020004
        000c max_entries   : 00000020
        0010 num_ref_doms_2: 00000001
        000014 smb_io_unihdr dom_ref[0]
            0014 uni_str_len: 000a
            0016 uni_max_len: 000c
            0018 buffer     : 00020008
        001c sid_ptr[0] : 0002000c
        000020 smb_io_unistr2 dom_ref[0]
            0020 uni_max_len: 00000006
            0024 offset     : 00000000
            0028 uni_str_len: 00000005
            002c buffer     : G.K.N.E.T.
        000038 smb_io_dom_sid2 sid_ptr[0]
            0038 num_auths: 00000004
            00003c smb_io_dom_sid sid
                003c sid_rev_num: 01
                003d num_auths  : 04
                003e id_auth[0] : 00
                003f id_auth[1] : 00
                0040 id_auth[2] : 00
                0041 id_auth[3] : 00
                0042 id_auth[4] : 00
                0043 id_auth[5] : 05
                0044 sub_auths : 00000015 0759ffa9 534f47c3 ad8c9a6e
    0054 num_entries: 00000001
    0058 ptr_entries: 00020010
    005c num_entries2: 00000001
    000060 smb_io_dom_rid
        0060 type   : 0001
        0064 rid    : 00000456
        0068 rid_idx: 00000000
    006c mapped_count: 00000001
    0070 status      : NT_STATUS_OK
refresh_sequence_number: GKNET time ok
refresh_sequence_number: GKNET seq number is now 447054
wcache_save_name_to_sid: GKNET\GREGOR -> S-1-5-21-123338665-1397704643-2911672942-1110
wcache_save_sid_to_name: S-1-5-21-123338665-1397704643-2911672942-1110 -> gregor
Storing response for pid 3077, len 3240
Retrieving response for pid 3077
child daemon request 60
process_request: request fn DUAL_USERINFO
[ 3074]: lookupsid S-1-5-21-123338665-1397704643-2911672942-1110
refresh_sequence_number: GKNET time ok
refresh_sequence_number: GKNET seq number is now 447054
query_user: [Cached] - doing backend query for info for domain GKNET
ads: query_user
ads_cached_connection
Current tickets expire in 36523 seconds (at 1182378363, time is now 1182341840)
Search for (objectSid=\01\05\00\00\00\00\00\05\15\00\00\00\A9\FF\59\07\C3\47\4F\53\6E\9A\8C\AD\56\04\00\00) in <dc=GKNET,dc=LOCAL> gave 1 replies
smb_register_idmap_nss: Successfully added idmap nss backend 'template'
ads query_user gave Gregor
refresh_sequence_number: GKNET time ok
refresh_sequence_number: GKNET seq number is now 447054
wcache_save_user: S-1-5-21-123338665-1397704643-2911672942-1110 (acct_name Gregor)
Storing response for pid 3077, len 3240
Retrieving response for pid 3077
child daemon request 48
process_request: request fn DUAL_SID2UID
[ 3074]: sid to uid S-1-5-21-123338665-1397704643-2911672942-1110
idmap_sid_to_uid: sid = [S-1-5-21-123338665-1397704643-2911672942-1110]
Successfully added idmap alloc backend 'ldap'
Successfully added idmap backend 'ldap'
Successfully added idmap alloc backend 'tdb'
Successfully added idmap backend 'tdb'
Successfully added idmap backend 'passdb'
Successfully added idmap backend 'nss'
Initializing idmap domains
Probing module 'rid'
Probing module 'rid': Trying to load from /usr/lib/samba/idmap/rid.so
Module '/usr/lib/samba/idmap/rid.so' loaded
Successfully added idmap backend 'rid'
Forcing to readonly, as ithis module can't store arbitrary mappings.
ERROR: Invalid configuration, ID range missing
ERROR: Initialization failed for backend rid (domain default domain), deferred!
Domain default domain - Backend rid - default - readonly
Domain JISTVM - Backend passdb - not default - readonly
Initializing idmap alloc module
Probing module 'rid'
Probing module 'rid': Trying to load from /usr/lib/samba/idmap/rid.so
Module '/usr/lib/samba/idmap/rid.so' loaded
Idmap module rid already registered!
Module '/usr/lib/samba/idmap/rid.so' initialization failed: NT_STATUS_OBJECT_NAME_COLLISION
idmap_init: Unable to get methods for alloc backend rid
Cache entry with key = IDMAP/SID/S-1-5-21-123338665-1397704643-2911672942-1110 couldn't be found
Query backends to map sids->ids
SID S-1-5-21-123338665-1397704643-2911672942-1110 is being handled by default domain
Query ids from domain default domain
===============================================================
INTERNAL ERROR: Signal 11 in pid 3079 (3.0.25a)
Please read the Trouble-Shooting section of the Samba3-HOWTO

From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
===============================================================
PANIC (pid 3079): internal error
BACKTRACE: 18 stack frames:
 #0 /usr/sbin/winbindd(log_stack_trace+0x2d) [0x811e0ad]
 #1 /usr/sbin/winbindd(smb_panic+0x5d) [0x811e1dd]
 #2 /usr/sbin/winbindd [0x810909a]
 #3 [0xb7fa0420]
 #4 /usr/sbin/winbindd(idmap_sids_to_unixids+0x737) [0x82469a7]
 #5 /usr/sbin/winbindd(idmap_sid_to_uid+0x65) [0x8249005]
 #6 /usr/sbin/winbindd(winbindd_dual_sid2uid+0x16d) [0x80bbf0d]
 #7 /usr/sbin/winbindd [0x80b7212]
 #8 /usr/sbin/winbindd [0x80b9915]
 #9 /usr/sbin/winbindd(winbindd_sid2uid_async+0x7b) [0x80ba00b]
 #10 /usr/sbin/winbindd [0x808e738]
 #11 /usr/sbin/winbindd [0x80b8e56]
 #12 /usr/sbin/winbindd [0x80b9d17]
 #13 /usr/sbin/winbindd [0x80b82d2]
 #14 /usr/sbin/winbindd [0x808b4c8]
 #15 /usr/sbin/winbindd(main+0x92d) [0x808befd]
 #16 /lib/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb7cefebc]
 #17 /usr/sbin/winbindd [0x808a291]
smb_panic(): calling panic action [/usr/share/samba/panic-action 3079]
Failed to read a valid object file image from memory.
smb_panic(): action returned status 0
dumping core in /var/log/samba/cores/winbindd
Could not receive async reply
Could not trigger sid2uid
Could not query uid for user GKNET\gregor
process_request: request fn GETPWNAM
[    0]: getpwnam GKNET\gregor
child daemon request 21
process_request: request fn LOOKUPNAME
[ 3074]: lookupname GKNET\gregor
refresh_sequence_number: GKNET time ok
refresh_sequence_number: GKNET seq number is now 447054
centry_expired: Key NS/GKNET/GREGOR for domain GKNET is good.
wcache_fetch: returning entry NS/GKNET/GREGOR for domain GKNET
name_to_sid: [Cached] - cached name for domain GKNET status: NT_STATUS_OK
Storing response for pid 3077, len 3240
Retrieving response for pid 3077
child daemon request 60
process_request: request fn DUAL_USERINFO
[ 3074]: lookupsid S-1-5-21-123338665-1397704643-2911672942-1110
refresh_sequence_number: GKNET time ok
refresh_sequence_number: GKNET seq number is now 447054
centry_expired: Key U/S-1-5-21-123338665-1397704643-2911672942-1110 for domain GKNET is good.
wcache_fetch: returning entry U/S-1-5-21-123338665-1397704643-2911672942-1110 for domain GKNET
query_user: [Cached] - cached info for domain GKNET status: NT_STATUS_OK
Storing response for pid 3077, len 3240
Retrieving response for pid 3077

Program received signal SIGPIPE, Broken pipe.
[Switching to Thread -1212451136 (LWP 3074)]
0xb7fa0410 in ?? ()


More information about the Pkg-samba-maint mailing list