Bug 1058132

Summary: [abrt] qemu-system-ppc: dmg_open(): qemu-system-ppc killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Pavel Roskin <plroskin>
Component: qemuAssignee: Fedora Virtualization Maintainers <virt-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: amit.shah, berrange, cfergeau, crobinso, dwmw2, itamar, pbonzini, peter, rjones, scottt.tw, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/1085f2af170ce73cf0afe3fa9552491580932f0c
Whiteboard: abrt_hash:02d92d74fc88e3d7c38df68c72c66180c1457a46
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-02 15:35:48 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 Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Pavel Roskin 2014-01-27 05:07:30 UTC
Version-Release number of selected component:
qemu-system-ppc-1.6.1-3.fc20

Additional info:
reporter:       libreport-2.1.11
backtrace_rating: 4
cmdline:        qemu-system-ppc -cdrom NetBoot9.dmg
crash_function: dmg_open
executable:     /usr/bin/qemu-system-ppc
kernel:         3.12.8-300.fc20.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (7 frames)
 #0 dmg_open at block/dmg.c:184
 #1 bdrv_open_common at block.c:747
 #2 bdrv_open at block.c:1078
 #3 blockdev_init at blockdev.c:706
 #4 drive_init at blockdev.c:809
 #5 drive_init_func at vl.c:1142
 #6 qemu_opts_foreach at util/qemu-option.c:1143

Comment 1 Pavel Roskin 2014-01-27 05:07:35 UTC
Created attachment 855904 [details]
File: backtrace

Comment 2 Pavel Roskin 2014-01-27 05:07:37 UTC
Created attachment 855905 [details]
File: cgroup

Comment 3 Pavel Roskin 2014-01-27 05:07:38 UTC
Created attachment 855906 [details]
File: core_backtrace

Comment 4 Pavel Roskin 2014-01-27 05:07:40 UTC
Created attachment 855907 [details]
File: dso_list

Comment 5 Pavel Roskin 2014-01-27 05:07:42 UTC
Created attachment 855908 [details]
File: environ

Comment 6 Pavel Roskin 2014-01-27 05:07:43 UTC
Created attachment 855909 [details]
File: exploitable

Comment 7 Pavel Roskin 2014-01-27 05:07:45 UTC
Created attachment 855910 [details]
File: limits

Comment 8 Pavel Roskin 2014-01-27 05:07:47 UTC
Created attachment 855911 [details]
File: maps

Comment 9 Pavel Roskin 2014-01-27 05:07:48 UTC
Created attachment 855912 [details]
File: open_fds

Comment 10 Pavel Roskin 2014-01-27 05:07:50 UTC
Created attachment 855913 [details]
File: proc_pid_status

Comment 11 Pavel Roskin 2014-01-27 05:07:51 UTC
Created attachment 855914 [details]
File: var_log_messages

Comment 12 Cole Robinson 2014-06-02 15:35:48 UTC
Latest f20 gives a clearer error here:

qemu-system-x86_64: -cdrom /home/crobinso/NetBoot9.dmg: sector count 222056 for chunk 1877 is larger than max (131072)
qemu-system-x86_64: -cdrom /home/crobinso/NetBoot9.dmg: could not open disk image /home/crobinso/NetBoot9.dmg: Invalid argument

It doesn't crash, so closing. But maybe qemu's dmg support can't handle old images

Comment 13 Peter Wu 2014-12-27 09:38:22 UTC
For your information, QEMU cannot accept this image because it uses the older Apple Data Compression (ADC) format. If someone wants to implement it, have a look at the format described at http://www.macdisk.com/dmgen.php

dmg2img has an implementation for the decompression routine: http://vu1tur.eu.org/tools/