NetBSD Problem Report #53462

From www@NetBSD.org  Sun Jul 22 01:05:57 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 672317A16A
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 Jul 2018 01:05:57 +0000 (UTC)
Message-Id: <20180722010556.095867A264@mollari.NetBSD.org>
Date: Sun, 22 Jul 2018 01:05:56 +0000 (UTC)
From: dvoich@aim.com
Reply-To: dvoich@aim.com
To: gnats-bugs@NetBSD.org
Subject: i486--netbsdelf-gcc: internal compiler error: Segmentation fault
X-Send-Pr-Version: www-1.0

>Number:         53462
>Category:       port-i386
>Synopsis:       i486--netbsdelf-gcc: internal compiler error: Segmentation fault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 22 01:10:00 +0000 2018
>Closed-Date:    Sun Sep 23 14:05:30 +0000 2018
>Last-Modified:  Sun Sep 23 14:05:30 +0000 2018
>Originator:     Vlad Markov
>Release:        NetBSD-8.0
>Organization:
>Environment:
Linux dopey 4.9.0-3-686-pae #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) i686 GNU/Linux

>Description:
#   compile  solaris/trees.o
/home/vlad/netbsd/i386/tooldir/bin/i486--netbsdelf-gcc -O2 -g   -std=gnu99     -
Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-parentheses -Wno-uninitialize
d -Wno-unused -Wno-switch -Wno-strict-prototypes -Wno-missing-prototypes -Wno-fo
rmat   -ffreestanding  -fno-strict-aliasing -Wno-pointer-sign -msoft-float -mno-
mmx -mno-sse -mno-avx -fno-omit-frame-pointer -msoft-float -mno-mmx -mno-sse -mn
o-avx -fno-omit-frame-pointer  -I/home/vlad/netbsd/usr/src/common/include --sysr
oot=/home/vlad/netbsd/i386/destdir -I/home/vlad/netbsd/usr/src/sys/../external/c
ddl/osnet/sys -I/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/common
/acl -I/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common/zmod
 -I/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common -I/home/
vlad/netbsd/usr/src/sys/../external/cddl/osnet/sys/sys -Dcaddr_t=__caddr_t "-D__
va_list=va_list" -std=c99 -DDIAGNOSTIC -I/home/vlad/netbsd/usr/src/common/includ
e  -nostdinc -I. -I/home/vlad/netbsd/usr/src/sys/modules/solaris -isystem /home/
vlad/netbsd/usr/src/sys -isystem /home/vlad/netbsd/usr/src/sys/arch -isystem /ho
me/vlad/netbsd/usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -DSYSCTL
_INCLUDE_DESCR -c    /home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/u
ts/common/zmod/trees.c
/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common/zmod/trees.
c: In function 'z__tr_flush_block':
/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common/zmod/trees.c:1016:1: internal compiler error: Segmentation fault
 }
 ^
i486--netbsdelf-gcc: internal compiler error: Segmentation fault (program cc1 received signal 11)
Please submit a full bug report,

>How-To-Repeat:
I am building as a non-privileged user:

export HOST_SH=/bin/bash
MACHINE=i386
export BASE=/home/vlad/netbsd/${MACHINE}/

./build.sh -u -U  -m ${MACHINE} -T ${BASE}tooldir -D ${BASE}destdir -R ${BASE}releasedir -O ${BASE}objdir -j2  build 

>Fix:

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-i386/53462: i486--netbsdelf-gcc: internal compiler error:
 Segmentation fault
Date: Sun, 22 Jul 2018 11:09:21 +0200

 On Sun, Jul 22, 2018 at 01:10:00AM +0000, dvoich@aim.com wrote:
 > >Description:
 > #   compile  solaris/trees.o
 > /home/vlad/netbsd/i386/tooldir/bin/i486--netbsdelf-gcc -O2 -g   -std=gnu99     -
 > Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-parentheses -Wno-uninitialize
 > d -Wno-unused -Wno-switch -Wno-strict-prototypes -Wno-missing-prototypes -Wno-fo
 > rmat   -ffreestanding  -fno-strict-aliasing -Wno-pointer-sign -msoft-float -mno-
 > mmx -mno-sse -mno-avx -fno-omit-frame-pointer -msoft-float -mno-mmx -mno-sse -mn
 > o-avx -fno-omit-frame-pointer  -I/home/vlad/netbsd/usr/src/common/include --sysr
 > oot=/home/vlad/netbsd/i386/destdir -I/home/vlad/netbsd/usr/src/sys/../external/c
 > ddl/osnet/sys -I/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/common
 > /acl -I/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common/zmod
 >  -I/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common -I/home/
 > vlad/netbsd/usr/src/sys/../external/cddl/osnet/sys/sys -Dcaddr_t=__caddr_t "-D__
 > va_list=va_list" -std=c99 -DDIAGNOSTIC -I/home/vlad/netbsd/usr/src/common/includ
 > e  -nostdinc -I. -I/home/vlad/netbsd/usr/src/sys/modules/solaris -isystem /home/
 > vlad/netbsd/usr/src/sys -isystem /home/vlad/netbsd/usr/src/sys/arch -isystem /ho
 > me/vlad/netbsd/usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -DSYSCTL
 > _INCLUDE_DESCR -c    /home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/u
 > ts/common/zmod/trees.c
 > /home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common/zmod/trees.
 > c: In function 'z__tr_flush_block':
 > /home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common/zmod/trees.c:1016:1: internal compiler error: Segmentation fault
 >  }
 >  ^
 > i486--netbsdelf-gcc: internal compiler error: Segmentation fault (program cc1 received signal 11)
 > Please submit a full bug report,

 Is this reproducable? This maybe is just gcc running out of memory.
 Otherwise it would be specific to the tool gcc and your host environment
 and we would need a gcc backtrace.

 Martin

