[gnu.utils.bug] make 3.54 dumps core

rich@oxtrap.sendai.ann-arbor.mi.us (K. Richard Magill) (08/03/89)

Description:

make 3.54 dumps core.  same place on several different machines and
several different compilers.  The dump and trace below come from gdb
3.1.[2?] over make 3.54 compiled with gcc 1.35 on a sun 3/50 running
sunos 4.0.3.  (but I have four others if you want them.)

Let me know if you need more details, access to machines, corefiles,
etc.

rich@seuss> pwd
/u1/rich/tass/src.symmetry/Administration/apml
rich@seuss> ls -las
total 342
   1 drwxr-xr-x  2 rich     aa            512 Aug  2 18:32 ./
   1 drwxr-xr-x 11 rich     aa            512 Aug  1 16:12 ../
   1 -rw-r--r--  1 rich     aa            233 Aug  2 16:58 Makefile
   2 -rw-r--r--  1 rich     aa           1244 Aug  2 16:55 Makefile.save
   1 lrwxr-xr-x  1 rich     aa             32 Jul 31 16:59 RCS -> /u1/tass/src/Administration/apml/
 336 -rwxr-xr-x  1 rich     aa         335872 Aug  2 18:27 make*
rich@seuss> cat Makefile
TASSHOME	:= /u1/tass
BASE		:= $(TASSHOME)/src/Administration/apml

LOCALBASE	:= $(strip $(subst $(empty) $(empty),/,$(patsubst %,..,$(subst /, ,$(subst $(TASSHOME)/,,$(BASE))))))

TARGETS	:= \
	$(foreach OBJ,$(OBJ),libapm.a($(OBJ)))
rich@seuss> gdb make
GDB 3.1, Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /u1/rich/tass/src.symmetry/Administration/apml/make...done.
Type "help" for a list of commands.
(gdb) run -d -w -n -v
Starting program: /u1/rich/tass/src.symmetry/Administration/apml/make -d -w -n -v
GNU Make version 3.54, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 1989 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

make: Entering directory `/u1/rich/tass/src.symmetry/Administration/apml'
Reading makefiles...

Program received signal 11, Segmentation fault
pop_variable_scope () (variable.c line 234)
variable.c: No such file or directory.
(gdb) bt
#0  pop_variable_scope () (variable.c line 234)
#1  0x11f4a in expand_function (o=(char *) 0x4866c "../../..", function=function_foreach, text=(char *) 0x4f10c "libapm.a($(OBJ))", end=(char *) 0x4efb4 ")") (function.c line 600)
#2  0x131ee in handle_function (op=(char **) 0xeffef1c, stringp=(char **) 0xeffef18) (function.c line 1107)
#3  0x10bfe in variable_expand (line=(char *) 0x4ef8f "$(foreach OBJ,$(OBJ),libapm.a($(OBJ)))") (expand.c line 94)
#4  0x103e8 in try_variable_definition (line=(char *) 0x4ef84 "TARGETS\t:= $(foreach OBJ,$(OBJ),libapm.a($(OBJ)))", origin=o_file) (variable.c line 482)
#5  0x9a68 in read_makefile (filename=(char *) 0x48834 "Makefile", type=0) (read.c line 419)
#6  0x8f66 in read_all_makefiles (makefiles=(char **) 0x0) (read.c line 145)
#7  0x7bec in main (argc=5, argv=(char **) 0xefffc98, envp=(char **) 0xefffcb0) (main.c line 575)
(gdb) q
--
rich.
-- 
rich.