develooper Front page | perl.perl5.porters | Postings from March 2018

[perl #132163] perl: sv.c:12530: void Perl_sv_vcatpvfn_flags()Assertion '0' failed.

Thread Previous
From:
Karl Williamson via RT
Date:
March 5, 2018 22:22
Subject:
[perl #132163] perl: sv.c:12530: void Perl_sv_vcatpvfn_flags()Assertion '0' failed.
Message ID:
rt-4.0.24-13715-1520288520-871.132163-15-0@perl.org
On Mon, 13 Nov 2017 14:01:02 -0800, atoomic@cpan.org wrote:
> using v5.27.6 (v5.27.5-349-gb9a5a78fe9), I cannot reproduce this SEGV.
> The fix is probably coming from Karl's recent changes
> 
> v5.27.5-349-gb9a5a78fe9> ./perl -e '$p00="[\0\\N{U+.}";qr/$p00/'
> Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE \N{U+.}/ at
> -e line 1.
> 
> At this point, I think we should close this ticket.

The problem with closing the ticket is that just adding the missing ']' causes it to be buggy in a different way.

Compiling REx "[%0\N{U+.}]"
Illegal hexadecimal digit '|' ignored at 132163.pl line 2.
Illegal hexadecimal digit '\' ignored at 132163.pl line 2.
rarest char  at 0
Final program:
   1: EXACT <\0\0\0]> (5)
   5: END (0)
anchored "%0%0%0]" at 0..0 (checking anchored isall) minlen 4 
Freeing REx: "[%0\N{U+.}]"


There is no '|' in this pattern; and it should fail instead of compiling into the wrong stuff.

-- 
Karl Williamson

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=132163

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