State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Sun, 22 Jul 2018 12:10:36 +0000
State-Changed-Why:
Feedback requested


From: "Vlad D.Markov" <dvoich@optonline.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-i386/53462: i486--netbsdelf-gcc: internal compiler error:
 Segmentation fault
Date: Sun, 22 Jul 2018 16:40:43 -0400

 On Sun, Jul 22, 2018 at 09:10:01AM +0000, Martin Husemann wrote:
 > The following reply was made to PR port-i386/53462; it has been noted by GNATS.
 > 
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: port-i386/53462: i486--netbsdelf-gcc: internal compiler error:
 >  Segmentation fault
 > Date: Sun, 22 Jul 2018 11:09:21 +0200
 > 
 >  On Sun, Jul 22, 2018 at 01:10:00AM +0000, dvoich@aim.com wrote:
 >  > >Description:
 >  > #   compile  solaris/trees.o
 >  > /home/vlad/netbsd/i386/tooldir/bin/i486--netbsdelf-gcc -O2 -g   -std=gnu99     -
 >  > Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-parentheses -Wno-uninitialize
 >  > d -Wno-unused -Wno-switch -Wno-strict-prototypes -Wno-missing-prototypes -Wno-fo
 >  > rmat   -ffreestanding  -fno-strict-aliasing -Wno-pointer-sign -msoft-float -mno-
 >  > mmx -mno-sse -mno-avx -fno-omit-frame-pointer -msoft-float -mno-mmx -mno-sse -mn
 >  > o-avx -fno-omit-frame-pointer  -I/home/vlad/netbsd/usr/src/common/include --sysr
 >  > oot=/home/vlad/netbsd/i386/destdir -I/home/vlad/netbsd/usr/src/sys/../external/c
 >  > ddl/osnet/sys -I/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/common
 >  > /acl -I/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common/zmod
 >  >  -I/home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common -I/home/
 >  > vlad/netbsd/usr/src/sys/../external/cddl/osnet/sys/sys -Dcaddr_t=__caddr_t "-D__
 >  > va_list=va_list" -std=c99 -DDIAGNOSTIC -I/home/vlad/netbsd/usr/src/common/includ
 >  > e  -nostdinc -I. -I/home/vlad/netbsd/usr/src/sys/modules/solaris -isystem /home/
 >  > vlad/netbsd/usr/src/sys -isystem /home/vlad/netbsd/usr/src/sys/arch -isystem /ho
 >  > me/vlad/netbsd/usr/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE -DSYSCTL
 >  > _INCLUDE_DESCR -c    /home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/u
 >  > ts/common/zmod/trees.c
 >  > /home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common/zmod/trees.
 >  > c: In function 'z__tr_flush_block':
 >  > /home/vlad/netbsd/usr/src/sys/../external/cddl/osnet/dist/uts/common/zmod/trees.c:1016:1: internal compiler error: Segmentation fault
 >  >  }
 >  >  ^
 >  > i486--netbsdelf-gcc: internal compiler error: Segmentation fault (program cc1 received signal 11)
 >  > Please submit a full bug report,
 >  
 >  Is this reproducable? This maybe is just gcc running out of memory.
 >  Otherwise it would be specific to the tool gcc and your host environment
 >  and we would need a gcc backtrace.
 >  
 >  Martin
 >  
 It did not happen the 2nd run, so it is not reproducable. Instead I got the
 error I have been getting for a while:

 #   install
 /home/vlad/netbsd/i386/destdir/usr/mdec//home/vlad/netbsd/i386/.bin
 /home/vlad/netbsd/i386/tooldir/bin/i486--netbsdelf-install -U -M
 /home/vlad/netb
 sd/i386/destdir/METALOG -D /home/vlad/netbsd/i386/destdir -h sha256 -N
 /home/vla
 d/netbsd/usr/src/etc -c -p -r -o root -g wheel -m 444
 /home/vlad/netbsd/i386/.
 bin /home/vlad/netbsd/i386/destdir/usr/mdec//home/vlad/netbsd/i386/.bin
 i486--netbsdelf-install:
 /home/vlad/netbsd/i386/destdir/usr/mdec//home/vlad/netbsd/i386/.bin.inst.sPGIky:
 mkstemp: No such file or directory
 --- install-share ---

 Vlad

From: "Vlad D.Markov" <dvoich@optonline.net>
To: gnats-bugs@gnats.netbsd.org
Cc: 
Subject: Re: port-i386/53462 - serious medium priority sw-bug
Date: Mon, 10 Sep 2018 14:14:29 -0400

 It is not reproducible. Its a problem on my end.

State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 23 Sep 2018 14:05:30 +0000
State-Changed-Why:
It sounds like it was a transient issue, like running out of available memory. Please feel free to reply if I misunderstood, and there are still issues.
It might be good to do a clean build after your build dies with a crash like this, that might fix the mkstemp issue.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.