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>

index | next in thread | raw e-mail



when i wrote a multi-pthread program in fbsd,

at the first few second, it would core out with "malloc(): error:  malloc recursive" or

"free(): error:  malloc recursive", there are more similar question in the maillist,

but i still do not know how to solved it.

CC_FLAGS= -g -O  -fPIC #-DTHREAD -DDEBUG
LPTHREAD=-lpthread -D_THREAD_SAFE -D_REENTRANT
VCC_FLAGS= -g -O  -fPIC -DFBSD -DFBSD2 -DFBSD3 -DFBSD4 -DIMPORT_VSAPI $(LPTHREAD) #-DTHREAD -DDEBUG
LD=g++
LD_FLAGS= -g -O  -fPIC -shared  #-DTHREAD -DDEBUG

kernel: FreeBSD ady_li_fbsd.client.cn.trendnet.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

Best Regards,
Ady Li
[TEL](86)25-84510988-656




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. 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.


help

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