From dm@home3.dinoex.sub.de  Sat Oct 26 08:00:00 2013
Return-Path: <dm@home3.dinoex.sub.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 9F6C3C0B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Oct 2013 08:00:00 +0000 (UTC)
	(envelope-from dm@home3.dinoex.sub.de)
Received: from uucp.dinoex.sub.de (smtp3.dinoex.sub.de [IPv6:2001:1440:5001:1::2])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 0D6472E43
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Oct 2013 07:59:59 +0000 (UTC)
Received: from home3.dinoex.sub.de (home3.dinoex.sub.de [194.45.71.20])
	by uucp.dinoex.sub.de (8.14.7/8.14.5) with ESMTP id r9Q7vnlq033755
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Oct 2013 09:58:05 +0200 (CEST)
	(envelope-from dm@home3.dinoex.sub.de)
Received: (from dm@localhost)
	by home3.dinoex.sub.de (8.14.6/8.14.6/Submit) id r9Q7rc1g048970;
	Sat, 26 Oct 2013 09:53:38 +0200 (CEST)
	(envelope-from dm)
Message-Id: <201310260753.r9Q7rc1g048970@home3.dinoex.sub.de>
Date: Sat, 26 Oct 2013 09:53:38 +0200 (CEST)
From: dirk.meyer@dinoex.sub.org
Reply-To: dirk.meyer@dinoex.sub.org
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/fmake crashe in conditional
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         183321
>Category:       ports
>Synopsis:       devel/fmake crashe in conditional
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    crees
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 26 08:10:00 UTC 2013
>Closed-Date:    Sat Oct 26 16:31:13 UTC 2013
>Last-Modified:  Sat Oct 26 16:31:13 UTC 2013
>Originator:     Dirk Meyer
>Release:        FreeBSD 9.1-RELEASE
>Organization:
privat
>Environment:

	FreeBSD 9.1 /bin/make or /usr/local/bin/fmake
	fmake-r250982

>Description:

	fmake crashes on some makefiles.

>How-To-Repeat:

	echo << 'EOF' > Makefile.bad
.if empty(MACRO1) && && empty(MACRO2)
.endif
EOF
	$ fmake -f Makefile.bad 
Abort trap: 6 (core dumped)
	$ make -f Makefile.bad 
Abort trap: 6 (core dumped)

gdb /usr/obj/usr/src/usr.bin/make/make  make.core 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `make'.
Program terminated with signal 6, Aborted.
#0  0x0000000000449d1c in __sfvwrite ()
(gdb) bt
#0  0x0000000000449d1c in __sfvwrite ()
#1  0x0000000000000002 in ?? ()
#2  0x0000000000403350 in Cond_If ()
#3  0x000000000040d35e in Parse_File ()
#4  0x000000000040a45b in ReadMakefile ()
#5  0x000000000040a4de in TryReadMakefile ()
#6  0x000000000040ad99 in main ()

>Fix:

	unknown.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->crees 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Oct 26 08:10:09 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183321 
State-Changed-From-To: open->closed 
State-Changed-By: crees 
State-Changed-When: Sat Oct 26 16:31:12 UTC 2013 
State-Changed-Why:  
FreeBSD pmake is discontinued, and crashes on illegal Makefiles are to 
be expected :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183321 
>Unformatted:
