Subject: Re: bin/35848: make core dump on some Makefile
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, eau@phear.org>
From: Eric Auge <eau@phear.org>
List: netbsd-bugs
Date: 03/01/2007 01:35:02
The following reply was made to PR bin/35848; it has been noted by GNATS.

From: Eric Auge <eau@phear.org>
To: gnats-bugs@NetBSD.org
Cc: david@l8s.co.uk
Subject: Re: bin/35848: make core dump on some Makefile
Date: Thu, 01 Mar 2007 02:32:54 +0100

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig57442D62F3B029AE4FDCE5BA
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Another make bug appeared during my tests :
 
 rival@kamehouse:~/dev/soul/test $ gdb /usr/bin/make ./make.core
 GNU gdb 6.5
 Copyright (C) 2006 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you =
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for detail=
 s.
 This GDB was configured as "i386--netbsdelf"...
 Reading symbols from /usr/lib/libutil.so.7...done.
 Loaded symbols for /usr/lib/libutil.so.7
 Reading symbols from /usr/lib/libc.so.12...done.
 Loaded symbols for /usr/lib/libc.so.12
 Reading symbols from /usr/libexec/ld.elf_so...done.
 Loaded symbols for /usr/libexec/ld.elf_so
 Core was generated by `make'.
 Program terminated with signal 11, Segmentation fault.
 #0  0x08056a20 in ParseVErrorInternal (cfname=3D0x0, clineno=3D0x0,
 type=3D0x1, fmt=3D0x8061341 "%d open conditional%s", ap=3D0xbfbfd608 "\00=
 1")
 at /usr/src/usr.bin/make/parse.c:393
 393             if (*cfname !=3D '/') {
 gdb+mamod> bt
 #0  0x08056a20 in ParseVErrorInternal (cfname=3D0x0, clineno=3D0x0,
 type=3D0x1, fmt=3D0x8061341 "%d open conditional%s", ap=3D0xbfbfd608 "\00=
 1")
 at /usr/src/usr.bin/make/parse.c:393
 #1  0x08056bd7 in Parse_Error (type=3D0x1, fmt=3D0x8061341 "%d open
 conditional%s") at /usr/src/usr.bin/make/parse.c:466
 #2  0x0804b8ef in Cond_End () at /usr/src/usr.bin/make/cond.c:1392
 #3  0x08057a13 in Parse_File (name=3D0x806268f "Makefile",
 stream=3D0xbbbd06e0) at /usr/src/usr.bin/make/parse.c:2650
 #4  0x08053ad2 in ReadMakefile (p=3D0x806268f, q=3D0x0) at
 /usr/src/usr.bin/make/main.c:1194
 #5  0x08054562 in main (argc=3D0x4, argv=3D0xbfbfe534) at
 /usr/src/usr.bin/make/main.c:979
 
 
 David Laight wrote:
 > The following reply was made to PR bin/35848; it has been noted by GNAT=
 S.
 >=20
 > From: David Laight <david@l8s.co.uk>
 > To: gnats-bugs@NetBSD.org
 > Cc:=20
 > Subject: Re: bin/35848: make core dump on some Makefile
 > Date: Wed, 28 Feb 2007 21:10:01 +0000
 >=20
 >  On Mon, Feb 26, 2007 at 01:50:00PM +0000, eau@phear.org wrote:
 >  > >Number:         35848
 >  > >Category:       bin
 >  > >Synopsis:       make core dump on some Makefile
 >  >=20
 >  > rival@kamehouse:~/tmp $ make
 >  > make: "/home/rival/tmp/Makefile" line 9: Unassociated shell command =
 "@echo "test:""
 >  > Segmentation fault (core dumped)
 > =20
 >  This was fixed by rev 1.129 of parse.c
 >  I've requested a pullup for 4.0 (which might not apply cleanly).
 > =20
 >  	David
 > =20
 >  --=20
 >  David Laight: david@l8s.co.uk
 > =20
 
 
 
 --------------enig57442D62F3B029AE4FDCE5BA
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.6 (NetBSD)
 
 iD8DBQFF5i1JSdZNA80H8MYRAl7xAJ4lqeQnSnxPDY+zvY+jOtEpSS/QbgCdG5qf
 uIn1eCTds9lx2tBHBSWfRn0=
 =2eYW
 -----END PGP SIGNATURE-----
 
 --------------enig57442D62F3B029AE4FDCE5BA--