Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792582 - app-admin/lnav: Segfaults when I press right arrow key
Summary: app-admin/lnav: Segfaults when I press right arrow key
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Randy Barlow
URL: https://github.com/tstack/lnav/issues...
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2021-05-28 03:33 UTC by Randy Barlow
Modified: 2021-07-13 21:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Barlow 2021-05-28 03:33:30 UTC
I've observed that lnav segfaults when I press the right arrow key. I poked around in their issue tracker and found that the issue has already been reported and fixed on the main development branch, but is not part of a release yet.

I have backported the fix[0] as a patch that I will apply to the package.


[0] https://github.com/tstack/lnav/commit/9c1f2ca4fa1063a70fa242a59b4ec35207fb4222

Reproducible: Always
Comment 1 Randy Barlow 2021-05-28 03:34:26 UTC
I seem to be unable to assign this to myself, but I've got a patch to fix this and will submit it to GitHub shortly.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-28 03:51:16 UTC
Thank you!
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-05-28 07:06:22 UTC
Suggested workaround: don't press the right arrow key

/me hides
Comment 4 Randy Barlow 2021-05-28 13:30:40 UTC
Ha!

See also: https://xkcd.com/1172/
Comment 5 Larry the Git Cow gentoo-dev 2021-07-13 21:49:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=919ec7ae4b3e1bb25a475eb6cd1210c2d4d7c7b4

commit 919ec7ae4b3e1bb25a475eb6cd1210c2d4d7c7b4
Author:     Randy Barlow <randy@electronsweatshop.com>
AuthorDate: 2021-05-28 03:49:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-07-13 21:49:05 +0000

    app-admin/lnav: Backport to fix a segfault
    
    lnav was segfaulting when the right arrow key was pressed. This
    commit backports a patch from the main development branch to
    address the crash.
    
    Closes: https://bugs.gentoo.org/792582
    Package-Manager: Portage-3.0.18, Repoman-3.0.2
    Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-admin/lnav/files/lnav-0.9.0-bug792582.patch | 97 +++++++++++++++++++++++++
 app-admin/lnav/lnav-0.9.0-r1.ebuild             | 49 +++++++++++++
 2 files changed, 146 insertions(+)