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

[perl #123870] runtime trie debug output

Thread Previous
From:
Hugo van der Sanden
Date:
February 18, 2015 10:59
Subject:
[perl #123870] runtime trie debug output
Message ID:
rt-4.0.18-30192-1424257146-1188.123870-75-0@perl.org
# New Ticket Created by  Hugo van der Sanden 
# Please include the string:  [perl #123870]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123870 >


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

% ./miniperl -e '$^D = "r"; /0$|/'
Matching REx "0$|" against ""
   0 <> <>                   |  1:TRIE-EXACT[0](7)
                                  matched empty string...
   0 <> <>                   |    State:    1 Accepted: Y Charid:  0 CP:   0 After State:    0
                                  got 1 possible matches
                                  TRIE matched word #2, continuing
miniperl: av.c:243: Perl_av_fetch: Assertion `av' failed.
Aborted (core dumped)
% 

This occurs because with -Dr, trie matching wants to use some data prepared (if -Dr is enabled) at compile time. It tries to allow for the possibility -Dr wasn't enabled until later, but wasn't quite defensive enough.

I'll push a fix shortly.

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