Skip Menu |
Report information
Id: 132974
Status: pending release
Priority: 0/
Queue: perl5

Owner: nicholas <nick [at] ccl4.org>
Requestors: bulk88 <bulk88 [at] hotmail.com>
Cc:
AdminCc:

Operating System: (no value)
PatchStatus: Applied
Severity: low
Type: core
Perl Version:
  • 5.27.9
  • 5.8.0
  • 5.8.1
  • 5.8.2
  • 5.8.3
  • 5.8.4
  • 5.8.5
  • 5.8.6
  • 5.8.7
  • 5.8.8
  • 5.8.9
  • 5.9.0
  • 5.9.1
  • 5.9.2
  • 5.9.3
  • 5.9.4
  • 5.9.5
  • 5.0.1
  • 5.10.0
  • 5.10.1
  • 5.11.0
  • 5.11.1
  • 5.11.2
  • 5.11.3
  • 5.11.4
  • 5.11.5
  • 5.12.0
  • 5.12.1
  • 5.12.2
  • 5.12.3
  • 5.12.4
  • 5.12.5
  • 5.12.6
  • 5.13.0
  • 5.13.1
  • 5.13.2
  • 5.13.3
  • 5.13.4
  • 5.13.5
  • 5.13.6
  • 5.13.7
  • 5.13.8
  • 5.13.9
  • 5.13.10
  • 5.13.11
  • 5.14.0
  • 5.14.1
  • 5.14.2
  • 5.14.3
  • 5.14.4
  • 5.14.5
  • 5.15.0
  • 5.15.1
  • 5.15.2
  • 5.15.3
  • 5.15.4
  • 5.15.5
  • 5.15.6
  • 5.15.7
  • 5.15.8
  • 5.15.9
  • 5.15.10
  • 5.16.0
  • 5.16.1
  • 5.16.2
  • 5.16.3
  • 5.16.4
  • 5.17.0
  • 5.17.1
  • 5.17.2
  • 5.17.3
  • 5.17.4
  • 5.17.5
  • 5.17.6
  • 5.17.7
  • 5.17.8
  • 5.17.9
  • 5.17.10
  • 5.17.11
  • 5.17.12
  • 5.18.0
  • 5.18.1
  • 5.18.2
  • 5.18.3
  • 5.18.4
  • 5.18.5
  • 5.19.0
  • 5.19.1
  • 5.19.2
  • 5.19.3
  • 5.19.4
  • 5.19.5
  • 5.19.6
  • 5.19.7
  • 5.19.8
  • 5.19.9
  • 5.19.10
  • 5.19.11
  • 5.20.0
  • 5.20.1
  • 5.20.2
  • 5.20.3
  • 5.21.0
  • 5.21.1
  • 5.21.2
  • 5.21.3
  • 5.21.4
  • 5.21.5
  • 5.21.6
  • 5.21.7
  • 5.21.8
  • 5.21.9
  • 5.21.10
  • 5.21.11
  • 5.22.0
  • 5.22.1
  • 5.22.2
  • 5.22.3
  • 5.22.4
  • 5.23.0
  • 5.23.1
  • 5.23.2
  • 5.23.3
  • 5.23.4
  • 5.23.5
  • 5.23.6
  • 5.23.7
  • 5.23.8
  • 5.23.9
  • 5.24.0
  • 5.24.1
  • 5.24.2
  • 5.24.3
  • 5.24.4
  • 5.25.0
  • 5.25.1
  • 5.25.2
  • 5.25.3
  • 5.25.4
  • 5.25.5
  • 5.25.6
  • 5.25.7
  • 5.25.8
  • 5.25.9
  • 5.25.10
  • 5.25.11
  • 5.25.12
  • 5.25.13
  • 5.26.0
  • 5.26.1
  • 5.26.2
  • 5.27.0
  • 5.27.1
  • 5.27.2
  • 5.27.3
  • 5.27.4
  • 5.27.5
  • 5.27.6
  • 5.27.7
  • 5.27.8
