Date: Wed, 28 May 2003 16:59:31 +0800 From: "David Xu" <davidxu@freebsd.org> To: "Petri Helenius" <pete@he.iki.fi>, "Daniel Eischen" <eischen@pcnet5.pcnet.com> Cc: freebsd-threads@freebsd.org Subject: Re: malloc(): error: recursive call Message-ID: <00ff01c324f7$7571cc20$f001a8c0@davidw2k> References: <Pine.GSO.4.10.10305271924010.1039-100000@pcnet5.pcnet.com> <3ED4644A.6050401@he.iki.fi>
index | next in thread | previous in thread | raw e-mail
----- Original Message ----- From: "Petri Helenius" <pete@he.iki.fi> To: "Daniel Eischen" <eischen@pcnet5.pcnet.com> Cc: "Daniel Eischen" <eischen@pcnet1.pcnet.com>; <freebsd-threads@freebsd.org> Sent: Wednesday, May 28, 2003 3:24 PM Subject: Re: malloc(): error: recursive call > Alright, here goes: > (it's ugly cut&paste with inadequate includes and stuff but fails as > expected) > Uncomment the "extra" mutexes and it runs fine. > > Complied with: > gcc -g -O2 -march=pentium -D_REENTRANT -D_THREAD_SAFE -Wall -Wshadow > -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion > -Waggregate-return -Wstrict-prototypes -Wno-format -pedantic > -Wno-long-long -c ttest.c > gcc -static -g -O2 -march=pentium -D_REENTRANT -D_THREAD_SAFE -Wall > -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion > -Waggregate-return -Wstrict-prototypes -Wno-format -pedantic > -Wno-long-long ttest.o -o ttest -lkse > > libs: # ls -l /usr/lib/libkse* > -r--r--r-- 1 root wheel 229156 May 24 14:57 /usr/lib/libkse.a > lrwxr-xr-x 1 root wheel 11 May 24 14:57 /usr/lib/libkse.so -> > libkse.so.1 > -r--r--r-- 1 root wheel 121048 May 24 14:57 /usr/lib/libkse.so.1 > -r--r--r-- 1 root wheel 243042 May 24 14:57 /usr/lib/libkse_p.a > > kernel: > FreeBSD kompak.vuokselantie10.fi 5.1-BETA FreeBSD 5.1-BETA #7: Sat May > 24 10:49:11 GMT 2003 > root@kompak.vuokselantie10.fi:/usr/src/sys/i386/compile/EMTEST i386 > > # ./ttest > free spin > free spin > free spin > free spin > free spin > free spin > free spin > free spin > free spin > free spin > free spin > alloc spin > free spin > ttest in free(): error: recursive call > Abort (core dumped) > > and the code: > (has more stuff than it needs because it has some debugging built in) > ... Unfortunatly I have run your test program for five minutes without problem. David Xuhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ff01c324f7$7571cc20$f001a8c0>
