Subject: segmentation faults with perl
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/28/2005 18:54:43
I am getting segmentation faults with perl-5.8.7nb4 on NetBSD/i386 2.0.2 
when running html2ps.

This only happens when html2ps has an image. I have been using html2ps for 
a few years. I had updated various perl related packages lately ... I 
rebuilt all again today from scratch.

gdb shows this continuous loop:

#3701 0x48123e6b in S_regmatch ()
    from /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE/libperl.so
#3702 0x48124c81 in S_regmatch ()
    from /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE/libperl.so

I found a Debian bug report that seems similar:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=168871

I also see http://minaret.biz/tips/perl.html  ("Perl 5.8.[5-7] Regular 
Expression Bug ")

And also:
http://www.gossamer-threads.com/lists/perl/porters/196368

I will look at this further, but am posting this until I get a chance.

I also get a segmentation fault (signal 11) when html2ps is converting an 
image:

#0  0x48288cf9 in XS_Image__Magick_Read ()
    from 
/usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-multi/auto/Image/Magick/Magick.so
#1  0x480da283 in Perl_pp_entersub ()
    from /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE/libperl.so
#2  0x480d338a in Perl_runops_standard ()
    from /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE/libperl.so
#3  0x48082733 in S_run_body ()
    from /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE/libperl.so
#4  0x48082556 in perl_run ()
    from /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE/libperl.so
#5  0x08049572 in main ()
#6  0x08049202 in ___start ()


  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/