NetBSD Problem Report #51405

From kre@munnari.OZ.AU  Thu Aug 11 10:40:55 2016
Return-Path: <kre@munnari.OZ.AU>
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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 76B537A140
	for <gnats-bugs@www.NetBSD.org>; Thu, 11 Aug 2016 10:40:55 +0000 (UTC)
Message-Id: <201608110913.u7B9D1I3019051@onyx.coe.psu.AC.TH>
Date: Thu, 11 Aug 2016 16:13:01 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@www.NetBSD.org
Subject: core dump from make (amd64 current as of 2016-08-11)
X-Send-Pr-Version: 3.95

>Number:         51405
>Category:       bin
>Synopsis:       core dump from make (amd64 current as of 2016-08-11)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    sjg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 11 10:45:00 +0000 2016
>Closed-Date:    Thu Aug 11 21:14:08 +0000 2016
>Last-Modified:  Thu Aug 11 21:14:08 +0000 2016
>Originator:     Robert Elz
>Release:        NetBSD 7.99.35
>Organization:
>Environment:
System: NetBSD onyx.coe.psu.ac.th 6.99.30 NetBSD 6.99.30 (ONYX-Dom0) #0: Mon Feb 3 19:26:44 ICT 2014 kre@onyx.coe.psu.ac.th:/usr/obj/current/kernels/amd64/ONYX-Dom0 amd64
Architecture: x86_64
Machine: amd64
>Description:
	I was doing a complete (except X) build of NetBSD currentm
	when that finishes, I use the tools it constructed, to compile
	my local kernels (for reasons not important here, I don't
	use build.sh for that).   The kernels that build correctly
	were fine.   But one of them I have a config problem with
	(have had for a while - the link fails - undefined symbols - why
	is also not important right now).

	Immediately after the link failed make printed the very
	long command line it had been executing, said "*** Error code 1".
	"Stop." and "nbmake: stopped in ..." all of which was normal.

	Then it dumped core (seg fault).

	Traceback:

Core was generated by `nbmake'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000418c2e in Var_Append ()
(gdb) where
#0  0x0000000000418c2e in Var_Append ()
#1  0x000000000040c058 in addErrorCMD ()
#2  0x000000000040bcc8 in Lst_ForEachFrom ()
#3  0x000000000040bc5f in Lst_ForEach ()
#4  0x000000000040cd36 in PrintOnError ()
#5  0x0000000000403d1b in Compat_Make ()
#6  0x000000000040bcc8 in Lst_ForEachFrom ()
#7  0x000000000040bc5f in Lst_ForEach ()
#8  0x0000000000403b2a in Compat_Make ()
#9  0x0000000000404512 in Compat_Run ()
#10 0x000000000040efd3 in main ()

	Since this was a normal tools build, there ar eno debug symbols,
	but I could re-build make with -g, and run it again if the
	problem doesn't turn out to be obvious.

	This is new in the past day or so.

>How-To-Repeat:

	Probably not easy - or it might be.   Perhaps purposely mis-configure
	a kernel in a way that "config" doesn't object to, and see what
	happens, or perhaps config a kernel, then edit the Makefile and
	remove one of the object files from the list, so linking cannot
	possibly work.   It is only because I don't really need a new Dom0
	kernel anytime soon that I had been ignoring the link error on my
	past few (well, more than a few) builds...

>Fix:
	??

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->sjg
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Thu, 11 Aug 2016 16:05:17 +0000
Responsible-Changed-Why:
Only person who's changed make lately


State-Changed-From-To: open->closed
State-Changed-By: kre@NetBSD.org
State-Changed-When: Thu, 11 Aug 2016 21:14:08 +0000
State-Changed-Why:
Confirmed fixed by ...

Module Name:	src
Committed By:	sjg
Date:		Thu Aug 11 19:53:18 UTC 2016

Modified Files:
	src/usr.bin/make: main.c

Log Message:
PR: 51405
Description:

addErrorCMD: in compat mode, cmdp may be NULL, skip it
and stop the calls (return 1).

To generate a diff of this commit:
cvs rdiff -u -r1.249 -r1.250 src/usr.bin/make/main.c



>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.