Fixed In: 5.27.11

Attachments
0001-ExtUtils-Constant-fix-panic-failed-to-extend-arg-sta.patch



Date: Wed, 14 Mar 2018 04:05:19 +0000
From: bulk 88 <bulk88 [...] hotmail.com>
Subject: [PATCH] ExtUtils::Constant fix "panic: failed to extend arg stack"
To: "perlbug [...] perl.org" <perlbug [...] perl.org>
Download (untitled) / with headers
text/plain 8.6k
This is a bug report for perl from bulk88@hotmail.com, generated with the help of perlbug 1.41 running under perl 5.27.9. ----------------------------------------------------------------- [Please describe your issue here] See attached patch. This is a 5.28 blocker IMO. I can't use the perl debugger ("-d") or Komodo debugger, on a DEBUGGING build, without this patch. I can reproduce the panic every time, but there are 2 conditions for me. I HAVE to use -d and the perl debugger. I am not sure why. I'm not sure how to test the stack extend logic deterministically from PP, or how to make a certain number of frames or largeness of stack frames to trigger the panic without using -d. And it must be a DEBUGGING build (panic check wont be in the binary otherwise). IDK if on other systems it can be reproduced. Since ExtUtils::Constant isn't maintained on CPAN https://www.nntp.perl.org/group/perl.perl5.porters/2017/01/msg242516.html and its being patched/revision controlled in core and has no outside repo https://perl5.git.perl.org/perl.git/history/HEAD:/cpan/ExtUtils-Constant/lib/ExtUtils and this breaks using perl5db.pl with any script that ever winds up calling AUTOLOAD/EU::C's XS code since 5.27.2 this patch is against core. Perls before 5.27.2 arent affected but the stack-overflow-by-1 is still there, but I think no actual memory corruption can happen, since pp_entersub always pops the CV off the stack, and XSUB constant() croaks if it has zero args (it needs 1 arg), accidentally guaranteeing space for 2 stack slots on the list context return of XSUB constant(). Example of me executing the panic. ------------------------------- C:\p527\srcnew>perl -V Summary of my perl5 (revision 5 version 27 subversion 10) configuration: Platform: osname=MSWin32 osvers=5.2.3790 archname=MSWin32-x64-multi-thread uname='' config_args='undef' hint=recommended useposix=true d_sigaction=undef useithreads=define usemultiplicity=define use64bitint=define use64bitall=undef uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define bincompat5005=undef Compiler: cc='cl' ccflags ='-nologo -GF -W3 -Od -MD -Zi -DDEBUGGING -fp:precise -DWIN32 -D_CON SOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTD C_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_ SYS -DWIN32_NO_REGISTRY' optimize='-Od -MD -Zi -DDEBUGGING -fp:precise' cppflags='-DWIN32' ccversion='15.00.30729.01' gccversion='' gccosandvers='' intsize=4 longsize=4 ptrsize=8 doublesize=8 byteorder=12345678 doublekind=3 d_longlong=undef longlongsize=8 d_longdbl=define longdblsize=8 longdblkind=0 ivtype='__int64' ivsize=8 nvtype='double' nvsize=8 Off_t='__int64' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='link' ldflags ='-nologo -nodefaultlib -debug -libpath:"c:\perl\lib\CO RE" -machine:AMD64' libpth="c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64" libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.li b advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.l ib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg3 2.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_ 32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt .lib libc=msvcrt.lib so=dll useshrplib=true libperl=perl527.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs dlext=dll d_dlsymun=undef ccdlflags=' ' cccdlflags=' ' lddlflags='-dll -nologo -nodefaultlib -debug -libpath:"c:\per l\lib\CORE" -machine:AMD64' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DISABLE_PMC PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_OP_PARENT PERL_PRESERVE_IVUV PERL_TRACK_MEMPOOL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_NO_REGISTRY USE_PERLIO USE_PERL_ATOF Built under MSWin32 Compiled at Mar 13 2018 17:34:03 @INC: C:/p527/srcnew/lib C:\p527\srcnew>perl -d -e"use Compress::Raw::Bzip2;Compress::Raw::Bzip2::constan t('BZ_OK');" Loading DB routines from perl5db.pl version 1.53 Editor support available. Enter h or 'h h' for help, or 'perldoc perldebug' for more help. main::(-e:1): use Compress::Raw::Bzip2;Compress::Raw::Bzip2::constant('BZ_OK') ; DB<1> c panic: XSUB Compress::Raw::Bzip2::constant (Bzip2.c) failed to extend arg stack: base=1b13010, sp=1b13020, hwm=1b13018 at -e line 1. Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<1> q C:\p527\srcnew> ------------------------------- [Please do not change anything below this line] ----------------------------------------------------------------- --- Flags: category=core severity=low --- Site configuration information for perl 5.27.9: Configured by Administrator at Tue Jan 30 20:34:30 2018. Summary of my perl5 (revision 5 version 27 subversion 9) configuration: Platform: osname=MSWin32 osvers=5.2.3790 archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended useposix=true d_sigaction=undef useithreads=define usemultiplicity=define use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define bincompat5005=undef Compiler: cc='cl' ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DWIN32_NO_REGISTRY' optimize='-O1 -MD -Zi -DNDEBUG -GL' cppflags='-DWIN32' ccversion='15.00.30729.01' gccversion='' gccosandvers='' intsize=4 longsize=4 ptrsize=4 doublesize=8 byteorder=1234 doublekind=3 d_longlong=undef longlongsize=8 d_longdbl=define longdblsize=8 longdblkind=0 ivtype='long' ivsize=4 nvtype='double' nvsize=8 Off_t='__int64' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='link' ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -ltcg -libpath:"c:\perl\lib\CORE" -machine:x86' libpth="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib" libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib libc=msvcrt.lib so=dll useshrplib=true libperl=perl527.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs dlext=dll d_dlsymun=undef ccdlflags=' ' cccdlflags=' ' lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg -libpath:"c:\perl\lib\CORE" -machine:x86' --- @INC for perl 5.27.9: lib C:/p527/srcnew/lib --- Environment for perl 5.27.9: CYGWIN=tty HOME (unset) LANG (unset) LANGUAGE (unset) LD_LIBRARY_PATH=/usr/lib/x86:/usr/X11R6/lib LOGDIR (unset) PATH=C:\WINDOWS\system32;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Perl\bin;C:\WINDOWS;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files (x86)\Git\bin;C:\sp3220\c\bin; PERL_BADLANG (unset) SHELL (unset)

