Skip Menu |

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

Report information
The Basics
Id: 44598
Status: open
Priority: 0/
Queue: XML-Twig

People
Owner: Nobody in particular
Requestors: david.trusty [...] utsouthwestern.edu
Cc:
AdminCc:

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



Subject: Assertion rx->sublen failure at Twig.pm line 7806
Date: Thu, 26 Mar 2009 11:54:58 -0500
To: <bug-XML-Twig [...] rt.cpan.org>
From: "David Trusty" <David.Trusty [...] UTSouthwestern.edu>
Hi, I get this error: Assertion rx->sublen >= (s - rx->subbeg) + i failed: file "regcomp.c", line 5109 at /usr/lib/perl5/site_perl/5.10.0/XML/Twig.pm line 7806, <GEN0> line 433. When I try to parse the attached XML file. I am using XML-Twig-3.32. My Perl version info is below. Can you investigate? Thanks, David Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=linux, osvers=2.6.25, archname=x86_64-linux-thread-multi uname='linux oldfield 2.6.25 #1 smp 2008-12-08 03:55:28 +0100 x86_64 x86_64 x86_64 gnulinux ' config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true -Doptimize=-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -Wall -pipe -Accflags=-DPERL_USE_SAFE_PUTENV' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -Wall -pipe', cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe' ccversion='', gccversion='4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib64' libpth=/lib64 /usr/lib64 /usr/local/lib64 libs=-lm -ldl -lcrypt -lpthread perllibs=-lm -ldl -lcrypt -lpthread libc=/lib64/libc-2.8.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.8' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib64' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_TRACK_MEMPOOL PERL_USE_SAFE_PUTENV USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Jan 28 2009 15:28:34 @INC: /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .
Download test.xml
application/octet-stream 16k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #44598] Assertion rx->sublen failure at Twig.pm line 7806
Date: Thu, 26 Mar 2009 18:15:48 +0100
To: bug-XML-Twig [...] rt.cpan.org
From: mirod <xmltwig [...] gmail.com>
David Trusty via RT wrote: Show quoted text
> Thu Mar 26 12:55:29 2009: Request 44598 was acted upon. > Transaction: Ticket created by david.trusty@utsouthwestern.edu > Queue: XML-Twig > Subject: Assertion rx->sublen failure at Twig.pm line 7806 > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: david.trusty@utsouthwestern.edu > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=44598 > > > > Hi, > > I get this error: > Assertion rx->sublen >= (s - rx->subbeg) + i failed: file "regcomp.c", line 5109 at /usr/lib/perl5/site_perl/5.10.0/XML/Twig.pm line 7806, <GEN0> line 433. > > When I try to parse the attached XML file. I am using XML-Twig-3.32. > > Can you investigate?
Does this really happen when you just parse the file? because line 7806 of Twig.pm is only run when printing, (or sprint-ing). What's the smallest code that triggers the problem? You can try using the latest development version, from http://xmltwig.com/xmltwig/ and see if anything changes, the code is slightly different, but not much so I don't expect it to behave differently. The line is a simple regexp substitution, so the only problem I can think of is an encoding problem, maybe you have a 'use bytes' in your code, or something similar. I don't have a 64 perl around though, so I am not sure I can do much if I can't reproduce the bug. -- mirod
Subject: Re: [rt.cpan.org #44598] Assertion rx->sublen failure at Twig.pm line 7806
Date: Thu, 26 Mar 2009 12:49:35 -0500
To: bug-XML-Twig [...] rt.cpan.org
From: David Trusty <david.trusty [...] utsouthwestern.edu>
Hi, I am only doing parsing. No printing. I tried the latest development version. It also has the problem. I will try to send you some small code which calls Twig and reproduces the problem. Thanks, David On Thursday 26 March 2009, xmltwig@gmail.com via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=44598 > > > David Trusty via RT wrote:
> > Thu Mar 26 12:55:29 2009: Request 44598 was acted upon. > > Transaction: Ticket created by david.trusty@utsouthwestern.edu > > Queue: XML-Twig > > Subject: Assertion rx->sublen failure at Twig.pm line 7806 > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: david.trusty@utsouthwestern.edu > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=44598 > > > > > > > Hi, > > > > I get this error: > > Assertion rx->sublen >= (s - rx->subbeg) + i failed: file "regcomp.c", line 5109 at /usr/lib/perl5/site_perl/5.10.0/XML/Twig.pm line 7806, <GEN0> line 433. > > > > When I try to parse the attached XML file. I am using XML-Twig-3.32. > > > > Can you investigate?
> > Does this really happen when you just parse the file? because line 7806 of > Twig.pm is only run when printing, (or sprint-ing). What's the smallest code > that triggers the problem? > > You can try using the latest development version, from > http://xmltwig.com/xmltwig/ and see if anything changes, the code is slightly > different, but not much so I don't expect it to behave differently. > > The line is a simple regexp substitution, so the only problem I can think of is > an encoding problem, maybe you have a 'use bytes' in your code, or something > similar. > > I don't have a 64 perl around though, so I am not sure I can do much if I can't > reproduce the bug. >
Subject: Re: [rt.cpan.org #44598] Assertion rx->sublen failure at Twig.pm line 7806
Date: Thu, 26 Mar 2009 13:27:27 -0500
To: bug-XML-Twig [...] rt.cpan.org
From: David Trusty <david.trusty [...] utsouthwestern.edu>
Hi, I have reproduced the problem on a 32 bit machine also. I am attaching the code which I use for the parsing, the XML file, and the results. Just untar the file, and run parse.pl to reproduce the problem. Thanks, David On Thursday 26 March 2009, xmltwig@gmail.com via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=44598 > > > David Trusty via RT wrote:
> > Thu Mar 26 12:55:29 2009: Request 44598 was acted upon. > > Transaction: Ticket created by david.trusty@utsouthwestern.edu > > Queue: XML-Twig > > Subject: Assertion rx->sublen failure at Twig.pm line 7806 > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: david.trusty@utsouthwestern.edu > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=44598 > > > > > > > Hi, > > > > I get this error: > > Assertion rx->sublen >= (s - rx->subbeg) + i failed: file "regcomp.c", line 5109 at /usr/lib/perl5/site_perl/5.10.0/XML/Twig.pm line 7806, <GEN0> line 433. > > > > When I try to parse the attached XML file. I am using XML-Twig-3.32. > > > > Can you investigate?
> > Does this really happen when you just parse the file? because line 7806 of > Twig.pm is only run when printing, (or sprint-ing). What's the smallest code > that triggers the problem? > > You can try using the latest development version, from > http://xmltwig.com/xmltwig/ and see if anything changes, the code is slightly > different, but not much so I don't expect it to behave differently. > > The line is a simple regexp substitution, so the only problem I can think of is > an encoding problem, maybe you have a 'use bytes' in your code, or something > similar. > > I don't have a 64 perl around though, so I am not sure I can do much if I can't > reproduce the bug. >
Download bugtest.tgz
application/x-tgz 8.6k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #44598] Assertion rx->sublen failure at Twig.pm line 7806
Date: Thu, 26 Mar 2009 21:03:48 +0100
To: bug-XML-Twig [...] rt.cpan.org
From: mirod <xmltwig [...] gmail.com>
David Trusty via RT wrote: Show quoted text
> Queue: XML-Twig > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=44598 >
Show quoted text
> I have reproduced the problem on a 32 bit machine also. > I am attaching the code which I use for the parsing, the XML file, > and the results. Just untar the file, and run parse.pl to reproduce > the problem.
weird. I can't reproduce it here. Not with XML::Twig 3.32, nor with 3.33. Below is my perl -V output. The compilation options are slightly different, but the 2 are not that far apart. What OS are you using? I have the latest Ubuntu. -- mirod Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=linux, osvers=2.6.24-16-server, archname=i486-linux-gnu-thread-multi uname='linux vernadsky 2.6.24-16-server #1 smp thu apr 10 13:58:00 utc 2008 i686 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.10 -Darchlib=/usr/lib/perl/5.10 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.10.0 -Dsitearch=/usr/local/lib/perl/5.10.0 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.10.0 -Dd_dosuid -des' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -g', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.3.2', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/lib64 libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt perllibs=-ldl -lm -lpthread -lc -lcrypt libc=/lib/libc-2.8.90.so, so=so, useshrplib=true, libperl=libperl.so.5.10.0 gnulibc_version='2.8.90' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Dec 23 2008 02:10:11 @INC: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl
Subject: Re: [rt.cpan.org #44598] Assertion rx->sublen failure at Twig.pm line 7806
Date: Thu, 26 Mar 2009 15:08:52 -0500
To: bug-XML-Twig [...] rt.cpan.org
From: David Trusty <david.trusty [...] utsouthwestern.edu>
I am using SuSE 11.0. Thanks, David On Thursday 26 March 2009, xmltwig@gmail.com via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=44598 > > > David Trusty via RT wrote:
> > Queue: XML-Twig > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=44598 >
>
> > I have reproduced the problem on a 32 bit machine also. > > I am attaching the code which I use for the parsing, the XML file, > > and the results. Just untar the file, and run parse.pl to reproduce > > the problem.
> > weird. I can't reproduce it here. Not with XML::Twig 3.32, nor with 3.33. > > Below is my perl -V output. The compilation options are slightly different, but > the 2 are not that far apart. What OS are you using? I have the latest Ubuntu. >
Subject: Re: [rt.cpan.org #44598] Assertion rx->sublen failure at Twig.pm line 7806
Date: Sat, 28 Mar 2009 11:06:47 -0500
To: bug-XML-Twig [...] rt.cpan.org
From: david trusty <david.trusty [...] utsouthwestern.edu>
Hi, This seems to be a bug in perl itself. See this open perl bug report: http://rt.perl.org/rt3/Public/Bug/Display.html?id=60508 I added what I am seeing to that bug report. Thanks, David On Thursday 26 March 2009 03:04:19 pm xmltwig@gmail.com via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=44598 > > > David Trusty via RT wrote:
> > Queue: XML-Twig > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=44598 > > > > > I have reproduced the problem on a 32 bit machine also. > > I am attaching the code which I use for the parsing, the XML file, > > and the results. Just untar the file, and run parse.pl to reproduce > > the problem.
> > weird. I can't reproduce it here. Not with XML::Twig 3.32, nor with 3.33. > > Below is my perl -V output. The compilation options are slightly different, > but the 2 are not that far apart. What OS are you using? I have the latest > Ubuntu.