From owner-freebsd-threads@FreeBSD.ORG Tue May 17 06:17:43 2005 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 653CE16A4D0 for ; Tue, 17 May 2005 06:17:43 +0000 (GMT) Received: from udciscan05.udc.trendmicro.com (udciscan05.udc.trendmicro.com [66.35.255.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id C67BC43D6B for ; Tue, 17 May 2005 06:17:37 +0000 (GMT) (envelope-from Ady_Li@trendmicro.com.cn) Received: from localhost-imss.udc.trendmicro.com (localhost [127.0.0.1]) by udciscan05.udc.trendmicro.com (Postfix) with ESMTP id 3E42818264A for ; Mon, 16 May 2005 23:16:31 -0700 (PDT) Received: from udcexbh04-vs2.us.trendnet.org (udcexbh04.udc.trendmicro.com [66.35.252.74]) by udciscan05.udc.trendmicro.com (Postfix) with ESMTP id EF491182680 for ; Mon, 16 May 2005 23:16:30 -0700 (PDT) Received: from adcexbh01.tw.trendnet.org ([202.133.236.201]) by udcexbh04-vs2.us.trendnet.org with Microsoft SMTPSVC(6.0.3790.211); Mon, 16 May 2005 23:17:31 -0700 Received: from cnexmail02.cn.trendnet.org ([10.28.144.3]) by adcexbh01.tw.trendnet.org with Microsoft SMTPSVC(6.0.3790.211); Tue, 17 May 2005 14:17:26 +0800 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Date: Tue, 17 May 2005 14:17:25 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: malloc(): error: malloc recursive Thread-Index: AcVaqBduMkAxi+SkRv2eXp0CG9hiCw== From: To: X-OriginalArrivalTime: 17 May 2005 06:17:26.0217 (UTC) FILETIME=[1882FB90:01C55AA8] Subject: malloc(): error: malloc recursive 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, 17 May 2005 06:17:43 -0000 when i wrote a multi-pthread program in fbsd,=0D at the first few second, it would core out with "malloc(): error: malloc= recursive" or=0D "free(): error: malloc recursive", there are more similar question in the= maillist,=0D but i still do not know how to solved it=2E CC_FLAGS=3D -g -O -fPIC #-DTHREAD -DDEBUG LPTHREAD=3D-lpthread -D_THREAD_SAFE -D_REENTRANT VCC_FLAGS=3D -g -O -fPIC -DFBSD -DFBSD2 -DFBSD3 -DFBSD4 -DIMPORT_VSAPI= $(LPTHREAD) #-DTHREAD -DDEBUG LD=3Dg++ LD_FLAGS=3D -g -O -fPIC -shared #-DTHREAD -DDEBUG kernel: FreeBSD ady_li_fbsd=2Eclient=2Ecn=2Etrendnet=2Eorg 5=2E3-RELEASE= FreeBSD 5=2E3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow= =2Ecse=2Ebuffalo=2Eedu:/usr/obj/usr/src/sys/GENERIC i386 Best Regards, Ady Li [TEL](86)25-84510988-656 =0D TREND MICRO EMAIL NOTICE The information contained in this email and any attachments is confidential= and may be subject to copyright or other intellectual property protection= =2E If you are not the intended recipient, you are not authorized to use or= disclose this information, and we request that you notify us by reply mail= or telephone and delete the original message from your mail system=2E