qemu-arm-static crashes "segmentation fault" when running "git clone -s"

Bug #1869073 reported by Manuel Reimer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Laurent Vivier

Bug Description

I want to use qemu-arm-static to cross-compile software. The compiler itself is a native cross-compiler connected via "distcc".

The problem is that a script tries to do some stuff with "git" and with a "git clone -s" command the whole story reproducibly stops with a "segmentation fault".

I don't know how to properly debug the issue but it happens 100% of the time that I get the "crash" or git just hangs forever with 100% CPU usage.

Revision history for this message
Laurent Vivier (laurent-vivier) wrote :

What is the version of QEMU you are using?

Changed in qemu:
assignee: nobody → Laurent Vivier (laurent-vivier)
Revision history for this message
Manuel Reimer (manuel-reimer) wrote :

Actually this one magically went good. I'm testing in Virtual Box as my ARM64 host. Maybe something went wrong there. After rebooting the whole machine today "git" works well.

Will reopen if it happens again...

Changed in qemu:
status: New → Incomplete
Revision history for this message
Peter Maydell (pmaydell) wrote :

"git crashes" was a known issue with some older versions of QEMU (we had race conditions and git happens to go multi-threaded for some operations including I think 'clone'), but they should all now be fixed. If it does happen again I would recommend trying the most recent QEMU release.

Revision history for this message
Thomas Huth (th-huth) wrote :

Let's assume that this is fixed. Please open a new bug if it happens again.

Changed in qemu:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.