[Samba] Memory leak in winbindd

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Thu Mar 14 07:47:08 GMT 2002


Hi Jeremy,
I reproduced the winbindd core on HP-UX 11.0
with the little script that Noel sent; There was 
NO activity on this winbindd server except for 
the script doing the wbinfo -t's; (only nmbd 
and winbindd were running).  I started the script
at about 17:21, and it dumped core at 22:00.
The log.winbindd showed:

[2002/03/13 17:21:38, 1] lib/debug.c:(248)
  INFO: Debug class all level = 1   (pid 14703 from pid 14703)
[2002/03/13 17:21:38, 0] lib/util_unistr.c:(582)
  load_unicode_map: filename /usr/local/samba/lib/codepages/unicode_map.850
does
 not exist.
[2002/03/13 17:21:38, 0] lib/util_unistr.c:(582)
  load_unicode_map: filename
/usr/local/samba/lib/codepages/unicode_map.ISO8859-
1 does not exist.
[2002/03/13 17:21:38, 1] nsswitch/winbindd_util.c:(137)
  getting trusted domain list
[2002/03/13 17:21:39, 1] nsswitch/winbindd_util.c:(103)
  adding domain WT1
[2002/03/13 17:21:39, 1] nsswitch/winbindd_util.c:(103)
  adding domain ATL-WTEC
[2002/03/13 21:59:32, 0] lib/util.c:(1064)
  PANIC: init_unistr2: malloc fail

And the backtrace showed:


(gdb) bt
#0  0xc01082b8 in kill () from /usr/lib/libc.2
#1  0xc00a52e8 in raise () from /usr/lib/libc.2
#2  0xc00e5c8c in abort_C () from /usr/lib/libc.2
#3  0xc00e5ce4 in abort () from /usr/lib/libc.2
#4  0x3e1e0 in smb_panic ()
#5  0x65624 in init_unistr2 ()
#6  0x75410 in init_q_req_chal ()
#7  0xaddc0 in cli_net_req_chal ()
#8  0xaea64 in cli_nt_setup_creds ()
#9  0x10814 in cm_get_netlogon_cli ()
#10 0xf0a0 in winbindd_check_machine_acct ()
#11 0x71e4 in process_request ()
#12 0x73f8 in process_packet ()
#13 0x79f8 in process_loop ()
#14 0x7f18 in main ()

Does this match the issue you just fixed, or is this different?

Hope this helps,
don

-----Original Message-----
From: jra at samba.org [mailto:jra at samba.org]
Sent: Wednesday, March 13, 2002 11:13 PM
To: Ken Cross
Cc: 'Noel Kelly'; samba at lists.samba.org
Subject: Re: [Samba] Memory leak in winbindd


On Wed, Mar 13, 2002 at 08:12:26AM -0500, Ken Cross wrote:
> Noel:
> 
> There's definitely a memory leak (try the little script at the bottom
> and it's obvious -- the wbinfo -t does it).  
> 
> I'm not certain that the memory leak causes it to die or not.  Actually,
> on my system it isn't dead -- it just doesn't return user/group data any
> more.  wbinfo -t works, but not wbinfo -u.  I think the memory leak
> fixed in 2.2.3 was in smbd not winbind, wasn't it?

I've just fixed a bug in SAMBA_2_2 CVS that could cause winbindd
to core dump on a lookup name/sid returning SID_NAME_UNKNOWN.

If you could cvs checkout this branch and see if it fixes the
winbindd dying problem I'd appreciate it.

Thanks,

	Jeremy.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list