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
[-- Attachment #1 --]
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
[-- Attachment #2 --]
--- 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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030113173926.A25147>
