How does one debug the HTML::Parser xs code? Do I need to rebuild the perl 
binary with debugging enabled? I've tried building HTML::Parser itself with 
OPTIMIZE=-g, and running gdb against perl (passing my program as a command 
argument), and that doesn't seem to work.

The problem I am trying to debug is that HTML::Parser is causing perl to 
segfault when presented with particularly braindead html. In this particular 
case the html I am doing a parse_file on is clearly invalid (it is missing a 
">" on the second meta tag and is otherwise badly written), but the parser 
probably shouldn't cause perl to segfault which is what it does on my 
system. If you are interested in seeing the html file, grab it from 
http://www.rameinc.com/ . I'm running the latest version of HTML::Parser and 
LWP. I've tried it under both perl5.00503 and perl5.00404.

Thanks in advance for any hints.

Cheers, Alex
--
Alexander Fraser
[EMAIL PROTECTED]
http://www.xand.net

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Reply via email to