Date: Tue, 31 Oct 2000 10:16:11 -0800 (PST) From: John Polstra <jdp@polstra.com> To: current@freebsd.org Cc: dave@dogwood.com, obrien@freebsd.org Subject: Re: threaded python seg faults? Message-ID: <200010311816.e9VIGBc04408@vashon.polstra.com> In-Reply-To: <200010310535.e9V5Zhi25700@white.dogwood.com> References: <200010310535.e9V5Zhi25700@white.dogwood.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <200010310535.e9V5Zhi25700@white.dogwood.com>, Dave Cornejo <dave@dogwood.com> wrote: > For the last couple of days I've been trying to build python 2 from > the ports tree without success. I updated my sources a couple of time > and rebuilt the kernel and world with no effect. > > The problem seems to have appeared in the last couple of days and > seems to happen while loading libc_r.so.4 - Is anyone else seeing > this, or have any suggestion what I might be doing wrong? [...] > Program received signal SIGSEGV, Segmentation fault. > 0x28383ec6 in pthread_mutex_lock () from /usr/lib/libc_r.so.4 > (gdb) bt > #0 0x28383ec6 in pthread_mutex_lock () from /usr/lib/libc_r.so.4 > #1 0x80bb5b0 in __register_frame_info () > #2 0x2834713a in _init () from /usr/lib/libc_r.so.4 > #3 0x28343fe5 in _init () from /usr/lib/libc_r.so.4 > #4 0x2815086c in _rtld () from /usr/libexec/ld-elf.so.1 It's because libc_r isn't getting initialized in time. Please try applying the appended patch to "src/gnu/lib/libgcc_r/Makefile" and let us know if it fixes the problem. You will need to rebuild and reinstall libgcc_r, and then rebuild python. Thanks for providing the detailed information! This never would have caught my eye otherwise. John Index: Makefile =================================================================== RCS file: /home/ncvs/src/gnu/lib/libgcc_r/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- Makefile 1999/10/03 02:43:20 1.4 +++ Makefile 2000/10/31 18:06:34 @@ -2,5 +2,6 @@ LIB= gcc_r CFLAGS+=-D_PTHREADS +CFLAGS+=-D'__GTHREAD_MUTEX_INIT_FUNCTION(m)=pthread_mutex_init(m, NULL)' .include "../libgcc/Makefile" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010311816.e9VIGBc04408>