From owner-freebsd-current@FreeBSD.ORG Tue Jun 17 17:50:35 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2F7B1065677; Tue, 17 Jun 2008 17:50:35 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 893BE8FC19; Tue, 17 Jun 2008 17:50:35 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.183.219] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1K8fK8-0004bm-AP; Tue, 17 Jun 2008 19:50:28 +0200 Message-ID: <4857F963.3040708@FreeBSD.org> Date: Tue, 17 Jun 2008 19:50:27 +0200 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080610) MIME-Version: 1.0 To: Marcel Moolenaar References: <485779C3.8010302@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-current , freebsd-sparc64@FreeBSD.org Subject: Re: sh seg-faults X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2008 17:50:36 -0000 -----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 | 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-----