RPM

rpmbuild: double free or corruption

Bug #638615 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned
Fedora
Fix Released
Medium

Bug Description

tracker

Revision history for this message
In , Pavel (pavel-redhat-bugs) wrote :
Download full text (6.8 KiB)

Created attachment 418069
test.spec

Description of problem:
rpmbuild encountered "double free or corruption" error on %include directive in spec file.
I ask about it in devel list and receive answer what it should work ( http://<email address hidden>/msg08187.html ).

Now I try it:
$ rpmbuild -ba test.spec
*** glibc detected *** rpmbuild: double free or corruption (top): 0x09f34b08 ***
======= Backtrace: =========
/lib/libc.so.6[0x901261]
/usr/lib/librpmbuild.so.0(readLine+0xf3)[0xaf3763]
/usr/lib/librpmbuild.so.0(parsePrep+0x111)[0xaf13a1]
/usr/lib/librpmbuild.so.0(parseSpec+0x380)[0xaf32c0]
/usr/lib/librpmbuild.so.0(parseSpec+0x4d9)[0xaf3419]
rpmbuild[0x804a4ea]
rpmbuild[0x804ab29]
rpmbuild[0x804b851]
/lib/libc.so.6(__libc_start_main+0xe6)[0x8a9bb6]
rpmbuild[0x8049c41]
======= Memory map: ========
00110000-00148000 r-xp 00000000 08:12 327083 /lib/libsoftokn3.so
00148000-00149000 rw-p 00038000 08:12 327083 /lib/libsoftokn3.so
00149000-0018c000 r-xp 00000000 08:12 326861 /lib/libfreebl3.so
0018c000-0018d000 rw-p 00042000 08:12 326861 /lib/libfreebl3.so
0018d000-00191000 rw-p 00000000 00:00 0
00351000-004bc000 r-xp 00000000 08:12 327568 /lib/libdb-4.7.so
004bc000-004bf000 rw-p 0016b000 08:12 327568 /lib/libdb-4.7.so
006ab000-006e2000 r-xp 00000000 08:12 327103 /lib/libnspr4.so
006e2000-006e3000 rw-p 00037000 08:12 327103 /lib/libnspr4.so
006e3000-006e5000 rw-p 00000000 00:00 0
006e8000-0070a000 r-xp 00000000 08:12 309637 /usr/lib/liblzma.so.0.0.0
0070a000-0070b000 rw-p 00021000 08:12 309637 /usr/lib/liblzma.so.0.0.0
0070d000-0070f000 r-xp 00000000 08:12 327104 /lib/libplds4.so
0070f000-00710000 rw-p 00002000 08:12 327104 /lib/libplds4.so
00712000-00727000 r-xp 00000000 08:12 309866 /usr/lib/libelf-0.145.so
00727000-00728000 r--p 00014000 08:12 309866 /usr/lib/libelf-0.145.so
00728000-00729000 rw-p 00015000 08:12 309866 /usr/lib/libelf-0.145.so
0072b000-00753000 r-xp 00000000 08:12 847212 /usr/lib/librpmio.so.0.0.0
00753000-00755000 rw-p 00028000 08:12 847212 /usr/lib/librpmio.so.0.0.0
00755000-00757000 rw-p 00000000 00:00 0
007e2000-007e6000 r-xp 00000000 08:12 327105 /lib/libplc4.so
007e6000-007e7000 rw-p 00003000 08:12 327105 /lib/libplc4.so
0083e000-00842000 r-xp 00000000 08:12 326854 /lib/libattr.so.1.1.0
00842000-00843000 rw-p 00003000 08:12 326854 /lib/libattr.so.1.1.0
00852000-00856000 r-xp 00000000 08:12 1075078 /lib/libcap.so.2.16
00856000-00857000 rw-p 00003000 08:12 1075078 /lib/libcap.so.2.16
0086d000-0088b000 r-xp 00000000 08:12 325921 /lib/ld-2.11.so
0088b000-0088c000 r--p 0001d000 08:12 325921 /lib/ld-2.11.so
0088c000-0088d000 rw-p 0001e000 08:12 325921 /lib/ld-2.11.so
00893000-00a01000 r-xp 00000000 08:12 325934 /lib/libc-2.11.so
00a01000-00a02000 ---p 0016e000 08:12 325934 /lib/libc-2.11.so
00a02000-00a04000 r--p 0016e000 08:12 325934 /lib/libc-2.11.so
00a04000-00a05000 rw-p 00170000 08:12 325934 /lib/libc-2.11.so
00a05000-00a08000 rw-p 00000000 00:00 0
00a0a000-00a32000 r-xp 00000000 08:12 1075069 /lib/libm-2.11.so
00a32000-00a33000 r--p 00027000 08:12 1075069 /lib/libm-...

Read more...

Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

Doesn't happen to crash for me but valgrind complains loudly, apparently the same issue as https://bugzilla.novell.com/show_bug.cgi?id=582599 and was already fixed upstream. Should be fixed in rawhide now, F13 update to follow.

Revision history for this message
In , Pavel (pavel-redhat-bugs) wrote :

No, rawhide version also reproduce it:
$ rpm -q rpm-build
rpm-build-4.8.0-16.fc14.i686

Revision history for this message
In , Panu (panu-redhat-bugs) wrote :

"In rawhide now" means it's been built for rawhide and will be available in the next rawhide push (whenever that happens and gets synced around to mirrors is a whole another story). So to be more precise: should be fixed in rpm-4.8.0-17.fc14

Revision history for this message
In , Pavel (pavel-redhat-bugs) wrote :

Ok, wait it to test.

It there now any workaround? How quickly it will reach the buiulders (including El-5 and El-6)? I want use %include in my packaging work for Fedora and epel.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

rpm-4.8.1-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/rpm-4.8.1-1.fc13

Revision history for this message
In , Pavel (pavel-redhat-bugs) wrote :

Yes, now it is not crashed, thank you.

But still macros inclusion seams not working as well ( http://<email address hidden>/msg09006.html )

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

rpm-4.8.1-2.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.

Jeff Johnson (n3npq)
tags: added: fedora macros segfault
Changed in rpm:
milestone: none → 4.8.1
Changed in fedora:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.