Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651914 - app-misc/vifm-0.9* with sys-libs/ncurses-6.1-r2 - segmentation fault in termattrs_sp (sp=0x5555558ba070) at /usr/src/debug/sys-libs/ncurses-6.1-r2/ncurses-6.1/ncurses/tty/lib_vidattr.c:374
Summary: app-misc/vifm-0.9* with sys-libs/ncurses-6.1-r2 - segmentation fault in terma...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chema Alonso Josa (RETIRED)
URL: https://github.com/vifm/vifm/issues/325
Whiteboard:
Keywords:
Depends on:
Blocks: ncurses-6.1
  Show dependency tree
 
Reported: 2018-03-29 13:05 UTC by Viacheslav Ostroukh
Modified: 2018-06-12 23:53 UTC (History)
1 user (show)

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


Attachments
emerge --info sys-libs/ncurses app-misc/vifm (emerge-info.txt,7.65 KB, text/plain)
2018-03-29 13:05 UTC, Viacheslav Ostroukh
Details
GDB debugging output (vifm-gdb.log,2.45 KB, text/plain)
2018-03-29 13:06 UTC, Viacheslav Ostroukh
Details
Proposed patch (0001-fix-ncurses-linking.patch,1.53 KB, patch)
2018-04-22 15:15 UTC, Viacheslav Ostroukh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viacheslav Ostroukh 2018-03-29 13:05:41 UTC
Created attachment 526046 [details]
emerge --info sys-libs/ncurses app-misc/vifm

Works for me on sys-libs/ncurses-6.0-r1, doesn't work for any ncurses-6.1-*. As I see, both app-misc/vifm-0.9 and app-misc/vifm-0.9.1 are affected for me. Some debugging information is attached, please tell if you need more input from me.
Comment 1 Viacheslav Ostroukh 2018-03-29 13:06:16 UTC
Created attachment 526048 [details]
GDB debugging output
Comment 2 Viacheslav Ostroukh 2018-03-29 13:09:05 UTC
GDB core dumb is available here for download.

https://slavoutich.ocloud.de/index.php/s/Nw6KwwnrRifeAR9
Comment 3 Chema Alonso Josa (RETIRED) gentoo-dev 2018-04-07 14:43:35 UTC
Thanks for the reprot

Seems than ncurses can't create a new terminal at your side. I guess you're using TERM="screen-256color" I use this setting here with no problem. Can you try:

$ TERM="xterm" vifm

to see if vifm works using a diferent value for TERM?
Comment 4 Viacheslav Ostroukh 2018-04-07 14:58:26 UTC
(In reply to Chema Alonso Josa from comment #3)
> Thanks for the reprot
> 
> Seems than ncurses can't create a new terminal at your side. I guess you're
> using TERM="screen-256color" I use this setting here with no problem. Can
> you try:
> 
> $ TERM="xterm" vifm
> 
> to see if vifm works using a diferent value for TERM?

No, it keeps failing independently on terminal emulator and TERM value (tried st, xterm and alacritty).
Comment 5 Chema Alonso Josa (RETIRED) gentoo-dev 2018-04-07 15:18:09 UTC
Seems same problem as in bug #651720
Comment 6 Viacheslav Ostroukh 2018-04-22 15:15:31 UTC
Created attachment 528230 [details, diff]
Proposed patch

Since it is fixed in master, we can pick these changes. For me user-patching works on vifm-0.9.1.
Comment 7 Larry the Git Cow gentoo-dev 2018-04-24 11:09:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c91a15ba84512dbd9d0a1236a0ede17b842069e

commit 1c91a15ba84512dbd9d0a1236a0ede17b842069e
Author:     Viacheslav Ostroukh <slava@ostroukh.me>
AuthorDate: 2018-04-24 11:06:51 +0000
Commit:     Chema Alonso Josa <nimiux@gentoo.org>
CommitDate: 2018-04-24 11:08:59 +0000

    app-misc/vifm: Fix ncurses linking
    
    Closes: https://bugs.gentoo.org/651914
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../files/vifm-0.9.1-fix-ncurses-linking.patch     | 60 ++++++++++++++++++++++
 app-misc/vifm/vifm-0.9.1.ebuild                    |  6 ++-
 2 files changed, 65 insertions(+), 1 deletion(-)