davide@maverick.cad.mcc.com (David Eckelkamp) (06/15/91)
Is anyone besides me having problems with the perl debugger with
version 4.010? Even the simple "perl -d -e 0" causes a segmentation
fault. I've refetched the patched source from prep and also reapplied
all 10 pathces to the original sources and both versions exhibit the
same problem. I have tried this on an Sun4 and a Sun3 with SunOS
4.0.3 on both types; same behavior. When it dies it leaves a 20
Megabyte core file on the sun4. :-) Everything is compiled with the
standard Sun cc. And it passes all the tests.
Compiling with -g and using the debugger hasn't even helped. All that
the debugger knows when it segfaults is that it thinks its in some
routine named _quorem1000. Here is a sample gdb session:
Current directory is /d0/cadsw/perl/4.0/sun4/
GDB 3.5, Copyright (C) 1989 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 /d0/cadsw/perl/4.0/sun4/perl...done.
Reading in symbols for perl.c... and array.c... and cons.c...done.
Breakpoint 1 at 0x34314: file perl.c, line 68.
Type "help" for a list of commands.
gdb> The program is not being run.
Starting program: /d0/cadsw/perl/4.0/sun4/perl -d /d1/davide/perl/foo/mkvars sys/stat.ph
Bpt 1, main (argc=0, argv=(char **) 0x0, env=(char **) 0x0) (perl.c line 68)
gdb> c
Continuing.
Loading DB routines from perldb.pl 4.0 91/03/20
Enter h for help.
Program received signal 11, Segmentation fault
0x70b44 in _quorem10000 ()
gdb> where
#0 0x70b44 in _quorem10000 ()
gdb> run -d -e 0
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /d0/cadsw/perl/4.0/sun4/perl -d -e 0
Bpt 1, main (argc=0, argv=(char **) 0x0, env=(char **) 0x0) (perl.c line 68)
gdb> p argv
$1 = (char **) 0xf7fff4e4
gdb> p *argv
$2 = (char *) 0xf7fff5d8 "/d0/cadsw/perl/4.0/sun4/perl"
gdb> where
#0 main (argc=0, argv=(char **) 0x0, env=(char **) 0x0) (perl.c line 68)
gdb> c
Continuing.
Loading DB routines from perldb.pl 4.0 91/03/20
Enter h for help.
Program received signal 11, Segmentation fault
0x70b44 in _quorem10000 ()
gdb> where
#0 0x70b44 in _quorem10000 ()
gdb> quit
The program is running. Quit anyway? (y or n) y
Inferior Gdb finished
Does anybody have any ideas or suggestions? I will gladly send anyone
the config.sh file, though I take all the default answers except for
the question of where to put the man pages. For that I answer
/usr/local/man/man1. I'll also run it through the debugger if someone
can give me an idea of what to look for and/or where.
Thanks.
____________________________________________________________________________
David Eckelkamp Microelectronics and Computer Technology Corp. (MCC)
eckelkamp@mcc.com 3500 W. Balcones Center Dr.
(512) 343-0978 Austin,TX 78759