From owner-freebsd-threads@FreeBSD.ORG Tue May 27 11:10:44 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 213BD37B401 for ; Tue, 27 May 2003 11:10:44 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29FC643FA3 for ; Tue, 27 May 2003 11:10:43 -0700 (PDT) (envelope-from eischen@pcnet1.pcnet.com) Received: from pcnet1.pcnet.com (localhost [127.0.0.1]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h4RIAgwQ003652; Tue, 27 May 2003 14:10:42 -0400 (EDT) Received: from localhost (eischen@localhost)h4RIAghk003648; Tue, 27 May 2003 14:10:42 -0400 (EDT) Date: Tue, 27 May 2003 14:10:41 -0400 (EDT) From: Daniel Eischen To: Petri Helenius In-Reply-To: <02d801c3247a$3b347710$812a40c1@PETEX31> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-threads@freebsd.org Subject: Re: malloc(): error: recursive call X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 18:10:44 -0000 On Tue, 27 May 2003, Petri Helenius wrote: > > > > Are you linking to libkse before linking to libc? (Don't explicitly > > link to libc). Or are you linking to other libraries that are linked > > to libc_r? > > > I=B4m linking to -lnetsnmp and -lcrypto and -lpcap. -lkse is last on the = command > line. And what does `ldd libnetsnmp.so.x`, `ldd libfoo.y`, show? What is `ldd yourexecutable` show? > > We haven't had any problems like that in all of our tests. > > > This seems to happen even on single-cpu machine. __isthreaded is 1 if I m= ake the > process dump core. >=20 > Anything else I should look for? Try with libthr ? malloc is thread safe and we've been using it fine with all our tests. I suspect you're using another library that is using libc_r or something. --=20 Dan Eischen