From owner-freebsd-threads@FreeBSD.ORG Wed May 28 01:57:04 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1022A37B401; Wed, 28 May 2003 01:57:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81FA843F93; Wed, 28 May 2003 01:57:03 -0700 (PDT) (envelope-from davidxu@freebsd.org) Received: from davidw2k (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with SMTP id h4S8v0Up038340; Wed, 28 May 2003 01:57:01 -0700 (PDT) (envelope-from davidxu@freebsd.org) Message-ID: <00ff01c324f7$7571cc20$f001a8c0@davidw2k> From: "David Xu" To: "Petri Helenius" , "Daniel Eischen" References: <3ED4644A.6050401@he.iki.fi> Date: Wed, 28 May 2003 16:59:31 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 cc: Daniel Eischen cc: freebsd-threads@freebsd.org Subject: Re: malloc(): error: recursive call X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2003 08:57:04 -0000 ----- Original Message -----=20 From: "Petri Helenius" To: "Daniel Eischen" Cc: "Daniel Eischen" ; = 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=20 > expected) > Uncomment the "extra" mutexes and it runs fine. >=20 > Complied with: > gcc -g -O2 -march=3Dpentium -D_REENTRANT -D_THREAD_SAFE -Wall = -Wshadow=20 > -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion=20 > -Waggregate-return -Wstrict-prototypes -Wno-format -pedantic=20 > -Wno-long-long -c ttest.c > gcc -static -g -O2 -march=3Dpentium -D_REENTRANT -D_THREAD_SAFE = -Wall=20 > -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wconversion=20 > -Waggregate-return -Wstrict-prototypes -Wno-format -pedantic=20 > -Wno-long-long ttest.o -o ttest -lkse >=20 > 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 ->=20 > 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 >=20 > kernel: > FreeBSD kompak.vuokselantie10.fi 5.1-BETA FreeBSD 5.1-BETA #7: Sat May = > 24 10:49:11 GMT 2003 =20 > root@kompak.vuokselantie10.fi:/usr/src/sys/i386/compile/EMTEST i386 >=20 > # ./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) >=20 > 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 Xu