Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----=20
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=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ff01c324f7$7571cc20$f001a8c0>