Date: Wed, 30 Apr 2008 09:35:15 -0700 From: Jason Evans <jasone@FreeBSD.org> To: Eric Schuele <e.schuele@computer.org> Cc: ports <ports@FreeBSD.org> Subject: Re: Trouble building guile 1.8.4 (segfault in gen-scmconfig) Message-ID: <48189FC3.4010701@FreeBSD.org> In-Reply-To: <4818977B.3040202@computer.org> References: <4812AC7C.5050202@computer.org> <48164221.6000704@FreeBSD.org> <4818977B.3040202@computer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Eric Schuele wrote: > On 04/28/2008 16:31, Jason Evans wrote: >> What is liblthread? > > linuxthreads, as Mezz mentioned. > >> It looks to be interacting badly with malloc. > > ok. any thoughts as to why, or how to fix it? Most likely, the linuxthreads port is allocating memory within one of the pthread_mutex-related functions (pthread_mutex_init()?), which is causing infinite recursion. The easy solution is to stop using linuxthreads. The hard solution is to modify linuxthreads, possibly by implementing _pthread_mutex_init_calloc_cb(), in order to avoid recursion during initialization of malloc's internal mutexes. Jason
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48189FC3.4010701>