winbindd panic daemon dies

Andrew Bartlett abartlet at samba.org
Mon Feb 9 21:36:21 GMT 2004


On Mon, 2004-02-09 at 23:10, Andrew Smith-MAGAZINES wrote:
> Hi Andrew,
> 
> 	you are spot on, rpm didn't remove all the old binaries. 
> Ok think I have what you asked for now (at last!), please take a 
> look and let me know if you would like anything else from me,

That looks disgusting!  Thanks!

I *think* this might be an issue that jra fixed in 3.0.2 release, as jra
did some last-moment work on our character conversion code.

Well, I'm not convinced that it is actually 'fixed', but what we need to
figure out is what character set Microsoft stores their DNS in (as it is
certainly not our arbitrary 'unix' charset).

The primary valgrind error is in:

/**
 Find the number of 'c' chars in a string
**/

size_t count_chars(const char *s,char c)
{
	smb_ucs2_t *ptr;
	int count;
	push_ucs2(NULL, tmpbuf,s, sizeof(tmpbuf), STR_TERMINATE);
	for(count=0,ptr=tmpbuf;*ptr;ptr++)
		if(*ptr==UCS2_CHAR(c))
			count++;
	return(count);
}

==16744== Conditional jump or move depends on uninitialised value(s)
==16744==    at 0x80CCE9A: count_chars (lib/util_str.c:561)
==16744==    by 0x81261C5: resolve_ads (libsmb/namequery.c:938)
==16744==    by 0x812678E: internal_resolve_name
(libsmb/namequery.c:1067)
==16744==    by 0x8127782: get_dc_list (libsmb/namequery.c:1404)
==16744==    by 0x8126F6B: get_sorted_dc_list (libsmb/namequery.c:1242)
==16744==    by 0x8182544: ads_find_dc (libads/ldap.c:149)
==16744==    by 0x8182763: ads_connect (libads/ldap.c:211)
==16744==    by 0x818F7E0: ads_dc_name (libsmb/namequery_dc.c:49)
==16744==    by 0x818FC20: get_dc_name (libsmb/namequery_dc.c:173)
==16744==    by 0x808980F: cm_open_connection
(nsswitch/winbindd_cm.c:133)
==16744==    by 0x808A67A: set_dc_type_and_flags
(nsswitch/winbindd_cm.c:430)
==16744==    by 0x8080242: add_trusted_domain
(nsswitch/winbindd_util.c:154)
==16744==    by 0x808066D: add_trusted_domains
(nsswitch/winbindd_util.c:240)
==16744==    by 0x80808E9: init_domain_list
(nsswitch/winbindd_util.c:305)
==16744==    by 0x807AC4F: main (nsswitch/winbindd.c:938)
==16744== 


Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20040210/eb83279a/attachment.bin


More information about the samba-technical mailing list