Parent segfault: (gdb) bt #0 0xffffe410 in ?? () #1 0xbfffec78 in ?? () #2 0x00000000 in ?? () #3 0xbfffeb34 in ?? () #4 0x402e1513 in __waitpid_nocancel () from /lib/tls/libc.so.6 #5 0x4028e71c in do_system () from /lib/tls/libc.so.6 #6 0x081029be in smb_panic (why=0x822c784 "smb_xmalloc_array: malloc fail.\n") at lib/util.c:1638 #7 0x08104340 in smb_xmalloc_array (size=1, count=0) at lib/util.c:2457 #8 0x08104368 in smb_xmemdup (p=0x0, size=0) at lib/util.c:2469 #9 0x08088a61 in getgroups_sid2gid_recv (private_data=0x82db008, success=0, gid=0) at nsswitch/winbindd_group.c:1401 #10 0x080a9408 in winbindd_sid2gid_recv (mem_ctx=0x82989b0, success=0, response=0x8307730, c=0x80889b1, private_data=0x82db008) at nsswitch/winbindd_async.c:532 #11 0x080a83d5 in do_async_recv (private_data=0x8306f08, success=0) at nsswitch/winbindd_async.c:57 #12 0x080a66cd in async_reply_recv (private_data=0x82da050, success=0) at nsswitch/winbindd_dual.c:213 #13 0x080819be in rw_callback (event=0x826f330, flags=1) at nsswitch/winbindd.c:386 #14 0x08082633 in process_loop () at nsswitch/winbindd.c:832 #15 0x08082f7e in main (argc=1, argv=0xbffff4f4, envp=0xbffff4fc) at nsswitch/winbindd.c:1100 (gdb) frame 9 #9 0x08088a61 in getgroups_sid2gid_recv (private_data=0x82db008, success=0, gid=0) at nsswitch/winbindd_group.c:1401 1401 s->state->response.extra_data.data = smb_xmemdup(s->token_gids, s->num_token_gids * sizeof(gid_t)); (gdb) p *s $1 = {state = 0x8300568, domain = 0x82db0c0, domname = 0x82c9570 "BLA", username = 0x82b1228 "win2", user_sid = { sid_rev_num = 1 '\001', num_auths = 5 '\005', id_auth = "\000\000\000\000\000\005", sub_auths = {21, 226633176, 984874016, 714868511, 3000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, token_sids = 0x8281070, i = 2, num_token_sids = 2, token_gids = 0x0, num_token_gids = 0} (gdb)