🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #980

GNU make 3.62 core dumps on Solaris 2.0

#980
From: Howard Gayle
Date: Wed, 30 Sep 1992 20:40
27 lines
1388 bytes
GNU make 3.62 can core dump on Solaris 2.0 systems if the
following code from read.c (lines 982--988) runs:

	if (!pattern_matches (pattern, pattern_percent, name))
	  {
	    /* Give a warning if the rule is meaningless.  */
	    makefile_error (filename, lineno,
			    "target `%s' doesn't match the target pattern");
	    this = 0;
	  }

The problem is that no argument to makefile_error is supplied
to match the %s format.  So, when fprintf tries to print the
"target `%s' doesn't match the target pattern" string it gets a
random address for the argument corresponding to %s, gets a
SIGSEGV, and core dumps.
--
Howard Gayle
HAL Computer Systems, Inc.
1315 Dell Avenue
Campbell, California 95008
howard@hal.com
Phone: 408-379-7000 ext. 1080
FAX  : 408-379-5022
"Software development, like professional sports, has a way of
making thirty-year-old men feel decrepit."
---Neal Stephenson, Snow Crash, p. 52.
Technical Details
Message-ID: <9209302040.AA05043@titan.hal.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!hal.com!howard

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!hal.com!howard
From: howard@hal.com (Howard Gayle)
Subject: GNU make 3.62 core dumps on Solaris 2.0
Message-ID: <9209302040.AA05043@titan.hal.com>
Sender: gnulists@ai.mit.edu
Reply-To: howard@hal.com
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 30 Sep 1992 20:40:25 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 28