[gnu.utils.bug] Make 3.47 dump core

yhe@zippy.eecs.umich.edu (Youda He) (04/30/89)

make 3.47 was compiled by both cc and gcc, the test is then made by
delete *.o, make, Machine: sun4, Os: sun os4:

GNU Make version 3.47, 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.

gcc  -g -O   -c arscan.c -o arscan.o
make: *** Waiting for children....
segmentation fault (core dumped)

Hope this will help.
Youda He

dupuy@CS.COLUMBIA.EDU (Alexander Dupuy) (05/02/89)

   From: yhe@zippy.eecs.umich.edu (Youda He)
   Newsgroups: gnu.utils.bug
   Organization: University of Michigan EECS Dept., Ann Arbor, MI

   make 3.47 was compiled by both cc and gcc, the test is then made by
   delete *.o, make, Machine: sun4, Os: sun os4:

   GNU Make version 3.47, 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.

   gcc  -g -O   -c arscan.c -o arscan.o
   make: *** Waiting for children....
   segmentation fault (core dumped)

   Hope this will help.
   Youda He

I had the same experience, with the same configuration.  The problem is that in
commands.c, in the function child_handler:

      /* If this child had the good stdin, say it is now free.  */

      if (c->good_stdin)
	good_stdin_used = 0;

is used before c is initialized.  I guess this works on a Vax, where c might be
NULL, and also dereferenceable.

@alex