malloc(): error: malloc recursive
Ady_Li at trendmicro.com.cn
Ady_Li at trendmicro.com.cn
Mon May 16 23:17:43 PDT 2005
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 at 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
More information about the freebsd-threads
mailing list