Date: Thu, 19 May 2005 15:26:12 +0800 From: Xin LI <delphij@frontfree.net> To: Ady_Li@trendmicro.com.cn Cc: freebsd-threads@freebsd.org Subject: Re: malloc(): error: malloc recursive Message-ID: <20050519072612.GA7922@frontfree.net> In-Reply-To: <AD9B6482801412429301B750AB4B998301362977@cnexmail02.cn.trendnet.org> References: <AD9B6482801412429301B750AB4B998301362977@cnexmail02.cn.trendnet.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 17, 2005 at 02:17:25PM +0800, Ady_Li@trendmicro.com.cn wrote: > 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 th= e maillist,=0D > but i still do not know how to solved it. Do you use signal handlers in your program? I think this might happen if you call allocation function within signal handlers, which should be avoided. Would you please share a piece of the code which can trigger the situation if this does not help? Cheers, --=20 Xin LI <delphij frontfree net> http://www.delphij.net/ See complete headers for GPG key and other information. --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCjD+U/cVsHxFZiIoRAi8/AJ0X8DWeXwmD3tFNXqcr5YthPRwKTQCeLrte eLHKgDusANFoWRQJwcCL+UQ= =FUEn -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050519072612.GA7922>
