From owner-freebsd-threads@FreeBSD.ORG Tue May 27 07:43:28 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 C8B3437B401 for ; Tue, 27 May 2003 07:43:28 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2474143F3F for ; Tue, 27 May 2003 07:43:28 -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 h4REhRwQ028508; Tue, 27 May 2003 10:43:27 -0400 (EDT) Received: from localhost (eischen@localhost)h4REhQGQ028503; Tue, 27 May 2003 10:43:26 -0400 (EDT) Date: Tue, 27 May 2003 10:43:26 -0400 (EDT) From: Daniel Eischen To: Petri Helenius In-Reply-To: <3ED35F75.1000902@rommon.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 14:43:29 -0000 On Tue, 27 May 2003, Petri Helenius wrote: > I'm using libkse cvsupped+built on 24th May and seem to run into > these messages: > malloc(): error: recursive call > > It seems that I get these when the call goes through libc functions like > strdup, asprintf, etc. > but so far none happened with direct call to malloc from my code. Is > there some linking trick > I need to perform (apart from putting -lkse to the end of the Makefile > line) to get the locking > work properly ? 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? We haven't had any problems like that in all of our tests. -- Dan Eischen