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

[perl #123870] runtime trie debug output

Thread Previous
Hugo van der Sanden
February 18, 2015 10:59
[perl #123870] runtime trie debug output
Message ID:
# 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: >

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.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About