Bug 824120 - Invalid read of size 1
Invalid read of size 1
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Fedora Packaging Toolset Team
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-05-22 14:59 EDT by Nikola Pajkovsky
Modified: 2014-02-02 17:16 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-05-23 09:21:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nikola Pajkovsky 2012-05-22 14:59:02 EDT
after calling rpmReadConfigFiles(NULL, NULL); valgrind yells 

==7516== Invalid read of size 1
==7516==    at 0x4C29162: __GI_strlen (mc_replace_strmem.c:391)
==7516==    by 0x55A1BE5: strdup (in /usr/lib64/libc-2.15.so)
==7516==    by 0x4E6AF49: defaultMachine (rpmrc.c:1046)
==7516==    by 0x4E6C615: rpmSetMachine (rpmrc.c:1460)
==7516==    by 0x4E6C91C: rpmRebuildTargetVars.constprop.6 (rpmrc.c:1557)
==7516==    by 0x4E6CF73: rpmReadConfigFiles (rpmrc.c:1776)
==7516==    by 0x4022FC: main (abrt-bodhi.c:330)
==7516==  Address 0x7fff52841d09 is not stack'd, malloc'd or (recently) free'd

all it starts in abrt-bodhi.c:330 which is line contains 

330 int status = rpmReadConfigFiles((const char *) NULL, (const char *) NULL);


I have slightly modified abrt-bodhi.c, but it's not related to rpm (tested w/o my changes) 

Version-Release number of selected component (if applicable):
rpm is taken from updates-testing repo

[npajkovs@f17-virt libreport]$ rpm -q rpm
Comment 1 Panu Matilainen 2012-05-23 09:21:30 EDT
This is a valgrind anomaly (or false positive if you like) triggered by rpm now reading /proc/self/auxv, see https://bugs.kde.org/show_bug.cgi?id=253519

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