Open demanuel opened 2 years ago
Works for me on Rakudo blead 2022.07-3-g9bc1beed7
.
Update: Seeing some core dumps on repeated runs, may be flapping.
As an extra check. both the following C and Raku code agree on an overall size of 176 for xmlDoc:
#include <libxml/tree.h>
int main(void) {
printf("%ld\n", sizeof(xmlDoc)); # 176
}
use LibXML;
use LibXML::Document;
use NativeCall;
sub MAIN(){
my LibXML::Document $doc .= parse: :string('<doc />');
say nativesizeof($doc.raw); # 176
dd $doc;
}
the raku
method has been aliased in LibXML: 0.9..10 to work around [this problem in Spreadsheet::XLXS. The above example now completed with:
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<doc/>\n"
A work-around rather than a fix.
Using dd on a LibXML::Document raises a SIGSEGV
Follow up of: https://github.com/rakudo/rakudo/issues/5052
Copying jonathanstowe analysis: