Skip to content
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 filtering log piped through stdin #1295

Open
izderadicka opened this issue Aug 18, 2024 · 4 comments
Open

Crash when filtering log piped through stdin #1295

izderadicka opened this issue Aug 18, 2024 · 4 comments
Labels

Comments

@izderadicka
Copy link

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
Copy link
Author

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
Copy link

TheArcaneBrony commented Sep 10, 2024

Getting crashes here even without filters:
image

@MathiasSven
Copy link

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?

@TheArcaneBrony
Copy link

The original bug report was made on Ubuntu, so I'd assume so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants