Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 4494
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: adiraj [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.56
Fixed in: (no value)



Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.405 (Entity 5.404)
Subject: race condition on Perl 5.8.1 on Darwin 7.0.0
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1305
Download (untitled) / with headers
text/plain 1.2k
I'm getting what looks like a race condition in XML::LibXML on Perl 5.8.1, Darwin 7.0.0 (the stock OS X 10.3 Panther release). It is similar to bug #4076 : toString misbehaves on XML::LibXML::Attr types because it happens in the same code, and it looks like he's also using OS X 10.3, but I am also getting segfaults and bus errors. It either gives a segfault, Bus error, or it works. And like bug#4076, when it works, it returns the element form rather than the attribute form. Tompkins:~/.cpan/build/XML-LibXML-1.56 root# ./tst Segmentation fault Tompkins:~/.cpan/build/XML-LibXML-1.56 root# ./tst Bus error Tompkins:~/.cpan/build/XML-LibXML-1.56 root# ./tst Segmentation fault Tompkins:~/.cpan/build/XML-LibXML-1.56 root# ./tst Segmentation fault Tompkins:~/.cpan/build/XML-LibXML-1.56 root# ./tst Segmentation fault Tompkins:~/.cpan/build/XML-LibXML-1.56 root# ./tst Bus error Tompkins:~/.cpan/build/XML-LibXML-1.56 root# ./tst <name>Camel</name>Tompkins:~/.cpan/build/XML-LibXML-1.56 root# -- tst: #!/usr/bin/perl use blib 'blib'; use XML::LibXML; my $file = "example/dromeds.xml"; # init the file parser my $parser = XML::LibXML->new(); $dom = $parser->parse_file( $file ); $elem = $dom->getDocumentElement(); @list = $elem->findnodes( 'species/@name' ); print $list[0]->toString;
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-9056-1308820862-1677.4494-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 109
Download (untitled) / with headers
text/plain 109b
Can no longer reproduce on Mandriva Linux Cooker x86-64 so I'm closing this as OLD. Regards, -- Shlomi Fish


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.