Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815622 - app-portage/portage-utils: qpkg: segfault when PKGDIR is not found
Summary: app-portage/portage-utils: qpkg: segfault when PKGDIR is not found
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-01 09:40 UTC by gengreen
Modified: 2021-12-21 10:25 UTC (History)
2 users (show)

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


Attachments
emerge --info, package affected build log, gdb backtraces (file_815622.txt,145.75 KB, text/plain)
2021-10-01 09:40 UTC, gengreen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gengreen 2021-10-01 09:40:04 UTC
Created attachment 742365 [details]
emerge --info, package affected build log, gdb backtraces

/usr/bin/qpkg -c segfault
Comment 1 gengreen 2021-10-01 09:50:06 UTC
/usr/bin/qpkg -c segfault when PKGDIR path is not found/incorrect
Comment 2 Jory A. Pratt gentoo-dev 2021-10-03 03:00:58 UTC
Please leave musl cc'd when bug is affecting said package on musl libc
Comment 3 gengreen 2021-10-03 06:18:43 UTC
To be exact, it segfault when the path is a directory and not a file, no segfault if path doesn't exist

(PS:Jory A. Pratt sry btw)
Comment 4 Fabian Groffen gentoo-dev 2021-10-03 07:00:20 UTC
I have a musl system, will looking at this shortly, thanks
Comment 5 Fabian Groffen gentoo-dev 2021-10-03 08:55:46 UTC
fixed in a6538b5, shouldn't be musl related at all (stupid NULL-dereference)
Comment 6 Larry the Git Cow gentoo-dev 2021-12-21 10:25:38 UTC
The bug has been closed via the following commit(s):

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

commit 7e74e1d6c4bf1db571db1cec13356ffbe10ba56f
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-12-21 10:23:54 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-12-21 10:25:33 +0000

    app-portage/portage-utils-0.93: version bump
    
    Closes: https://bugs.gentoo.org/815622
    Closes: https://bugs.gentoo.org/816033
    Closes: https://bugs.gentoo.org/816060
    Closes: https://bugs.gentoo.org/829579
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 app-portage/portage-utils/Manifest                 |  1 +
 .../portage-utils/portage-utils-0.93.ebuild        | 67 ++++++++++++++++++++++
 2 files changed, 68 insertions(+)