tstack / lnav

Log file navigator
http://lnav.org
BSD 2-Clause "Simplified" License
7.96k stars 321 forks source link

Crash when filtering log piped through stdin #1295

Open izderadicka opened 2 months ago

izderadicka commented 2 months ago

lnav version v0.12.2

Describe the bug I have program with extensive (trace) logs - going to stdout I piped lnav - | lnav -t log viewing worked ok, but when I tried to apply simple out filter (just word dht) lnav crashed after hitting Enter on filter text.

Crash logs for two crashes are attached.

When I redirected stdout from program to file and started lnav on that file it works OK - I can add same filter without crash.

To Reproduce Steps to reproduce the behavior: 1) program is rust program (rqbit) started with trace debuging 2) pipe it to | lnav -t 3) add out filter with text dht and hit Enter

Crash logs crash-2024-08-18-08-48-10.147220.log crash-2024-08-18-08-45-24.146656.log

izderadicka commented 2 months ago

Stdin pipe is not the only cause of problems, lnav crashes also on same logs supplied from file. When file get bigger - like 300M I got crashes when changing filter - this time crashes are bit random,

more crash files crash-2024-08-24-18-57-21.902337.log crash-2024-08-24-19-46-07.903454.log crash-2024-08-24-19-57-29.922533.log

TheArcaneBrony commented 1 month ago

Getting crashes here even without filters: image

MathiasSven commented 1 month ago

Same thing here, doing echo hello | lnav crashes in the same way as displayed on the comment above. Reverting to 0.11.2 from 0.12.2 fixed the issue, though I have not tried any other versions in-between.

Is this reproducible outside nixpkgs?