Open dmig opened 1 month ago
Ok, I discovered the reason wrong: it's not the backtrack, it's the regex without body
.
But shouldn't crash anyway.
It looks like it's because a module
field is defined with a body
field. The validator should check for that.
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 regexlnav
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