[xml/sgml-pkgs] Bug#230844: libxml-parser-perl: Perl XS code apparently results in 'free unreferenced scalar' error

Joris van Rantwijk rantwijk at science.uva.nl
Tue Aug 8 13:34:15 UTC 2006

I believe this bug still exists, but is not specific to
libxml-parser-perl. I can reproduce it now (on Debian sarge)
without making any reference to XML::Parser.

The error message I get is slightly different from the original
report, but so similar that I feel it must be the same thing:

  Undefined subroutine &main::foo called at ./test_program line 7.
  Attempt to free unreferenced scalar: SV 0x8160bec.

This output comes from running the same test_program
(see original post) with the following test_library
(replacing test_library from original post):

# test_library
package Fred;
sub new {
    my ($class, %args) = @_;
    my $handlers = $args{Key};
    bless $handlers;
sub parse {
  my ($self, $s) = @_;
  $self->{'/a'}->($self, 'Fred::Foo'->bar($self));
package Fred::Foo;
sub bar {
    my $class= shift;
sub children {
    my $elt= shift;

Tested on:
  Debian 3.1 stable/sarge
  Kernel: Linux i686
  perl 5.8.4-8sarge4
  perl-base 5.8.4-8sarge4

I think this bug should thus be reassigned to the perl package.


More information about the debian-xml-sgml-pkgs mailing list