shlomif / perl-XML-LibXML

The XML-LibXML CPAN Distribution for Processing XML using the libxml2 library
https://metacpan.org/release/XML-LibXML
Other
17 stars 35 forks source link

t/40reader.t segfaults under Strawberry Perl 5.36 dev #76

Closed shawnlaffan closed 1 year ago

shawnlaffan commented 1 year ago

Cross-ref: https://github.com/StrawberryPerl/Perl-Dist-Strawberry/issues/84

XML::LibXML segfaults when running the tests for the Strawberry Perl 5.36 development version.

t/40reader.t .......................................
Dubious, test returned 9 (wstat 2304, 0x900)
Failed 52/100 subtests

The failure is at this line in the tests: https://github.com/shlomif/perl-XML-LibXML/blob/6f5b3fb68df5a5d212d9b6fe9c96bda102be1293/t/40reader.t#L93

And the actual segfault happens within this call: https://github.com/shlomif/perl-XML-LibXML/blob/6f5b3fb68df5a5d212d9b6fe9c96bda102be1293/lib/XML/LibXML/Reader.pm#L157

Please let me know if you have any debugging steps that could be followed.

Also, if you would like a version to test against then one can be downloaded from https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/tag/dev_20230318 (noting the issue with the portableshell.bat file).

Shawn.

shawnlaffan commented 1 year ago

This seems to have been an issue with the underlying libxml. All tests pass when using latest libxml (2.10.4) compiled with associated MSYS2 patches.