New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failure in S_ReANY/S_regmatch #16878
Comments
From @dur-randirCreated by @dur-randirWhile fuzzing perl v5.29.8-21-gde59f38ed9 built with afl and run
to cause an assertion failure perl: inline.h:182: S_ReANY: Assertion `isREGEXP(re)' failed. GDB stack trace is following: #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 Perl Info
|
From @khwilliamsonOn Thu, 07 Mar 2019 15:45:00 -0800, randir wrote:
Here's what 're' looks like at the point where the assertion fails SV = PVMG(0x555555e1c8c8) at 0x555555e29770 -- |
The RT System itself - Status changed from 'new' to 'open' |
@khwilliamson thoughts on a fix? |
Since this involves code blocks which @iabyn understands much better than I, I'm hoping he will look at it. |
FWIW I've not been able to reproduce this, can we unravel the code a bit to make clearer what's in play? Eg, can we replace I tried with 3 of my standard builds: gcc, clang + sanitize=address, clang + sanitize=undefined; in each case built with DEBUGGING and otherwise standard options. (clang is: 6.0.0-1ubuntu2). If you have a build recipe for reproducing it, that would be useful too. |
@xsawyerx, this is a regression before 5.18, I don't think it's too important @hvds, either copy from the original RT ticket (looks like it was broken in transition), or this is a hex dump of it, DDEBUGGING build is enough: 00000000 73 2c 28 3f 7b 24 24 3d 74 3b 24 24 24 3d 71 72 |s,(?{$$=t;$$$=qr| |
Thanks, looks like there was an additional HTML-escaped character in there; I've taken the liberty of editing the converted post to replace the escaping with literal code. |
It simplifies at least to: I'd be tempted to make the assert a mandatory panic, but I agree it doesn't seem urgent. |
Migrated from rt.perl.org#133908 (status was 'open')
Searchable as RT133908$
The text was updated successfully, but these errors were encountered: