Skip Menu |

This queue is for tickets about the Text-Tabs+Wrap CPAN distribution.

Report information
The Basics
Id: 99379
Status: new
Priority: 0/
Queue: Text-Tabs+Wrap

Owner: Nobody in particular
Requestors: maurice.buxton [...]

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

Subject: $CHUNK not available during global destruction, causes unexpand to fail
Date: Wed, 8 Oct 2014 13:15:21 +0000
To: "bug-Text-Tabs+Wrap [...]" <bug-Text-Tabs+Wrap [...]>
From: Maurice Buxton <maurice.buxton [...]>
Hi, A failure of some logging code of ours that calls Text::Wrap::wrap, called from the DESTROY block of a singleton controller object, was eventually tracked down to Text::Tabs::unexpand - $CHUNK was blank and this caused the regex in the line @e = split(/(${CHUNK}{$tabstop})/,$line,-1); to fail. This was called during global destruction, so I presume the $CHUNK variable had already gone by that time? I fixed it by simply substituting the actual \X - given that this is so short and used only in two places, perhaps $CHUNK isn't necessary, or could be a package global rather than a lexical? Error in our logs: --------------------- | | Use of uninitialized value $CHUNK in regexp compilation at | | /home/jms/Perl/perl5.20.0/lib/5.20.0/Text/ line 62 during global destruction. | | (in cleanup) Quantifier follows nothing in regex; marked by <-- HERE in m/({ <-- HERE 8})/ at | | /home/jms/Perl/perl5.20.0/lib/5.20.0/Text/ line 62 during global destruction. Version info: ---------------- $VERSION = 2013.0523; Summary of my perl5 (revision 5 version 20 subversion 0) configuration: Platform: osname=linux, osvers=, archname=i686-linux uname='linux jmsmaster #1 smp sun apr 5 11:13:25 cest 2009 i686 gnulinux ' config_args='-des -Dprefix=/home/jms/Perl/perl5.20.0' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.2.4 (Ubuntu 4.2.4-1ubuntu4)', 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 =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib /lib/../lib /usr/lib/../lib /lib /usr/lib64 libs=-lnsl -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.7' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF Built under linux Compiled at Aug 20 2014 13:04:28 @INC: /home/jms/Perl/perl5.20.0/lib/site_perl/5.20.0/i686-linux /home/jms/Perl/perl5.20.0/lib/site_perl/5.20.0 /home/jms/Perl/perl5.20.0/lib/5.20.0/i686-linux /home/jms/Perl/perl5.20.0/lib/5.20.0 Maurice Buxton Systems Developer MeteoGroup T: +44 (0)207 963 7566 M: +44 (0)797 725 2278 E:<> W:<><> |<> | WeatherPro<> | MeteoEarth<> | AlertsPro<> | Twitter<> | Facebook<> Registered Office: MeteoGroup UK Limited, PA News Centre, 292 Vauxhall Bridge Road, London, SW1V 1AE, UK Registered in England No. 03288270
Download (untitled) / with headers
text/html 14.2k

Message body is not shown because it is too large.

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

Please report any issues with to