develooper Front page | perl.perl5.porters | Postings from February 2015

[perl #123951] stack underflow from func call

Thread Previous
From:
Hugo van der Sanden
Date:
February 28, 2015 11:46
Subject:
[perl #123951] stack underflow from func call
Message ID:
rt-4.0.18-15996-1425123962-1706.123951-75-0@perl.org
# New Ticket Created by  Hugo van der Sanden 
# Please include the string:  [perl #123951]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123951 >


AFL (<http://lcamtuf.coredump.cx/afl/>) finds this:

% /miniperl -e '&{0 == &{0 == 0}} * 0'
Segmentation fault (core dumped)
% 

Running with -Ds shows a stack underflow - the multiply is just a way to show it:

% ./miniperl -e '$^D="st"; &{0 == &{0 == 0}}'
    =>  PVMG("st"\0)  
(-e:1)  nextstate
    =>  
(-e:1)  pushmark
    =>  *  
(-e:1)  const(IV(0))
    =>  *  IV(0)  
(-e:1)  pushmark
    =>  *  IV(0)  *  
(-e:1)  const(SV_YES)
    =>  *  IV(0)  *  SV_YES  
(-e:1)  entersub
    =>  *  IV(0)  
(-e:1)  eq
    =>   [STACK UNDERFLOW!!!]
*  
(-e:1)  entersub
    =>   [STACK UNDERFLOW!!!]

(-e:1)  leave
% 

I'm unlikely to have time for further debugging on this one any time soon.

Hugo


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About