Message body is not shown because sender requested not to inline it.

RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 8.7k
On Wed, 14 Mar 2018 04:05:37 GMT, bulk88 wrote: Show quoted text
> This is a bug report for perl from bulk88@hotmail.com, > generated with the help of perlbug 1.41 running under perl 5.27.9. > > > ----------------------------------------------------------------- > [Please describe your issue here] > > See attached patch. This is a 5.28 blocker IMO. I can't use the perl > debugger ("-d") or Komodo debugger, on a DEBUGGING build, without this > patch. I can reproduce the panic every time, but there are 2 > conditions > for me. I HAVE to use -d and the perl debugger. I am not sure why. I'm > not sure how to test the stack extend logic deterministically from PP, > or how to make a certain number of frames or largeness of stack frames > to trigger the panic without using -d. > > And it must be a DEBUGGING build (panic check wont be in the binary > otherwise). IDK if on other systems it can be reproduced. > > Since ExtUtils::Constant isn't maintained on CPAN > https://www.nntp.perl.org/group/perl.perl5.porters/2017/01/msg242516.html > and its being patched/revision controlled in core and has no outside > repo > https://perl5.git.perl.org/perl.git/history/HEAD:/cpan/ExtUtils- > Constant/lib/ExtUtils > and this breaks using perl5db.pl with any script that ever winds up > calling AUTOLOAD/EU::C's XS code since 5.27.2 this patch is against > core. Perls before 5.27.2 arent affected but the stack-overflow-by-1 > is > still there, but I think no actual memory corruption can happen, since > pp_entersub always pops the CV off the stack, and XSUB constant() > croaks > if it has zero args (it needs 1 arg), accidentally guaranteeing space > for 2 stack slots on the list context return of XSUB constant(). > > Example of me executing the panic. > ------------------------------- > C:\p527\srcnew>perl -V > Summary of my perl5 (revision 5 version 27 subversion 10) > configuration: > > Platform: > osname=MSWin32 > osvers=5.2.3790 > archname=MSWin32-x64-multi-thread > uname='' > config_args='undef' > hint=recommended > useposix=true > d_sigaction=undef > useithreads=define > usemultiplicity=define > use64bitint=define > use64bitall=undef > uselongdouble=undef > usemymalloc=n > default_inc_excludes_dot=define > bincompat5005=undef > Compiler: > cc='cl' > ccflags ='-nologo -GF -W3 -Od -MD -Zi -DDEBUGGING -fp:precise > -DWIN32 -D_CON > SOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -D_CRT_SECURE_NO_DEPRECATE > -D_CRT_NONSTD > C_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT > -DPERL_IMPLICIT_ > SYS -DWIN32_NO_REGISTRY' > optimize='-Od -MD -Zi -DDEBUGGING -fp:precise' > cppflags='-DWIN32' > ccversion='15.00.30729.01' > gccversion='' > gccosandvers='' > intsize=4 > longsize=4 > ptrsize=8 > doublesize=8 > byteorder=12345678 > doublekind=3 > d_longlong=undef > longlongsize=8 > d_longdbl=define > longdblsize=8 > longdblkind=0 > ivtype='__int64' > ivsize=8 > nvtype='double' > nvsize=8 > Off_t='__int64' > lseeksize=8 > alignbytes=8 > prototype=define > Linker and Libraries: > ld='link' > ldflags ='-nologo -nodefaultlib -debug > -libpath:"c:\perl\lib\CO > RE" -machine:AMD64' > libpth="c:\Program Files (x86)\Microsoft Visual Studio > 9.0\VC\lib\amd64" > libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib > comdlg32.li > b advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib > uuid.lib > ws2_32.l > ib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib > msvcrt.lib > > perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib > winspool.lib comdlg3 > 2.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib > uuid.lib ws2_ > 32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib > comctl32.lib msvcrt > .lib > libc=msvcrt.lib > so=dll > useshrplib=true > libperl=perl527.lib > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_win32.xs > dlext=dll > d_dlsymun=undef > ccdlflags=' ' > cccdlflags=' ' > lddlflags='-dll -nologo -nodefaultlib -debug > -libpath:"c:\per > l\lib\CORE" -machine:AMD64' > > > Characteristics of this binary (from libperl): > Compile-time options: > DEBUGGING > HAS_TIMES > HAVE_INTERP_INTERN > MULTIPLICITY > PERLIO_LAYERS > PERL_COPY_ON_WRITE > PERL_DISABLE_PMC > PERL_DONT_CREATE_GVSV > PERL_IMPLICIT_CONTEXT > PERL_IMPLICIT_SYS > PERL_OP_PARENT > PERL_PRESERVE_IVUV > PERL_TRACK_MEMPOOL > USE_64_BIT_INT > USE_ITHREADS > USE_LARGE_FILES > USE_LOCALE > USE_LOCALE_COLLATE > USE_LOCALE_CTYPE > USE_LOCALE_NUMERIC > USE_LOCALE_TIME > USE_NO_REGISTRY > USE_PERLIO > USE_PERL_ATOF > Built under MSWin32 > Compiled at Mar 13 2018 17:34:03 > @INC: > C:/p527/srcnew/lib > > C:\p527\srcnew>perl -d -e"use > Compress::Raw::Bzip2;Compress::Raw::Bzip2::constan > t('BZ_OK');" > > Loading DB routines from perl5db.pl version 1.53 > Editor support available. > > Enter h or 'h h' for help, or 'perldoc perldebug' for more help. > > main::(-e:1): use > Compress::Raw::Bzip2;Compress::Raw::Bzip2::constant('BZ_OK') > ; > DB<1> c > panic: XSUB Compress::Raw::Bzip2::constant (Bzip2.c) failed to extend > arg stack: > base=1b13010, sp=1b13020, hwm=1b13018 > at -e line 1. > Debugged program terminated. Use q to quit or R to restart, > use o inhibit_exit to avoid stopping after program termination, > h q, h R or h o to get additional info. > DB<1> q > > C:\p527\srcnew> > ------------------------------- > > [Please do not change anything below this line] > ----------------------------------------------------------------- > --- > Flags: > category=core > severity=low > --- > Site configuration information for perl 5.27.9: > > Configured by Administrator at Tue Jan 30 20:34:30 2018. > > Summary of my perl5 (revision 5 version 27 subversion 9) > configuration: > > Platform: > osname=MSWin32 > osvers=5.2.3790 > archname=MSWin32-x86-multi-thread > uname='' > config_args='undef' > hint=recommended > useposix=true > d_sigaction=undef > useithreads=define > usemultiplicity=define > use64bitint=undef > use64bitall=undef > uselongdouble=undef > usemymalloc=n > default_inc_excludes_dot=define > bincompat5005=undef > Compiler: > cc='cl' > ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 > -D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE > -D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DWIN32_NO_REGISTRY' > optimize='-O1 -MD -Zi -DNDEBUG -GL' > cppflags='-DWIN32' > ccversion='15.00.30729.01' > gccversion='' > gccosandvers='' > intsize=4 > longsize=4 > ptrsize=4 > doublesize=8 > byteorder=1234 > doublekind=3 > d_longlong=undef > longlongsize=8 > d_longdbl=define > longdblsize=8 > longdblkind=0 > ivtype='long' > ivsize=4 > nvtype='double' > nvsize=8 > Off_t='__int64' > lseeksize=8 > alignbytes=8 > prototype=define > Linker and Libraries: > ld='link' > ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -ltcg > -libpath:"c:\perl\lib\CORE" -machine:x86' > libpth="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib" > libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib > comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib > netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib > odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib > perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib > winspool.lib > comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib > netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib > odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib > libc=msvcrt.lib > so=dll > useshrplib=true > libperl=perl527.lib > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_win32.xs > dlext=dll > d_dlsymun=undef > ccdlflags=' ' > cccdlflags=' ' > lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg > -libpath:"c:\perl\lib\CORE" -machine:x86' > > > --- > @INC for perl 5.27.9: > lib > C:/p527/srcnew/lib > > --- > Environment for perl 5.27.9: > CYGWIN=tty > HOME (unset) > LANG (unset) > LANGUAGE (unset) > LD_LIBRARY_PATH=/usr/lib/x86:/usr/X11R6/lib > LOGDIR (unset) > PATH=C:\WINDOWS\system32;C:\Program Files (x86)\Microsoft > Visual > Studio 9.0\VC\BIN;C:\Program Files\Microsoft > SDKs\Windows\v6.0A\bin;C:\Perl\bin;C:\WINDOWS;C:\Program Files > (x86)\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files > (x86)\Git\bin;C:\sp3220\c\bin; > PERL_BADLANG (unset) > SHELL (unset)
Did you have this problem with 5.26? If not, are you able to determine the 5.27.x development version at which this problem first appeared? Thank you very much. -- James E Keenan (jkeenan@cpan.org)
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 570b
On Wed, 14 Mar 2018 04:57:00 -0700, jkeenan wrote: Show quoted text
> Did you have this problem with 5.26? If not, are you able to > determine the 5.27.x development version at which this problem first > appeared? > > Thank you very much.
5.26? No. https://perl5.git.perl.org/perl.git/87058c31e9fa350bda8d797127c9c175d0b1a893 is the fault commit if I bisect it, but that commit just reveals/catches the mem overflow that was there since 2001 aka Day 1 of EU::C https://perl5.git.perl.org/perl.git/commitdiff/af6c647ee5aae2406b2bfb66c4fe11a81de75b05 -- bulk88 ~ bulk88 at hotmail.com
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 814b
On Tue, 13 Mar 2018 21:05:37 -0700, bulk88 wrote: Show quoted text
> This is a bug report for perl from bulk88@hotmail.com, > generated with the help of perlbug 1.41 running under perl 5.27.9. > > > ----------------------------------------------------------------- > [Please describe your issue here] > > See attached patch. This is a 5.28 blocker IMO. I can't use the perl > debugger ("-d") or Komodo debugger, on a DEBUGGING build, without this > patch. I can reproduce the panic every time, but there are 2 > conditions > for me. I HAVE to use -d and the perl debugger. I am not sure why. I'm > not sure how to test the stack extend logic deterministically from PP, > or how to make a certain number of frames or largeness of stack frames > to trigger the panic without using -d. >
Bump. -- bulk88 ~ bulk88 at hotmail.com
To: perl5-porters [...] perl.org
Subject: Re: [perl #132974] [PATCH] ExtUtils::Constant fix "panic: failed to extend arg stack"
From: Nicholas Clark <nick [...] ccl4.org>
Date: Wed, 18 Apr 2018 07:20:25 +0100
Download (untitled) / with headers
text/plain 933b
On Wed, Mar 14, 2018 at 07:06:21AM -0700, bulk88 via RT wrote: Show quoted text
> On Wed, 14 Mar 2018 04:57:00 -0700, jkeenan wrote:
> > Did you have this problem with 5.26? If not, are you able to > > determine the 5.27.x development version at which this problem first > > appeared? > > > > Thank you very much.
> > 5.26? No. https://perl5.git.perl.org/perl.git/87058c31e9fa350bda8d797127c9c175d0b1a893 is the fault commit if I bisect it, but that commit just reveals/catches the mem overflow that was there since 2001 aka Day 1 of EU::C https://perl5.git.perl.org/perl.git/commitdiff/af6c647ee5aae2406b2bfb66c4fe11a81de75b05
Thanks for the patch, now applied, on CPAN (or in the pipeline) and in blead. As you say in the report, the bug is hard to replicate, and I wasn't able to locally. Yes, the bug seems to have been present since the code was first written, and your change looks to me to be the minimal and correct fix. Nicholas Clark
From: Sawyer X <xsawyerx [...] gmail.com>
Subject: Re: [perl #132974] [PATCH] ExtUtils::Constant fix "panic: failed to extend arg stack"
To: Nicholas Clark <nick [...] ccl4.org>, perl5-porters [...] perl.org
Date: Thu, 19 Apr 2018 00:15:15 +0300
Download (untitled) / with headers
text/plain 803b
On 04/18/2018 09:20 AM, Nicholas Clark wrote: Show quoted text
> On Wed, Mar 14, 2018 at 07:06:21AM -0700, bulk88 via RT wrote:
>> On Wed, 14 Mar 2018 04:57:00 -0700, jkeenan wrote:
>>> Did you have this problem with 5.26? If not, are you able to >>> determine the 5.27.x development version at which this problem first >>> appeared? >>> >>> Thank you very much.
>> 5.26? No. https://perl5.git.perl.org/perl.git/87058c31e9fa350bda8d797127c9c175d0b1a893 is the fault commit if I bisect it, but that commit just reveals/catches the mem overflow that was there since 2001 aka Day 1 of EU::C https://perl5.git.perl.org/perl.git/commitdiff/af6c647ee5aae2406b2bfb66c4fe11a81de75b05
> Thanks for the patch, now applied, on CPAN (or in the pipeline) and in > blead.
This has been on my radar for a while. Thanks, everyone.


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

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org