in reply to Re^3: 32 Bit Perl causing segmentation fault if data is big
in thread 32 Bit Perl causing segmentation fault if data is big

Thanks for the info. I tried GDB and please find the result below:

$ gdb --args perl -e'dump' GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and y +ou are welcome to change it and/or distribute copies of it under certain cond +itions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for det +ails. This GDB was configured as "powerpc-ibm-aix5.3.0.0"... (no debugging symbols found) (gdb) run Starting program: /usr/opt/perl5/bin/perl -edump Program received signal SIGABRT, Aborted. 0xd379c2cc in Perl_my_unexec () from /usr/opt/perl5/lib/5.8.2/aix-thre +ad-multi/CORE/libperl.a(libperl.o) (gdb) bt #0 0xd379c2cc in Perl_my_unexec () from /usr/opt/perl5/lib/5.8.2/aix- +thread-multi/CORE/libperl.a(libperl.o) #1 0xd3810294 in Perl_pp_goto () from /usr/opt/perl5/lib/5.8.2/aix-th +read-multi/CORE/libperl.a(libperl.o) #2 0xd3885ad8 in Perl_runops_standard () from /usr/opt/perl5/lib/5.8. +2/aix-thread-multi/CORE/libperl.a(libperl.o) #3 0xd3797b18 in S_run_body () from /usr/opt/perl5/lib/5.8.2/aix-thre +ad-multi/CORE/libperl.a(libperl.o) #4 0xd379efbc in perl_run () from /usr/opt/perl5/lib/5.8.2/aix-thread +-multi/CORE/libperl.a(libperl.o) #5 0x10000478 in main () (gdb)

i have no clue on the perl info from GDB (have used zillion times for C, C++ programs). Please help me on this.

Thanks, Peacelover1976

Replies are listed 'Best First'.
Re^5: 32 Bit Perl causing segmentation fault if data is big
by ikegami (Patriarch) on Mar 19, 2010 at 00:22 UTC

    That was an example. You should run your own program under gdb, not my demo :)

    But forget that. Try your script with a newer version of Perl first. I intend to not hunt for a bug that's already been fixed. I ran your demo using Perl 5.10.0 on linux and I didn't have any problems.