Bug 974804 - qemu incorrectly installs arm binfmt handler on arm systems
Summary: qemu incorrectly installs arm binfmt handler on arm systems
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 19
Hardware: arm
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 986339 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-16 03:14 UTC by merlisk
Modified: 2013-07-19 13:21 UTC (History)
12 users (show)

Fixed In Version: qemu-1.4.2-4.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-29 18:14:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description merlisk 2013-06-16 03:14:52 UTC
Description of problem:
Qemu crashes on boot.

How reproducible:
Reboot on raspberry pi running fedora 18 remix.

Steps to Reproduce:
1. Install qemu.
2. Reboot.
3. Errors.

Actual results:
systemd-fsck[58]: qemu: uncaught target signal 11 (Segmentation fault) - core dumped

systemd-fsck[58]: qemu: uncaught target signal 11 (Segmentation fault) - core dumped

Expected results:

I get to the login screen.


Additional info:

Running on raspberry pi.

Comment 1 merlisk 2013-06-16 03:15:50 UTC
This happens over and over.

Comment 2 Paolo Bonzini 2013-06-17 09:33:18 UTC
Perhaps a problem with binfmt-misc?  Can you check if removing /lib/binfmt.d/qemu-arm.conf and/or /lib/binfmt.d/qemu-armeb.conf fixes the problem?

Comment 3 Richard W.M. Jones 2013-06-17 11:50:05 UTC
What exactly is crashing?  How would systemd-fsck end up running
qemu?  It's be very helpful to collect coredumps.

https://fedoraproject.org/wiki/How_to_debug_Systemd_problems

Comment 4 merlisk 2013-06-17 23:39:26 UTC
Well, this is a problem...

I cannot access my filesystem. That is an unmountable partition on my SD card. I cannot delete any files, edit files, or check core dump logs. I cannot run any commands, because I can't access the bash shell.

P.S.: Is there any way to send core dumps to the boot partition of my SD card?

Comment 5 Richard W.M. Jones 2013-06-18 08:11:48 UTC
Can you post the *complete* boot log messages.  It's impossible
to tell what's going on with just the two lines you have quoted above.

Comment 6 merlisk 2013-06-18 18:03:52 UTC
That's the complete log.

Comment 7 Richard W.M. Jones 2013-06-18 18:18:20 UTC
The complete log is two lines of output?  The kernel
prints nothing at all?  I simply don't believe it.

You'll need to obtain the complete log and attach it to this
bug, else this bug will never be fixable.

Comment 8 David Woodhouse 2013-06-18 21:29:07 UTC
This looks like a binfmt handler has been registered to use 'qemu-arm' for ARM binaries. That isn't going to go down well on a real ARM system.

I think it's a bug in qemu.spec:

diff --git a/qemu.spec b/qemu.spec
index b8b1558..05d89eb 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -901,7 +901,7 @@ for i in dummy \
 %ifnarch alpha
     qemu-alpha \
 %endif
-%ifnarch arm
+%ifnarch %{arm}
     qemu-arm \
 %endif
     qemu-armeb \

merlisk, please try removing /lib/binfmt.d/qemu-arm.conf from the offending system.

Comment 9 Cole Robinson 2013-06-18 23:10:40 UTC
Thanks for catching that David, reopening.

Comment 10 Fedora Update System 2013-06-19 15:28:09 UTC
qemu-1.4.2-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/qemu-1.4.2-4.fc19

Comment 11 Fedora Update System 2013-06-20 17:57:23 UTC
Package qemu-1.4.2-4.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qemu-1.4.2-4.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-11314/qemu-1.4.2-4.fc19
then log in and leave karma (feedback).

Comment 12 merlisk 2013-06-22 19:13:23 UTC
Thanks! My system now works and I figured out how to access my files.

Comment 13 Fedora Update System 2013-06-29 18:14:56 UTC
qemu-1.4.2-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 David Woodhouse 2013-07-19 13:21:56 UTC
*** Bug 986339 has been marked as a duplicate of this bug. ***


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