Bug 7624 - "rpm -qp[il]" dumps core for non-existant files
"rpm -qp[il]" dumps core for non-existant files
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 1999-12-06 03:40 EST by fortytwo
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-12-08 08:06:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
possible patch (331 bytes, patch)
1999-12-06 03:45 EST, fortytwo
no flags Details | Diff

  None (edit)
Description fortytwo 1999-12-06 03:40:54 EST
If rpm is called with a "-qp" option and given the name of a non-existant
file, it will crash like this:

[fortytwo@manetheren dl]$ rpm -q rpm
[fortytwo@manetheren dl]$ rpm --version
RPM version 3.0.4
[fortytwo@manetheren dl]$ rpm -qip feh
open of feh failed: No such file or directory
rpm: rpmio.c:2398: Fclose: Assertion `fd && fd->magic == 0xbeefdead'
Aborted (core dumped)
[fortytwo@manetheren dl]$
Comment 1 fortytwo 1999-12-06 03:45:59 EST
Created attachment 32 [details]
possible patch
Comment 2 Jeff Johnson 1999-12-08 08:06:59 EST
Thanks for the patch. This is already fixed as
            if (fd)
If you're interested in helping to debug rpm-3.0.4, please check Raw Hide often
for updates as there will be lots of fixes in the next 2-3 weeks.

Otherwise, you're probably better off reverting to the production rpm-3.0.3.

Note You need to log in before you can comment on or make changes to this bug.