-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Crash when regex without body is used #1289
Labels
Comments
Ok, I discovered the reason wrong: it's not the backtrack, it's the regex without |
dmig
changed the title
Crash when regex backtracking is used
Crash when regex without body is used
Jul 24, 2024
It looks like it's because a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lnav version
v0.12.2, Macos
Describe the bug
I created a custom format file with 2 regexes, one matches subset of messages from another. Since
lnav
doesn't stop at first matched regex (shouldn't this be a default behavior?), I added a negative lookahead to one of them.lnav
silently stopped loading. When started with-WC
, it reports a crash.Without negative lookahead in regex
lnav
runs, but more generic regex is always used. When started with-WC
, it reports a warning about two matching regexes:To Reproduce
Steps to reproduce the behavior:
lnav test.log
,lnav -WC test.log
test.json
,regex.std.pattern
: remove(?!request_profiler)
substringCrash log:
crash-2024-07-24-14-15-06.40537.log
The text was updated successfully, but these errors were encountered: