Bug 951979 - [abrt] rpm-build-4.11.0.1-2.fc20: rfree: Process /usr/bin/rpmbuild was killed by signal 6 (SIGABRT)
Summary: [abrt] rpm-build-4.11.0.1-2.fc20: rfree: Process /usr/bin/rpmbuild was killed...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:249e7b32ca782acdf08c941809f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-15 00:58 UTC by Christopher Meng
Modified: 2013-07-05 08:52 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-05 08:52:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (6.10 KB, text/plain)
2013-04-15 00:58 UTC, Christopher Meng
no flags Details
File: cgroup (130 bytes, text/plain)
2013-04-15 00:58 UTC, Christopher Meng
no flags Details
File: core_backtrace (1.27 KB, text/plain)
2013-04-15 00:58 UTC, Christopher Meng
no flags Details
File: dso_list (2.75 KB, text/plain)
2013-04-15 00:58 UTC, Christopher Meng
no flags Details
File: environ (3.62 KB, text/plain)
2013-04-15 00:58 UTC, Christopher Meng
no flags Details
File: limits (1.29 KB, text/plain)
2013-04-15 00:58 UTC, Christopher Meng
no flags Details
File: maps (8.29 KB, text/plain)
2013-04-15 00:58 UTC, Christopher Meng
no flags Details
File: open_fds (121 bytes, text/plain)
2013-04-15 00:59 UTC, Christopher Meng
no flags Details
File: proc_pid_status (789 bytes, text/plain)
2013-04-15 00:59 UTC, Christopher Meng
no flags Details
with some modification from http://download.opensuse.org/repositories/network:/utilities/openSUSE_Factory/src/w3perl-3.16-1.13.src.rpm (3.96 KB, text/x-rpm-spec)
2013-04-16 15:23 UTC, Christopher Meng
no flags Details

Description Christopher Meng 2013-04-15 00:58:39 UTC
Version-Release number of selected component:
rpm-build-4.11.0.1-2.fc20

Additional info:
backtrace_rating: 4
cmdline:        rpmbuild -ba w3perl.spec
crash_function: rfree
executable:     /usr/bin/rpmbuild
kernel:         3.9.0-0.rc6.git2.2.fc20.i686.PAE
runlevel:       N 5
uid:            1000
ureports_counter: 1
var_log_messages: Apr 15 08:40:22 fab abrt[11922]: Saved core dump of pid 10617 (/usr/bin/rpmbuild) to /var/tmp/abrt/ccpp-2013-04-15-08:40:22-10617 (2465792 bytes)

Truncated backtrace:
Thread no. 1 (10 frames)
 #6 rfree at /lib/librpmio.so.3
 #7 rpmstrPoolFree at /lib/librpmio.so.3
 #8 rpmdsFree at /lib/librpm.so.3
 #9 addReqProv at /lib/librpmbuild.so.3
 #10 rpmlibNeedsFeature at /lib/librpmbuild.so.3
 #11 genCpioListAndHeader at /lib/librpmbuild.so.3
 #12 processBinaryFiles at /lib/librpmbuild.so.3
 #13 buildSpec at /lib/librpmbuild.so.3
 #14 buildForTarget.constprop.1
 #15 build.constprop.0

Comment 1 Christopher Meng 2013-04-15 00:58:42 UTC
Created attachment 735672 [details]
File: backtrace

Comment 2 Christopher Meng 2013-04-15 00:58:45 UTC
Created attachment 735673 [details]
File: cgroup

Comment 3 Christopher Meng 2013-04-15 00:58:47 UTC
Created attachment 735674 [details]
File: core_backtrace

Comment 4 Christopher Meng 2013-04-15 00:58:50 UTC
Created attachment 735675 [details]
File: dso_list

Comment 5 Christopher Meng 2013-04-15 00:58:52 UTC
Created attachment 735676 [details]
File: environ

Comment 6 Christopher Meng 2013-04-15 00:58:55 UTC
Created attachment 735677 [details]
File: limits

Comment 7 Christopher Meng 2013-04-15 00:58:57 UTC
Created attachment 735678 [details]
File: maps

Comment 8 Christopher Meng 2013-04-15 00:59:00 UTC
Created attachment 735679 [details]
File: open_fds

Comment 9 Christopher Meng 2013-04-15 00:59:02 UTC
Created attachment 735680 [details]
File: proc_pid_status

Comment 10 Panu Matilainen 2013-04-15 05:44:17 UTC
Please attach the reproducer spec as well. (I assume this is reproducable?)

Comment 11 Christopher Meng 2013-04-15 16:12:14 UTC
(In reply to comment #10)
> Please attach the reproducer spec as well. (I assume this is reproducable?)


It's not a standard spec, in fact it's an opensuse one.

Should I still have to upload it?

Comment 12 Panu Matilainen 2013-04-16 03:46:14 UTC
How is a spec from Suse not a standard? If rpm crashes on one of those, it can crash on a Fedora spec too. So yes, please attach the spec especially if the crash is indeed reproducable with it.

Comment 13 Christopher Meng 2013-04-16 15:23:41 UTC
Created attachment 736402 [details]
with some modification from  http://download.opensuse.org/repositories/network:/utilities/openSUSE_Factory/src/w3perl-3.16-1.13.src.rpm

Please see the attachment.

Thanks.

Comment 14 Panu Matilainen 2013-04-17 06:14:51 UTC
Easily reproduced now, will fix. Thanks for reporting.

Comment 15 Christopher Meng 2013-04-17 06:30:51 UTC
(In reply to comment #14)
> Easily reproduced now, will fix. Thanks for reporting.

Could you tell me the details?

Thanks.

Comment 16 Panu Matilainen 2013-04-17 07:12:44 UTC
When I know what the details are :)

Its related to the %{apache_libexec} and %{apache_sysconfdir} macros which fail to evaluate as %{apxs} is not defined (and in the original spec, apxs path is wrong). This blows up something in the files list processing / dependency generation.

For now, "%define apxs /usr/bin/apxs" should allow the package to be correctly built.

Comment 17 Panu Matilainen 2013-04-17 11:09:24 UTC
The problem is these %files entries:

%dir %{apache_sysconfdir}/../conf.d
%config (noreplace) %{apache_sysconfdir}/../conf.d/w3perl.conf

When %{apache_sysconfdir} evaluates to nothing (as is the case with the reproducer spec), the paths end up being:
/../conf.d
/../conf.d/w3perl.conf

Rpm thinks these are ok as they start with /, but they actually "escape" the buildroot and the dependency generation blows up because it assumes all paths are inside the buildroot. So the crash is actually just a symptom of a more fundamental (and ages old) flaw: its trivial to escape the buildroot in %files, whether by accident as happens here, or on purpose.

Fixed upstream now:
http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=dbc2d51f066207e29e4a725f15d03cb04d9429c7

Comment 18 Panu Matilainen 2013-07-05 08:52:08 UTC
Fixed in rpm >= 4.11.1:

Processing files: w3perl-3.16-1.13.noarch
error: Path is outside buildroot: /home/pmatilai/rpmbuild/BUILDROOT/conf.d
error: Path is outside buildroot: /home/pmatilai/rpmbuild/BUILDROOT/conf.d/w3perl.conf


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