Bug 951979
Summary: | [abrt] rpm-build-4.11.0.1-2.fc20: rfree: Process /usr/bin/rpmbuild was killed by signal 6 (SIGABRT) | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Christopher Meng <i> | ||||||||||||||||||||||
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> | ||||||||||||||||||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||
Version: | rawhide | CC: | ffesti, jzeleny, novyjindrich, packaging-team-maint, pknirsch, pmatilai | ||||||||||||||||||||||
Target Milestone: | --- | Keywords: | Upstream | ||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||
Hardware: | i686 | ||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||
Whiteboard: | abrt_hash:249e7b32ca782acdf08c941809f32998885aefab | ||||||||||||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||
Last Closed: | 2013-07-05 08:52:08 UTC | Type: | --- | ||||||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||
Embargoed: | |||||||||||||||||||||||||
Attachments: |
|
Description
Christopher Meng
2013-04-15 00:58:39 UTC
Created attachment 735672 [details]
File: backtrace
Created attachment 735673 [details]
File: cgroup
Created attachment 735674 [details]
File: core_backtrace
Created attachment 735675 [details]
File: dso_list
Created attachment 735676 [details]
File: environ
Created attachment 735677 [details]
File: limits
Created attachment 735678 [details]
File: maps
Created attachment 735679 [details]
File: open_fds
Created attachment 735680 [details]
File: proc_pid_status
Please attach the reproducer spec as well. (I assume this is reproducable?) (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? 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. 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. Easily reproduced now, will fix. Thanks for reporting. (In reply to comment #14) > Easily reproduced now, will fix. Thanks for reporting. Could you tell me the details? Thanks. 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. 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 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 |