[q-lang-users] malloc problems on mac os x
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2004-09-29 20:59:19
|
Hi, I'm having problems building Q on macos x (Panther, uptodate). My first build runs 95% the way through, and then complains of a malloc double-free. A subsequent `make' in the same directory immediately afterwards runs to completion. However, the resultant binary also displays the malloc errors when you quit the interpreter or when a script finishes. Typically it looks like: | dlcompat: pthread_setspecific failed | *** malloc[23438]: Deallocation of a pointer not malloced: 0x501d90; This | could be a double free(), or free() called with the middle of an allocated | block; Try setting environment variable MallocHelp to see tools to help | debug | *** malloc[23438]: error for object 0x501ec0: Double free | make[2]: *** [qcwrap.c] Error 1 | make[1]: *** [all-recursive] Error 1 | make: *** [all] Error 2 This only appears on my mac box, not any linux machine I've used. I've played around with a few things - setting the above environment variables wasn't any use, gdb didn't get me anywhere, playing with various --disable-pthread options didn't help, neither did switching the underlying version of libtool (a perennial problem in building things on mac - still no joy). Any blinding flashes of insight would be appreciated. I'm off to *try* building a debug Q interpreter and maybe trying valgrind or something ... :/ I'm attaching the full build log here as well. ~Tim -- <http://spodzone.org.uk/> |