Comment 8 for bug 816791

Revision history for this message
Peter Maydell (pmaydell) wrote :

That patch is a variant on the upstream one which applies to qemu-linaro. It fixes the segfault due to the cp15 problems. However mono still segfaults in a different way further on:

===begin===
chroot tmpmount /usr/bin/qemu-arm-static /usr/bin/mono /usr/share/mono/MonoGetAssemblyName.exe /usr/lib/cli/gconf-sharp-2.0/gconf-sharp.dll -g

** (/usr/share/mono/MonoGetAssemblyName.exe:6868): WARNING **: Thread (nil) may have been prematurely finalized

Native stacktrace:

Debug info from gdb:

qemu: Unsupported syscall: 26
ptrace: Function not implemented.

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted
===endit===

This appears to be because the guest code is dereferencing a NULL pointer. (The bit about ptrace being unimplemented is because qemu doesn't implement the ptrace syscall, but that is just mono trying to be helpful and display a backtrace rather than the actual cause of the segfault.)