Bug 638432 - [abrt] elfutils-0.149-1.fc13: dwarf_getaranges: Process /usr/bin/eu-findtextrel was killed by signal 11 (SIGSEGV)
Summary: [abrt] elfutils-0.149-1.fc13: dwarf_getaranges: Process /usr/bin/eu-findtextr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: elfutils
Version: 13
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:87ec2323cd3f95425b4aee6c995...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-29 00:47 UTC by Matthew Gregan [:kinetik]
Modified: 2011-04-12 21:26 UTC (History)
4 users (show)

Fixed In Version: elfutils-0.150-1.fc14
Clone Of:
Environment:
Last Closed: 2010-11-27 23:38:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (22.88 KB, text/plain)
2010-09-29 00:47 UTC, Matthew Gregan [:kinetik]
no flags Details
reproducer script (1.23 KB, text/plain)
2010-09-29 22:27 UTC, Matthew Gregan [:kinetik]
no flags Details

Description Matthew Gregan [:kinetik] 2010-09-29 00:47:05 UTC
abrt version: 1.1.13
architecture: x86_64
Attached file: backtrace
cmdline: eu-findtextrel obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
component: elfutils
crash_function: dwarf_getaranges
executable: /usr/bin/eu-findtextrel
kernel: 2.6.34.7-56.fc13.x86_64
package: elfutils-0.149-1.fc13
rating: 4
reason: Process /usr/bin/eu-findtextrel was killed by signal 11 (SIGSEGV)
release: Fedora release 13 (Goddard)
time: 1285721013
uid: 500

How to reproduce
-----
1. Build 32-bit Firefox trunk from source
2. eu-findtextrel objdir/dist/bin/libxul.so

Comment 1 Matthew Gregan [:kinetik] 2010-09-29 00:47:08 UTC
Created attachment 450346 [details]
File: backtrace

Comment 2 Matthew Gregan [:kinetik] 2010-09-29 00:55:15 UTC
I forgot to mention that it needs to be a debug build of Firefox.  I'd attach a copy of libxul.so, but it's 60MB compressed.  One further data point:

% cp objdir/dist/bin/libxul.so .
% ls -lh libxul.so
-rwxr-xr-x. 1 kinetik kinetik 291M Sep 29 13:52 libxul.so*
% eu-findtextrel libxul.so
zsh: segmentation fault (core dumped)  eu-findtextrel libxul.so
% strip libxul.so
% ls -lh libxul.so
-rwxr-xr-x. 1 kinetik kinetik 37M Sep 29 13:52 libxul.so*
% eu-findtextrel libxul.so
either the file containing the function '_ZN7mozilla6layers16PlanarYCbCrImage4DataC1Ev' or the file containing the function 'vp8_filter_block1d_v6_mmx' is not compiled with -fpic/-fPIC
[...]

So it only crashes with an unstripped debug libxul.so.

Comment 3 Roland McGrath 2010-09-29 21:17:04 UTC
60M is too big to attach in bugzilla, but can you upload the file someplace where I can get it?  If that's really not viable, then supply an exact recipe (like a working shell script) to reproduce the build on an F13 host.

Comment 4 Matthew Gregan [:kinetik] 2010-09-29 22:00:35 UTC
Unstripped libxul.so uploaded here: http://flim.org/~kinetik/rhbz638432_libxul.so.xz

Comment 5 Matthew Gregan [:kinetik] 2010-09-29 22:27:35 UTC
Created attachment 450606 [details]
reproducer script

This will reproduce it.  Run it on an x86_64 system.  It attempts to test for the required i686 packages, but it might not check every single one necessary.

I've just had a report in the Mozilla bugzilla that the i686 version of elfutils matching my package (elfutils-0.149-1.fc13.x86_64) doesn't crash on similarly built input files.

Comment 6 Roland McGrath 2010-10-05 07:58:23 UTC
Fixed upstream in commit 5f95e2b.

The problem is with any enormous .debug_aranges section.

You can work around it by increasing your RLIMIT_STACK limit (e.g. ulimit -s unlimited).

Comment 7 Martin Stransky 2010-10-13 12:18:21 UTC
The same issue affect eu-addr2line (ulimit -s unlimited works). Do you want me to file a separate bug for it?

Comment 8 Roland McGrath 2010-10-13 17:26:07 UTC
It's all the same library bug with the same fix (already done).  No need for a separate report.

Comment 9 Fedora Update System 2010-11-23 22:00:44 UTC
elfutils-0.150-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/elfutils-0.150-1.fc14

Comment 10 Fedora Update System 2010-11-23 22:00:57 UTC
elfutils-0.150-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/elfutils-0.150-1.fc13

Comment 11 Fedora Update System 2010-11-24 22:38:55 UTC
elfutils-0.150-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update elfutils'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/elfutils-0.150-1.fc14

Comment 12 Fedora Update System 2010-11-27 23:38:01 UTC
elfutils-0.150-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2011-01-13 01:17:37 UTC
elfutils-0.151-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/elfutils-0.151-1.fc14

Comment 14 Fedora Update System 2011-01-13 01:17:50 UTC
elfutils-0.151-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/elfutils-0.151-1.fc13

Comment 15 Fedora Update System 2011-01-21 23:06:27 UTC
elfutils-0.151-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2011-04-12 21:26:43 UTC
elfutils-0.152-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


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