[gnu.utils.bug] problem in gnu make 3.05

meulenbr@cst.prl.philips.nl (12/06/88)

Hi!

I don't know if this is the appropriate place to report this.
The problem is: I've found a problem in gnu make 3.05.
System: sun 3/60 running sunos 3.4
gnu make compiled with gcc 1.31

The problem:
gnu make dumps core when calling make indirectly and the second make
contains a .SUFFIXES line.
The core dump is caused by an IOT trap.

Stack backtrace and registers from adb:
w01$ adb ~/bin/make
$c
core file = core -- program ``make''
SIGIOT 6: abort
_kill(0x6,0x0,0xefff40c) + 6
__sigtramp() + 26
_kill(?)
_abort() + 6
_lookup_file(0x26fc0) + 10
_pattern_search() + 58e
_try_implicit_rule(0x29c64,0x1) + b0
_update_file_1(0x29c64,0x0) + 130
_update_file() + 20
_main(0x4,0xefffbb4,0xefffbc8) + 52e
$r
d0    0x0
d1    0x255
d2    0x6
d3    0xb
d4    0x0
d5    0x5
d6    0x29c0c   _end+0x4c70
d7    0xefff658
a0    0x22968   _files
a1    0xefff280
a2    0x26fc0   _end+0x2024
a3    0x26fc0   _end+0x2024
a4    0x0
a5    0x26fe8   _end+0x204c
a6    0xefff2dc
sp    0xefff28c
pc    0x10c98   _kill+0x6
ps    0x0
      0x0
_kill+6:                bcss    _getpid+0xa

The offending makefiles:

#	This is a shell archive.
#	Remove everything above and including the cut line.
#	Then run the rest of the file through sh.
-----cut here-----cut here-----cut here-----cut here-----
#!/bin/sh
# shar:	Shell Archiver
#	Run the following text with /bin/sh to create:
#	Makefile
#	Makefile.16
# This archive created: Tue Dec  6 10:55:49 1988
sed 's/^X//' << \SHAR_EOF > Makefile
Xall:
X	make -f Makefile.16 clean
SHAR_EOF
sed 's/^X//' << \SHAR_EOF > Makefile.16
X.SUFFIXES: .s .cpp
X
Xclean:
X
SHAR_EOF
#	End of shell archive
exit 0

Drop me a note if you need additional info.

Frans Meulenbroeks        (meulenbr@cst.prl.philips.nl)
        Centre for Software Technology
        ( or try: ...!mcvax!philmds!prle!cst!meulenbr)

Cc: