Ulrich Wisser <[EMAIL PROTECTED]> writes:

> I could reproduce the error.

So can I.

> After some debugging it showed that HTML::HeadParser is failing
> 
> Need a field name at
> /usr/lib/perl5/site_perl/5.6.0/i586-linux/HTML/HeadParser.pm line 164
> 
> After looking at the document in question, I found
> the following error prone code:
> 
> <META NAME="DC.Title" HTTP-EQUIV="" CONTENT="Finansr�det">
> 
> As you see, they use NAME and HTTP-EQUIV. I don't think
> HTML::HeadParser should fail on this. Be looking deeper in
> the problem I found that even only
> 
> HTTP-EQUIV=""
> 
> would make the module fail. Therefor I rocommend the following
> change:
> 
> 164:    if (!defined $key) {
> 
> new:    if ((!defined $key) or !$key) {
> 
> in HTML::HeadParser.pm

Seems like an improvement.

> Why there is a segfault, I can't see. But the segfault will only
> occur at the end of the program. So the execution is not terminated
> immediatly, but when it should terminate anyway it segfaults.

I've seen this before.  Invoking perl_call_sv() without the G_EVAL
flag (like HTML::Parser does) always get you in trouble after a while.
I'll provide a fix.

--Gisle

Reply via email to