Date: Mon, 13 Jan 2003 17:39:27 +0600 From: Max Khon <fjoe@iclub.nsu.ru> To: sperber@gmx.at Cc: freebsd-stable@freebsd.org Subject: pthread, ElectricFence Message-ID: <20030113173926.A25147@iclub.nsu.ru>
next in thread | raw e-mail | index | archive | help
--lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline hi, there! try this patch for ElectricFence (just put it into files/ directory and rebuild the port) the problem is that _thread_init() uses malloc() and is called from .init section of libc_r. when malloc() from ElectricFence is first called initialize() function is called which tries to print version. write() is wrapped by libc_r and calling it causes _thread_init() to be called again.. and so on. /fjoe --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-efence.c" --- efence.c.orig Mon Jan 13 17:24:08 2003 +++ efence.c Mon Jan 13 17:22:50 2003 @@ -271,7 +271,9 @@ char * string; Slot * slot; +#if 0 EF_Print(version); +#endif #ifdef USE_SEMAPHORE if (sem_init(&EF_sem, 0, 1) >= 0) { --lrZ03NoBR/3+SXJZ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030113173926.A25147>