Bug 880634 - [abrt] dwz-0.7-1.fc18: update_new_die_offsets: Process /usr/bin/dwz was killed by signal 6 (SIGABRT)
Summary: [abrt] dwz-0.7-1.fc18: update_new_die_offsets: Process /usr/bin/dwz was kille...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dwz
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0be79db2d73bd5b29c2f5efc76b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-27 13:24 UTC by Elad Alfassa
Modified: 2012-12-11 05:57 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-11 05:57:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (7.05 KB, text/plain)
2012-11-27 13:24 UTC, Elad Alfassa
no flags Details
File: cgroup (127 bytes, text/plain)
2012-11-27 13:24 UTC, Elad Alfassa
no flags Details
File: core_backtrace (1.34 KB, text/plain)
2012-11-27 13:24 UTC, Elad Alfassa
no flags Details
File: dso_list (308 bytes, text/plain)
2012-11-27 13:25 UTC, Elad Alfassa
no flags Details
File: environ (3.39 KB, text/plain)
2012-11-27 13:25 UTC, Elad Alfassa
no flags Details
File: limits (1.29 KB, text/plain)
2012-11-27 13:25 UTC, Elad Alfassa
no flags Details
File: maps (2.02 KB, text/plain)
2012-11-27 13:25 UTC, Elad Alfassa
no flags Details
File: open_fds (543 bytes, text/plain)
2012-11-27 13:26 UTC, Elad Alfassa
no flags Details
File: proc_pid_status (920 bytes, text/plain)
2012-11-27 13:26 UTC, Elad Alfassa
no flags Details
File: smolt_data (2.98 KB, text/plain)
2012-11-27 13:26 UTC, Elad Alfassa
no flags Details
debug files (compressed with tar.xz, uncompressed size 364MB) (78.63 MB, application/x-xz)
2012-11-27 20:17 UTC, Elad Alfassa
no flags Details

Description Elad Alfassa 2012-11-27 13:24:50 UTC
Description of problem:
I was building Fedora's inkscape packages with inkscape from bzr trunk

Version-Release number of selected component:
dwz-0.7-1.fc18

Additional info:
backtrace_rating: 4
cmdline:        dwz -h -q -r -m .dwz/inkscape-0.48.3.1-2.20121127.fc18.x86_64 -l 10000000 -L 110000000 ./usr/bin/inkview.debug ./usr/bin/inkscape.debug
crash_function: update_new_die_offsets
executable:     /usr/bin/dwz
kernel:         3.6.7-5.fc18.x86_64
uid:            1000

Truncated backtrace:
Thread no. 1 (4 frames)
 #4 update_new_die_offsets at dwz.c:7812
 #12 recompute_abbrevs at dwz.c:9143
 #13 write_info at dwz.c:9200
 #14 dwz at dwz.c:11014

Comment 1 Elad Alfassa 2012-11-27 13:24:54 UTC
Created attachment 652699 [details]
File: backtrace

Comment 2 Elad Alfassa 2012-11-27 13:24:56 UTC
Created attachment 652700 [details]
File: cgroup

Comment 3 Elad Alfassa 2012-11-27 13:24:58 UTC
Created attachment 652701 [details]
File: core_backtrace

Comment 4 Elad Alfassa 2012-11-27 13:25:00 UTC
Created attachment 652702 [details]
File: dso_list

Comment 5 Elad Alfassa 2012-11-27 13:25:03 UTC
Created attachment 652703 [details]
File: environ

Comment 6 Elad Alfassa 2012-11-27 13:25:05 UTC
Created attachment 652705 [details]
File: limits

Comment 7 Elad Alfassa 2012-11-27 13:25:16 UTC
Created attachment 652706 [details]
File: maps

Comment 8 Elad Alfassa 2012-11-27 13:26:00 UTC
Created attachment 652707 [details]
File: open_fds

Comment 9 Elad Alfassa 2012-11-27 13:26:09 UTC
Created attachment 652708 [details]
File: proc_pid_status

Comment 10 Elad Alfassa 2012-11-27 13:26:11 UTC
Created attachment 652709 [details]
File: smolt_data

Comment 11 Jakub Jelinek 2012-11-27 13:29:49 UTC
Please disable dwz, e.g.
%global _find_debuginfo_dwz_opts %{nil}
in the spec file should do, rebuild and attach ./usr/bin/inkview.debug ./usr/bin/inkscape.debug files (from the debuginfo rpm).  Thanks.

Comment 12 Elad Alfassa 2012-11-27 20:17:33 UTC
Created attachment 653076 [details]
debug files (compressed with tar.xz, uncompressed size 364MB)

Comment 13 Jakub Jelinek 2012-11-29 09:56:26 UTC
diff --git a/dwz.c b/dwz.c
index 8e21bd2..f893d8b 100644
--- a/dwz.c
+++ b/dwz.c
@@ -9216,7 +9216,14 @@ recompute_abbrevs (dw_cu_ref cu, unsigned int cu_size)
     }
   else
     {
-      intracusize = size_of_uleb128 (cu_size);
+      /* Need to be conservatively high estimate, as update_new_die_offsets
+         relies on the offsets always increasing.  cu_size at this point is
+         the size we will end up in the end, but if cu_size is sufficiently
+         close (from bottom) to some uleb128 boundary, init_new_die_offsets
+         might return off above that boundaryand then update_new_die_offsets
+         might fail its assertions on reference to DIEs that crossed the
+         uleb128 boundary.  */
+      intracusize = size_of_uleb128 (2 * cu_size);
 
       off = init_new_die_offsets (cu->cu_die, headersz, intracusize);
       do

should fix this IMHO.

Comment 14 Fedora Update System 2012-11-30 09:16:30 UTC
dwz-0.8-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/dwz-0.8-1.fc18

Comment 15 Fedora Update System 2012-11-30 20:33:46 UTC
Package dwz-0.8-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dwz-0.8-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19433/dwz-0.8-1.fc18
then log in and leave karma (feedback).

Comment 16 Fedora Update System 2012-12-11 05:57:28 UTC
dwz-0.8-1.fc18 has been pushed to the Fedora 18 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.