From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Nov 5 13:00:40 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8174216A4CE for ; Fri, 5 Nov 2004 13:00:40 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 562D443D58 for ; Fri, 5 Nov 2004 13:00:40 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) iA5D0euI097399 for ; Fri, 5 Nov 2004 13:00:40 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id iA5D0eqr097398; Fri, 5 Nov 2004 13:00:40 GMT (envelope-from gnats) Date: Fri, 5 Nov 2004 13:00:40 GMT Message-Id: <200411051300.iA5D0eqr097398@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Ivo Roumenov Tonev Subject: Re: ports/73541: samba3+openldap core dump X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ivo Roumenov Tonev List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 13:00:40 -0000 The following reply was made to PR ports/73541; it has been noted by GNATS. From: Ivo Roumenov Tonev To: Volker Stolz Cc: freebsd-gnats-submit@freebsd.org Subject: Re: ports/73541: samba3+openldap core dump Date: Fri, 5 Nov 2004 10:52:01 -0200 tnx. the ldap database was setup correctly, because it works ok with the previous versions -- Ivo Roumenov Tonev ICQ: 14854601 +55 61 9224-9856 "One OS to rule them all, One OS to find them, One OS to bring them all and in the darkness bind them In the Land of Redmond, where the Shadows lie." -- adapted from J.R.R. Tolkien Citando Volker Stolz : > Am 05. Nov 2004 um 13:06 CET schrieb Ivo Roumenov Tonev: > > samba3 was recompiled & work/samba-3.0.7/source/bin/smbpasswd copied to > > /usr/local/bin/smbpasswd > > > > #0 0x28393c75 in strdup () from /lib/libc.so.5 > > (gdb) bt > > #0 0x28393c75 in strdup () from /lib/libc.so.5 > > #1 0x080b5229 in append_attr () > > #2 0x080b5290 in ldapsam_getsampwnam () > > #3 0x080ac921 in context_getsampwnam () > > #4 0x080ae421 in pdb_getsampwnam () > > #5 0x080a8551 in local_password_change () > > #6 0x08068cde in password_change () > > #7 0x080691db in process_root () > > #8 0x08069592 in main () > > #9 0x080685b2 in _start () > > (gdb) > > > > and now ????? > > It looks like in pdb_ldap.c this fragment might be NULL: > > static NTSTATUS ldapsam_getsampwnam(struct pdb_methods *my_methods, > SAM_ACCOUNT *user, const char *sname) > { > NTSTATUS ret = NT_STATUS_UNSUCCESSFUL; > struct ldapsam_privates *ldap_state = (struct ldapsam_privates > *)my_methods->private_data; > LDAPMessage *result = NULL; > LDAPMessage *entry = NULL; > int count; > char ** attr_list; > int rc; > > attr_list = get_userattr_list( ldap_state->schema_ver ); > append_attr(&attr_list, > get_userattr_key2string(ldap_state->schema_ver,LDAP_ATTR_MOD_TIMESTAMP)); > > ************************************************************************** > > I don't know why. The code should really contain an assertion and fail > gracefully if get_userattr_key2string returns NULL. > OTOH, it might be a LDAP-problem (either bug or you didn't setup the database > correctly). > > On a brighter note, this isn't really a FreeBSD-specific issue, I'd guess #) > Can you please post this problem (feel free to include my interpretation!) to > the > Samba-bugtracker? Don't forget to include the *full* gdb output. I'm going to > suspend > this PR until we have feedback from the Samba crowd. > > Cheers, > Volker > -- > http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.