Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729362 - sys-apps/duc links against libncursesw and libtinfo, triggering a segmentation fault in termattrs_sp
Summary: sys-apps/duc links against libncursesw and libtinfo, triggering a segmentatio...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Keywords: PATCH
: 751817 (view as bug list)
Depends on:
Blocks: tinfo
  Show dependency tree
Reported: 2020-06-23 23:22 UTC by mehw
Modified: 2022-07-24 08:27 UTC (History)
5 users (show)

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

sys-apps/duc-* (duc-1.4.1-tinfo.patch) (duc-1.4.1-tinfo.patch,799 bytes, patch)
2020-06-23 23:22 UTC, mehw
Details | Diff
diff of original duc-1.4.1-tinfo.patch (duc-1.4.1-tinfo.patch.patch,1.14 KB, patch)
2020-06-23 23:25 UTC, mehw
Details | Diff
sys-apps/duc-1.4.1-r1.ebuild (duc-1.4.1-r1.ebuild,1.79 KB, text/plain)
2020-06-23 23:27 UTC, mehw
diff of original sys-apps/duc-1.4.1-r1.ebuild (duc-1.4.1-r1.ebuild.patch,649 bytes, patch)
2020-06-23 23:29 UTC, mehw
Details | Diff
sys-apps/duc-1.4.4.ebuild (duc-1.4.4.ebuild,1.76 KB, text/plain)
2020-06-23 23:31 UTC, mehw
diff of original sys-apps/duc-1.4.4.ebuild (duc-1.4.4.ebuild.patch,384 bytes, patch)
2020-06-23 23:32 UTC, mehw
Details | Diff
sys-apps/duc-9999.ebuild (duc-9999.ebuild,1.76 KB, text/plain)
2020-06-23 23:33 UTC, mehw
diff of original sys-apps/duc-9999.ebuild (duc-9999.ebuild.patch,380 bytes, patch)
2020-06-23 23:34 UTC, mehw
Details | Diff
sys-apps/duc-* Manifest (Manifest,2.65 KB, text/plain)
2020-06-23 23:35 UTC, mehw
diff of original sys-apps/duc-* Manifest (Manifest.patch,3.73 KB, patch)
2020-06-23 23:36 UTC, mehw
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mehw 2020-06-23 23:22:50 UTC
Created attachment 645948 [details, diff]
sys-apps/duc-* (duc-1.4.1-tinfo.patch)

As reference, see also bug #651914 for the same kind of bug affecting another package (already fixed).

- sys-apps/duc-1.4.1-r1.ebuild (see bug #636958)
- sys-apps/duc-1.4.3-r1.ebuild
- sys-apps/duc-1.4.4.ebuild (version bump, see bug #706804)
- sys-apps/duc-9999.ebuild (commit fc889cc903ea2d718555f5b028fcf6443e3e86ad, update copyright and bump eapi)

duc-1.4.1-tinfo.patch is modified to link against the right -ltinfo(w) to prevent a segmentation fault in termattrs_sp.

sys-apps/duc-1.4.1-r1.ebuild requires the duc-1.4.1-tinfo.patch too to configure without errors (aka ncurses library not found).

NOTE: you may apply the attached patches with `patch -p5 <file.patch>`.
Comment 1 mehw 2020-06-23 23:25:55 UTC
Created attachment 645950 [details, diff]
diff of original duc-1.4.1-tinfo.patch

duc-1.4.1-tinfo.patch diff.
Comment 2 mehw 2020-06-23 23:27:40 UTC
Created attachment 645952 [details]

duc-1.4.1-r1.ebuild fix.
Comment 3 mehw 2020-06-23 23:29:01 UTC
Created attachment 645954 [details, diff]
diff of original sys-apps/duc-1.4.1-r1.ebuild

duc-1.4.1-r1.ebuild diff.
Comment 4 mehw 2020-06-23 23:31:00 UTC
Created attachment 645956 [details]

duc-1.4.4.ebuild bump.
Comment 5 mehw 2020-06-23 23:32:06 UTC
Created attachment 645958 [details, diff]
diff of original sys-apps/duc-1.4.4.ebuild

duc-1.4.4.ebuild diff.
Comment 6 mehw 2020-06-23 23:33:28 UTC
Created attachment 645960 [details]

duc-9999.ebuild update copyright and bump eapi.
Comment 7 mehw 2020-06-23 23:34:16 UTC
Created attachment 645962 [details, diff]
diff of original sys-apps/duc-9999.ebuild

duc-9999.ebuild diff.
Comment 8 mehw 2020-06-23 23:35:10 UTC
Created attachment 645964 [details]
sys-apps/duc-* Manifest

Manifest update.
Comment 9 mehw 2020-06-23 23:36:05 UTC
Created attachment 645966 [details, diff]
diff of original sys-apps/duc-* Manifest

Manifest diff.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2020-06-26 08:34:54 UTC
My 2018 patch was wrong.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2020-06-26 08:35:43 UTC
Comment on attachment 645950 [details, diff]
diff of original duc-1.4.1-tinfo.patch

Looks good.
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-30 00:04:20 UTC
*** Bug 751817 has been marked as a duplicate of this bug. ***
Comment 13 bugzilla-e680a21cd5fe3f9d 2020-10-30 06:05:48 UTC
I'd like to verify that the updated patch file posted here ( fixed the issue for me as well.

I missed this ticket in my search yesterday, ended up reaching the same conclusion independently, and posted duplicate #751817. My solution was more of a hack though, since I don't know the autoconf syntax well enough to mess around with that too much.

I've got a gdb backtrace and my own analysis on the duplicate ticket - I'd repost it here, but it appears you've already got the problem solved.