Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2005 14:17:25 +0800
From:      <Ady_Li@trendmicro.com.cn>
To:        <freebsd-threads@freebsd.org>
Subject:   malloc(): error:  malloc recursive
Message-ID:  <AD9B6482801412429301B750AB4B998301362977@cnexmail02.cn.trendnet.org>

next in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AD9B6482801412429301B750AB4B998301362977>