develooper Front page | perl.perl5.porters | Postings from March 2000

Problems in HTML::Parser 3.05 with perl 5.6.0 RC3

Thread Next
From:
Paul Moore
Date:
March 21, 2000 15:33
Subject:
Problems in HTML::Parser 3.05 with perl 5.6.0 RC3
Message ID:
LPBBIIMJKJMPNOGHGLLCEEEACFAA.gustav@morpheus.demon.co.uk
I've just tried to build HTML::Parser 3.05 on Perl 5.6.0 RC3, on Win32 with
MULTI/ITHREADS/USE_IMP_SYS enabled. When I run the tests, they fail with lots of
errors
    Bad signature in parser state object at 8b9fb84 at t\api_version.t line 15.

In addition, perl itself crashes. Actually, the simple command line
    perl -Mblib -MHTML::Parser -e "HTML::Parser->new(api_version => 3)"
causes an immediate crash (memory reference at location 0x00000001).

The problem is in the declaration of a magic function, which needs a pTHX_ in
the declaration. A patch is attached.

Hope this helps,
Paul Moore.

diff -u Parser.xs.orig Parser.xs
--- Parser.xs.orig	Fri Jan 21 21:59:07 2000
+++ Parser.xs	Tue Mar 21 23:30:11 2000
@@ -142,7 +142,7 @@


 static int
-magic_free_pstate(SV *sv, MAGIC *mg)
+magic_free_pstate(pTHX_ SV *sv, MAGIC *mg)
 {
   free_pstate(get_pstate_iv(sv));
   return 0;


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