here's the debug session:
$ make testgdb
PERL_DL_NONLAZY=0 gdb -x dbinitembperl /usr/local/bin/perl
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-mandrake-linux"...
(gdb) r
Starting program: /usr/local/bin/perl -Iblib/arch -Iblib/lib
-I/usr/local/lib/perl5/5.6.0/i686-linux-thread -I/usr/local/lib/perl5/5.6.0
test.pl
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
loading... ok
Testing offline mode...
#0 ascii...
Program received signal SIGSEGV, Segmentation fault.
0x80aa431 in Perl_sv_unref ()
(gdb) BT
#0 0x80aa431 in Perl_sv_unref ()
#1 0x80a6514 in Perl_sv_force_normal ()
#2 0x80a3045 in Perl_sv_setiv ()
#3 0x401f474a in ?? () from
/usr/src/HTML-Embperl-1.3b4/blib/arch/auto/HTML/Embperl/Embperl.so
#4 0x80923de in Perl_mg_get ()
#5 0x80a4eb2 in Perl_sv_2bool ()
#6 0x80b038a in Perl_pp_not ()
#7 0x809aa4c in Perl_runops_standard ()
#8 0x805bfc9 in S_run_body ()
#9 0x805bcdc in perl_run ()
#10 0x8058fc2 in main ()
#11 0x400c7cae in __libc_start_main () from /lib/libc.so.6
On 17-Aug-2000 Gerald Richter wrote:
>>
>> Should I build it with debugging turned on? If so is it possible to run
> the
>> tests under gdb?
>>
>
> Yes, it's very easy with 1.3b4, do
>
> perl Makefile.PL debug
> make testgdb
>
> in gdb say
>
> r
>
> -> here you should get the SIGSEGV
> now say
>
> BT
>
> and you should see the stackbacktrace which I would like to see
>
> Gerald
--
Jason Bodnar + [EMAIL PROTECTED] + Team Linux
Dammit, I'm no supervising technician. I'm a technical supervisor. It's
too late to teach this old dog new tricks.
-- Homer Simpson
Homer's Odyssey
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]