in reply to Re^4: Segmentation fault with HTML::TagParser module
in thread Segmentation fault with HTML::TagParser module

Produce a backtrace with the gdb 'bt' command. At this point, seeing some code of yours would be helpful to help, too. But not the whole bunch - a minimal version which exhibits the same problem.

  • Comment on Re^5: Segmentation fault with HTML::TagParser module

Replies are listed 'Best First'.
Re^6: Segmentation fault with HTML::TagParser module
by raghu (Novice) on Mar 05, 2009 at 16:19 UTC
    Shmem
    This error seems to be occuring when we Parse the web page. The code from where we are getting the error is mentioned below :
    my $html_local = HTML::TagParser->new($local_content); my $ele = $html_local->getElementsByTagName("title"); # get element + by title tag

    The $local_content is the entire content of the web page which we are crawling.

    The back trace result is provided for your reference
    (gdb) run burst_spider.pl -s "http://technologyreview.com/aggregates.a +spx?p=5" -toolbar Starting program: /usr/bin/perl burst_spider.pl -s "http://technologyr +eview.com/aggregates.aspx?p=5" -toolbar (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1211443520 (LWP 14136)] (no debugging symbols found) bt Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1211443520 (LWP 14136)] 0xb7f6d9de in Perl_regclass_swash () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so (gdb) bt #0 0xb7f6d9de in Perl_regclass_swash () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #1 0xb7f7120b in Perl_regclass_swash () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #2 0xb7f7120b in Perl_regclass_swash () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #3 0xb7f7120b in Perl_regclass_swash () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #4 0xb7f7120b in Perl_regclass_swash () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #5 0xb7f7120b in Perl_regclass_swash () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #6 0xb7f7120b in Perl_regclass_swash () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #7 0xb7f7120b in Perl_regclass_swash () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so

    It seems to be never ending.