-
Notifications
You must be signed in to change notification settings - Fork 550
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
S_invlist_clear(SV *): Assertion `invlist' failed (regcomp.c:8527) #15620
Comments
From @geeknikTriggered in Perl v5.25.5 (v5.25.4-130-g7aa7bbc). ./perl -e '/(?[[!]&[0]^[!]&[0]])/' |
From @hvdsThe call from regcomp.c:15315 (S_handle_regex_sets) has: Karl, can you take a look? Hugo |
The RT System itself - Status changed from 'new' to 'open' |
From @khwilliamsonOn 10/06/2016 09:09 AM, Hugo van der Sanden via RT wrote:
I plan to. What the docs mean is that u must be initialized, which it
|
From @hvdsOn Thu Oct 06 09:53:44 2016, public@khwilliamson.com wrote:
I don't know - the docs go on to say: if it points to one of the two lists [...] otherwise just its contents will be modified .. which does not appear to allow for it being NULL. I'd probably write it as "... must point to an invlist or NULL ...", but I find the semantics strange and confusing - I would have expected a signature more like: SV* Perl__invlist_union_maybe_complement_2nd(pTHX_ SV* a, SV* b, bool complement_b) .. and I assume there's a good reason why it isn't, but that doesn't jump out at me. In any case, that suggests the core dump is due to a missing guard rather than an error in the caller; I tried hacking in a simplistic fix: if (_invlist_len(a) == 0) { .. which avoids the coredump, but clearly there's more involved since it now gives a double-free on 'final' at the 'bad_syntax' label. Hugo |
From @khwilliamsonOn 10/07/2016 05:36 AM, Hugo van der Sanden via RT wrote:
The original reason was to have to write less code, by letting the temp = union(a, b); It's easier to say union(a, b, &b); and now the function knows it is to overwrite b, and can take shortcuts.
This is now fixed by a5540cf. The
|
@khwilliamson - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release today of Perl 5.26.0, this and 210 other issues have been Perl 5.26.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#129322 (status was 'resolved')
Searchable as RT129322$
The text was updated successfully, but these errors were encountered: