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

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.