From owner-freebsd-hackers Tue Jul 14 11:43:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA19847 for freebsd-hackers-outgoing; Tue, 14 Jul 1998 11:43:31 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from phoenix.volant.org (phoenix.volant.org [205.179.79.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA19842 for ; Tue, 14 Jul 1998 11:43:29 -0700 (PDT) (envelope-from patl@phoenix.volant.org) From: patl@phoenix.volant.org Received: from asimov.phoenix.volant.org ([205.179.79.65]) by phoenix.volant.org with smtp (Exim 1.92 #8) id 0ywA2u-0005xW-00; Tue, 14 Jul 1998 11:43:24 -0700 Received: from localhost by asimov.phoenix.volant.org (SMI-8.6/SMI-SVR4) id LAA04396; Tue, 14 Jul 1998 11:43:20 -0700 Date: Tue, 14 Jul 1998 11:43:20 -0700 (PDT) Reply-To: patl@phoenix.volant.org Subject: Re: Detecting the presence of threads (for a port) To: IBS / Andre Oppermann cc: Peter van Heusden , freebsd-hackers@FreeBSD.ORG In-Reply-To: <35AB8CAB.4FF133B@pipeline.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > We are not working on it, but working with it. Theres one really big > bug in Terry's patches (or in libc_r) that prevents ldif2ldap & co. > from working (you'll get empty ddb files). I reported that to Terry > but I don't know if he has fixed it yet. It looks like the original code makes some silly assumptions about uninitialized variables being set to zero. The following patches seemed to make it work for me. But I wouldn't be surprised if there are more uninitialized variable bugs... *** ldif2id2children.c.old Mon Jan 19 18:21:59 1998 --- ldif2id2children.c Wed Jun 24 22:30:39 1998 *************** *** 63,69 **** int dbnum; ID id; struct dbcache *db, *db2; ! Backend *be; struct berval bv; struct berval *vals[2]; Avlnode *avltypes = NULL; --- 63,69 ---- int dbnum; ID id; struct dbcache *db, *db2; ! Backend *be = NULL; struct berval bv; struct berval *vals[2]; Avlnode *avltypes = NULL; *** ldif2index.c.old Mon Jan 19 18:21:59 1998 --- ldif2index.c Wed Jun 24 22:04:58 1998 *************** *** 53,59 **** int lmax, lcur, indexmask, syntaxmask; int dbnum; unsigned long id; ! Backend *be; struct berval bv; struct berval *vals[2]; extern char *optarg; --- 53,59 ---- int lmax, lcur, indexmask, syntaxmask; int dbnum; unsigned long id; ! Backend *be = NULL; struct berval bv; struct berval *vals[2]; extern char *optarg; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message