← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 995670] [NEW] XML::LibXML 1.89 + perl 5.14.2: segfault

 

Public bug reported:

Description:	Ubuntu 12.04 LTS
Release:	12.04

# apt-cache policy libxml-libxml-perl
libxml-libxml-perl:
  Installed: 1.89+dfsg-1
  Candidate: 1.89+dfsg-1
  Version table:
 *** 1.89+dfsg-1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

perl program testfail.pl:

#!/usr/bin/perl

use XML::LibXML;

my $elt = XML::LibXML::Element->new("top");
my @nodes = $elt->findnodes("/");
print @nodes . "\n";

should ouput '1' and a newline.

instead this will randomly either:

- work as expected or,
- emit something like "PmmREFCNT_dec: REFCNT decremented below 0 for 176c5b0!." and segfault

with roughly equal probability.

I have fixed this for myself by upgrading to the latest version of
XML::LibXML (1.92 at time of writing):

# cpanm XML::LibXML

I thought it best to submit a bug report so this can be fixed in the
distribution.

Anyone with the same problem reading this should note that you'll need a
few things first before the above 'cpanm' command will work:

# apt-get install cpanminus, libxml2-dev, zlib1g-dev

** Affects: libxml-libxml-perl (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: libxml-libxml-perl libxml2 perl

-- 
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to libxml-libxml-perl in Ubuntu.
https://bugs.launchpad.net/bugs/995670

Title:
  XML::LibXML 1.89 + perl 5.14.2: segfault

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml-libxml-perl/+bug/995670/+subscriptions


Follow ups

References