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
Segfault after ncurses update to 6.0 #568
Comments
There was one related issue where brew would build against one version of ncurses and link against another. Does |
It might make sense! ldd looks fine, but I do have two ncurses 6.0 installations in two slots (gentoo-related concept). I'll try to remove one and reinstall everything. |
Well, no luck. I uninstalled the duplicated version, reinstalled the correct one, rebuilt tig. When I press enter I get a similar segfault. Ldd output:
|
It is weird that it links with both Are you building with |
I do a fresh clone and configure. When I try to download & make, I get an error:
After that I run
|
Oh, and the configure output: |
Can you also provide the generated |
Sorry for a delay, had a week offline ;-) Config.make attached. Also config.make.in, if it makes any difference. (renamed to txt because github) |
I have the same problem, although my tig is not linked to both libraries:
For some reason I cannot attach output of gdb, even in .txt file. |
Apparently removing |
It does. Everything works perfectly. So it looks like there's default ncurses library added by mistake. Now it uses libncursesw instead and it Just Works (TM). |
@nertpinx are you also on Gentoo? |
Yes. With ncurses-5.9-r101 compiled with gpm, tinfo, unicode and ncurses-6.0-r1 compiled with cxx gpm threads tinfo unicode. |
Hey @nertpinx, Please try to rebuild all ncurses slots with "tinfo" USE flag disabled, then rebuild tig with "unicode" USE flag enabled. In this case, tig works properly without any segfaults. |
@mike-zueff Thanks for the info. Rebuilding even just ncurses:5 without tinfo makes tig instantly work, so it is just an ncurses issue. It would also explain other tinfo problems I recall facing some time ago. Even if I rebuild it again with the same flags as before, it keeps working. I try to look for the problem in ncurses then. From my point of view, this is not a bug in tig in this case. |
OK, great that there's a work around. The issue could also be in the recent changes to the ncurses detection: 5eee021 |
OK, so I have an update, unfortunately. On another machine I had to rebuild tig after installing ncurses without tinfo, that made tig linked with ncursesw instead of ncurses. However if I rebuild tig again, it links back with the previous library and segfaults when starting yet again. For info, in case it helps, I'm attaching the outputs of ldd. Working:
Non-working:
|
@gentoo users, just to note it can help to ping the pkg maintainer here or perhaps open a Gentoo bug as I could have fixed this months ago for you. 😄 I don't run any systems with split tinfo which is why I never noticed this until https://bugs.gentoo.org/show_bug.cgi?id=614590 was filed. |
Thanks @radhermit for the kind reminder and for providing a fix. |
Got the same error with libncursesw.so.6.1 and pinged the pkg maintainer :) |
The distro is gentoo. I had quite a huge update and now tig crashes.
I downloaded from the repo, my commit SHA is cef17fc.
I can rebuild probably any other dependency with more debug symbols if required.
The text was updated successfully, but these errors were encountered: