develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #122905] pod2html crash on Linux

Thread Next
From:
James E Keenan via RT
Date:
October 5, 2014 14:49
Subject:
[perl #122905] pod2html crash on Linux
Message ID:
rt-4.0.18-15030-1412520579-106.122905-15-0@perl.org
On Sat Oct 04 06:47:16 2014, shell_way@foxmail.com wrote:
> This is a bug report for perl from ispeller@foxmail.com,
> generated with the help of perlbug 1.40 running under perl 5.20.1.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> It seems that pod2html can not work well with HTML::Parser on Linux.
> 
> # pod2html
> [1]    11085 segmentation fault (core dumped)  pod2html
> 
> # perl -d $(which pod2html)
> Loading DB routines from perl5db.pl version 1.44
> Editor support available.
> 
> Enter h or 'h h' for help, or 'man perldebug' for more help.
> 
> Signal SEGV at /usr/lib/perl5/site_perl/HTML/Parser.pm line 17.
>     require HTML/Parser.pm called at
> /usr/lib/perl5/site_perl/HTML/Entities.pm line 152
>     require HTML/Entities.pm called at (eval
> 5)[/usr/share/perl5/core_perl/Pod/Simple/XHTML.pm:53] line 1
>     eval 'require HTML::Entities; 1' called at
> /usr/share/perl5/core_perl/Pod/Simple/XHTML.pm line 53
>     Pod::Simple::XHTML::BEGIN() called at
> /usr/lib/perl5/site_perl/HTML/Parser.pm line 0
>     eval {...} called at /usr/lib/perl5/site_perl/HTML/Parser.pm line
> 0
>     require Pod/Simple/XHTML.pm called at
> /usr/share/perl5/core_perl/parent.pm line 20
>     parent::import("parent", "Pod::Simple::XHTML") called at
> /usr/share/perl5/core_perl/Pod/Html.pm line 712
>     Pod::Simple::XHTML::LocalPodLinks::BEGIN() called at
> /usr/lib/perl5/site_perl/HTML/Parser.pm line 0
>     eval {...} called at /usr/lib/perl5/site_perl/HTML/Parser.pm line
> 0
>     require Pod/Html.pm called at /usr/bin/core_perl/pod2html line 222
>     main::BEGIN() called at /usr/lib/perl5/site_perl/HTML/Parser.pm
> line 0
>     eval {...} called at /usr/lib/perl5/site_perl/HTML/Parser.pm line
> 0
> [1]    11156 abort (core dumped)  perl -d $(which pod2html)
> 

1. I'm not very clear on what you were trying to do when you encountered this problem.  When you called:

#####
$ perl -d $(which pod2html)
#####

... was that your attenpt to debug a problem?  Why do you have no command-line arguments to 'pod2html'?  Were you expecting to get input from STDIN?

2. Do you have HTML::Parser and HTML::Entities installed on this system?

'pod2html' relies on Pod::Simple::XHTML.  The latter package has provisions in it for both having and *not* having HTML::Entities on your system.  (HTML::Parser is a dependency for HTML::Entities.)

If, for example, you were to install HTML::Entities on this system, would you still encounter the problem described in this story?

Thank you very much.
-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=122905

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About