NetBSD Problem Report #48765

From ryo_on@yk.rim.or.jp  Sat Apr 26 16:34:37 2014
Return-Path: <ryo_on@yk.rim.or.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 28299A5830
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 26 Apr 2014 16:34:37 +0000 (UTC)
Message-Id: <20140426163433.D318D284B2@mail.SiriusCloud.jp>
Date: Sun, 27 Apr 2014 01:34:33 +0900 (JST)
From: ryoon@NetBSD.org
Reply-To: ryoon@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: cc1 from gcc 4.5.4 dumps core for simple helloworld test program
X-Send-Pr-Version: 3.95

>Number:         48765
>Category:       port-cobalt
>Synopsis:       cc1 from gcc 4.5.4 dumps core for simple helloworld test program
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-cobalt-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 26 16:35:00 +0000 2014
>Closed-Date:    Sun Jun 01 21:04:08 +0000 2014
>Last-Modified:  Sun Jun 01 21:04:08 +0000 2014
>Originator:     Ryo ONODERA
>Release:        NetBSD 6.99.40
>Organization:

>Environment:


System: NetBSD mercury.elements.tetera.org 6.99.40 NetBSD 6.99.40 (GENERIC) #0: Fri Apr 25 13:23:49 JST 2014  ryo_on@deuterium.ryoon.net:/usr/obj/cobalt/sys/arch/cobalt/compile/GENERIC cobalt
>Description:
When compiling simple helloworld program, cc1 from gcc 4.5.4 dumps core.

My helloworld is here.
$ cat test.c
#include <stdio.h>

int main(void)
{
printf("Hello, world\n");
return 0;
}

And error message from gcc -v is here.

(snip)
COLLECT_GCC_OPTIONS='-v' '-mno-synci'
 /usr/libexec/cc1 -quiet -v test.c -quiet -dumpbase test.c -mno-synci -auxbase test -version -o /var/tmp//cc05DK2k.s
signal 1: epc 0x63d53c
gcc: Internal error: Segmentation fault (program cc1 received signal 11)
Please submit a full bug report.
See  for instructions.

gdb from base dumps core too, and I cannot investigate this problem deeper.

>How-To-Repeat:
gcc -v test.c

>Fix:

I have no idea, please fix it.

>Release-Note:

>Audit-Trail:
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48765: cc1 from gcc 4.5.4 dumps core for simple helloworld
 test program
Date: Mon, 02 Jun 2014 05:13:00 +0900 (JST)

 Hi,

 6.99.42 build under 6.99.41 works.

 make release started at:  Wed May 21 21:08:33 UTC 2014
 make release finished at: Sun Jun  1 19:03:02 UTC 2014
 ===> Successful make release
 ===> build.sh ended:      Sun Jun  1 19:03:02 UTC 2014
 ===> Summary of results:
          build.sh command:    ./build.sh -O /usr/obj/cobalt -T /usr/tools/cobalt -D /usr/NewWorld/cobalt -R /usr/release/cobalt release
          build.sh started:    Wed May 21 21:01:37 UTC 2014
          NetBSD version:      6.99.42
          MACHINE:             cobalt
          MACHINE_ARCH:        mipsel
          Build platform:      NetBSD 6.99.41 cobalt
          HOST_SH:             /bin/sh
          No $TOOLDIR/bin/nbmake, needs building.
          Bootstrapping nbmake
          MAKECONF file:       /etc/mk.conf (File not found)
          TOOLDIR path:        /usr/tools/cobalt
          DESTDIR path:        /usr/NewWorld/cobalt
          RELEASEDIR path:     /usr/release/cobalt
          Created /usr/tools/cobalt/bin/nbmake
          Updated makewrapper: /usr/tools/cobalt/bin/nbmake-cobalt
          Successful make release
          build.sh ended:      Sun Jun  1 19:03:02 UTC 2014
 ===> .
 mercury# uname -a
 NetBSD mercury.elements.tetera.org 6.99.41 NetBSD 6.99.41 (GENERIC) #3: Tue May 13 17:41:08 JST 2014  ryo_on@deuterium.ryoon.net:/usr/obj/cobalt/sys/arch/cobalt/compile/GENERIC cobalt
 mercury# gcc --version
 gcc (NetBSD nb1 20120916) 4.5.4
 Copyright (C) 2010 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

State-Changed-From-To: open->closed
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Sun, 01 Jun 2014 21:04:08 +0000
State-Changed-Why:
Resulting binary works fine too.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.