Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682386 - dev-util/cgdb-0.7.0: segv when built against ncurses[tinfo]
Summary: dev-util/cgdb-0.7.0: segv when built against ncurses[tinfo]
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Nado
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2019-04-03 06:51 UTC by Michał Górny
Modified: 2020-05-01 22:20 UTC (History)
6 users (show)

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


Attachments
cgdb-0.7.0-tinfow.patch (cgdb-0.7.0-tinfow.patch,1.08 KB, patch)
2019-08-13 11:10 UTC, Balint SZENTE
Details | Diff
upstream patch (tinfow.patch,1.67 KB, patch)
2020-05-01 21:52 UTC, Olivier Huber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-03 06:51:21 UTC
Probably the same as #669096.  You'd need to modify it to look for tinfow before tinfo.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-06-20 08:12:57 UTC
Ping.
Comment 2 Nado 2019-06-20 12:24:06 UTC
I postponed it again, I'm moving in my new place next month, I intend to catch up on everything I said I'd do after that.
Also if it becomes more urgent for anyone, dont hesitate to tell it to me here.
Comment 3 gerion 2019-07-06 15:14:53 UTC
This bug affects me, because ncurses[tinfo] is needed for youcompleteme, see:
https://github.com/ycm-core/YouCompleteMe/issues/778
Comment 4 Balint SZENTE 2019-08-13 11:10:48 UTC
Created attachment 586710 [details, diff]
cgdb-0.7.0-tinfow.patch

I made this patch, that solves the issue for me.
Comment 5 Nado 2019-08-13 12:24:49 UTC
Hi,

I'm installed but haven't reconfigured everything yet, I'll take a look and test your patch on 08/19, thank you for your contribution ;)
Comment 6 Petr Zima 2019-08-20 13:52:22 UTC
Thanks for the patch, works here too.
Comment 7 Nado 2019-08-20 14:49:23 UTC
Confirmed it works.
I havent taken time to talk to upstream/include patch in repo. I'll try contacting upstream first as dropping the patch in /etc/portage/patches is enough atm.
Comment 8 Boris Faure 2020-03-28 22:41:08 UTC
I've used the patch 0.7.1 and it works fine.
I've put in my overlay: https://github.com/billiob/gentoo-overlay/tree/master/dev-util/cgdb
Comment 9 Adrien Dessemond 2020-05-01 17:48:28 UTC
This is the very same issue described in the Gentoo bug #651552
Comment 10 Adrien Dessemond 2020-05-01 18:25:02 UTC
Also see the bug #720328 which has the exact same root cause.
Comment 11 Adrien Dessemond 2020-05-01 18:44:29 UTC
(In reply to Balint SZENTE from comment #4)
> Created attachment 586710 [details, diff] [details, diff]
> cgdb-0.7.0-tinfow.patch
> 
> I made this patch, that solves the issue for me.

This patch fixes the issue for me also (tested under ~amd64).
Comment 12 Olivier Huber 2020-05-01 21:52:58 UTC
Created attachment 635562 [details, diff]
upstream patch

Upstream added this fix back in January 2020 to fix this issue. Seems to work here.

Reference:
https://github.com/cgdb/cgdb/commit/a8a567fc46fca4ca10a23016e2fe9055669b9102
Comment 13 Adrien Dessemond 2020-05-01 22:20:12 UTC
(In reply to Olivier Huber from comment #12)
 
> Upstream added this fix back in January 2020 to fix this issue. Seems to
> work here.
> 
> Reference:
> https://github.com/cgdb/cgdb/commit/a8a567fc46fca4ca10a23016e2fe9055669b9102

Upstream Git issue:
https://github.com/cgdb/cgdb/issues/219

A recent 0.7.1 does not exhibit the issue. Also see: Gentoo bug #696408