
perlbug-followup at perl
Apr 8, 2012, 1:32 PM
Views: 31
Permalink
|
|
[perl #112350] panic: sv_setpvn with $SIG{ALRM} and split
|
|
# New Ticket Created by Father Chrysostomos # Please include the string: [perl #112350] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112350 > In <4F7C2642.40209 [at] profvince>, Vincent Pit wrote: > On 04/04/2012 10:57, Jiří Václavík wrote: > > Hello, > > > > after perl update I've hit on the following error message: > > > > panic: sv_setpvn called with negative strlen at bug.pl line 11. > > > > I don't exactly know what is wrong, but I've created short > > synthetic script, which is attached. It works fine on perl5.12.4 > > and crash on perl5.14.2. > > > > This can be reduced to : > > local $SIG{"ALRM"} = sub { "foo" =~ /o/ }; > alarm 1; > split m{(\b)}, 'assdf ' x 5000000; # must run more than 1 sec. > > It started to panic between 5.12 and 5.13.3, and is still present in 5.15.8. And then Nicholas Clark followed up with a couple of messages (<http://www.nntp.perl.org/group/perl.perl5.porters/;msgid=20120404144528.GE9069 [at] plum> and <http://www.nntp.perl.org/group/perl.perl5.porters/;msgid=20120404150046.GF9069 [at] plum>), suggesting that it has to do with PERL_ASYNC_CHECK. This is a regression in 5.14. Can it be a 5.16 blocker? --- Flags: category=core severity=low --- Site configuration information for perl 5.15.9: Configured by sprout at Sun Mar 25 00:02:27 PDT 2012. Summary of my perl5 (revision 5 version 15 subversion 9) configuration: Snapshot of: eade71555e37e053d1aa5b29a45a0f06b3a3458f Platform: osname=darwin, osvers=10.5.0, archname=darwin-2level uname='darwin pint.local 10.5.0 darwin kernel version 10.5.0: fri nov 5 23:20:39 pdt 2010; root:xnu-1504.9.17~1release_i386 i386 ' config_args='-Dusedevel -de' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include', optimize='-O3', cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.2.1 (Apple Inc. build 5664)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector' Locally applied patches: --- @INC for perl 5.15.9: /usr/local/lib/perl5/site_perl/5.15.9/darwin-2level /usr/local/lib/perl5/site_perl/5.15.9 /usr/local/lib/perl5/5.15.9/darwin-2level /usr/local/lib/perl5/5.15.9 /usr/local/lib/perl5/site_perl . --- Environment for perl 5.15.9: DYLD_LIBRARY_PATH (unset) HOME=/Users/sprout LANG=en_US.UTF-8 LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/bin PERL_BADLANG (unset) SHELL=/bin/bash
|