Date: Tue, 17 Jun 2008 19:50:27 +0200 From: Pietro Cerutti <gahr@FreeBSD.org> To: Marcel Moolenaar <xcllnt@mac.com> Cc: freebsd-current <freebsd-current@FreeBSD.org>, freebsd-sparc64@FreeBSD.org Subject: Re: sh seg-faults Message-ID: <4857F963.3040708@FreeBSD.org> In-Reply-To: <D96EF917-F7D0-43E2-BB22-D3DA5D4E135E@mac.com> References: <485779C3.8010302@FreeBSD.org> <D96EF917-F7D0-43E2-BB22-D3DA5D4E135E@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Marcel Moolenaar wrote: | | On Jun 17, 2008, at 1:45 AM, Pietro Cerutti wrote: | |> I'm experiencing "random" sh core-dumps while building ports. During |> these core-dumps, sh is usually invoked by libtool. | | Pietro, | | I've seen something on PowerPC as well. If I recompile libc with | lower optimization, the problem goes away (I think -O1 does the | trick -- if not try -O0 :-). | | In particular, if you recompile lib/libc/gen/exec.c at -O<less> | the problem goes away. Everytime I've seen execvp() being the at | the top of the call-chain. | | Can you check if it's execvp() for you as well? I think here is different. I don't see any execvp. Rather, sh kills itself spontaneously due to some strange event. Here is a full "(gdb) down (gdb) list" set from the coredump: http://gahr.ch/FreeBSD/misc/sh_coredump/sh_coredump.gdb.txt I'm trying to rebuild world w/out optimizations, thanks for the hint! | | Thanks, | - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkhX+WEACgkQwMJqmJVx947//wCgqgkilrjDbzOJPmJk9sOXjY0E j/oAn31XaUNIbkcyqwAI8EmH0k+c7czD =aQ8N -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4857F963.3040708>