malloc(): error: recursive call
Daniel Eischen
eischen at pcnet1.pcnet.com
Tue May 27 07:43:29 PDT 2003
On Tue, 27 May 2003, Petri Helenius wrote:
> I'm using libkse cvsupped+built on 24th May and seem to run into
> these messages:
> malloc(): error: recursive call
>
> It seems that I get these when the call goes through libc functions like
> strdup, asprintf, etc.
> but so far none happened with direct call to malloc from my code. Is
> there some linking trick
> I need to perform (apart from putting -lkse to the end of the Makefile
> line) to get the locking
> work properly ?
Are you linking to libkse before linking to libc? (Don't explicitly
link to libc). Or are you linking to other libraries that are linked
to libc_r?
We haven't had any problems like that in all of our tests.
--
Dan Eischen
More information about the freebsd-threads
mailing list