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

Problems in HTML::Parser 3.05 with perl 5.6.0 RC3

Thread Next
Paul Moore
March 21, 2000 15:33
Problems in HTML::Parser 3.05 with perl 5.6.0 RC3
Message ID:
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
    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)
   return 0;

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About