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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on: 696408
Blocks: tinfo
  Show dependency tree
 
Reported: 2019-04-03 06:51 UTC by Michał Górny
Modified: 2020-09-05 07:53 UTC (History)
7 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
Comment 14 Larry the Git Cow gentoo-dev 2020-09-05 07:53:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29c378d889d06d2f1631a4e36750bec7fbd2269a

commit 29c378d889d06d2f1631a4e36750bec7fbd2269a
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-08-15 13:44:15 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-09-05 07:53:46 +0000

    dev-util/cgdb: revbump for bugfixes
    
    Closes: https://bugs.gentoo.org/730138
    Closes: https://bugs.gentoo.org/682386
    Closes: https://bugs.gentoo.org/678006
    Closes: https://bugs.gentoo.org/630512
    Package-Manager: Portage-2.3.99, Repoman-2.3.23
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-util/cgdb/cgdb-0.7.0-r2.ebuild | 68 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bf78890f5cca3110c700f56e2c661bae3d4c607

commit 7bf78890f5cca3110c700f56e2c661bae3d4c607
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-08-15 13:19:23 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-09-05 07:53:46 +0000

    dev-util/cgdb: bump to 0.7.1
    
    Closes: https://bugs.gentoo.org/696408
    Bug: https://bugs.gentoo.org/682386
    Package-Manager: Portage-2.3.99, Repoman-2.3.23
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-util/cgdb/Manifest              |  1 +
 dev-util/cgdb/cgdb-0.7.1.ebuild     | 68 +++++++++++++++++++++++++++++++++++++
 dev-util/cgdb/files/cgdb-test.patch | 55 ++++++++++++++++++++++++++++++
 3 files changed, 124 insertions(+)