Bug 56654 - crash on arm9 cpu
Summary: crash on arm9 cpu
Status: RESOLVED ANSWERED
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: 5.0 (2017-02)
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-19 05:20 UTC by Ben
Modified: 2017-06-28 18:25 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Ben 2017-05-19 05:20:24 UTC
I recently upgraded from mono 4.8 to 5.  The mono runtime now immediatly crashes when trying to run anything.  Please see the crashlog below.

mono hello.exe
Stacktrace:

  at <unknown> <0xffffffff>
  at System.Environment.get_IsRunningOnWindows () [0x00000] in <4dc8ec68b0964e099af86e50301f5f3c>:0
  at System.Console..cctor () [0x00011] in <4dc8ec68b0964e099af86e50301f5f3c>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <4dc8ec68b0964e099af86e50301f5f3c>:0
  at <unknown> <0xffffffff>
  at HelloWorld.Main () [0x00000] in <2edf85801d784111988983ea7398d9fa>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0004c] in <4dc8ec68b0964e099af86e50301f5f3c>:0
/proc/self/maps:
00010000-00338000 r-xp 00000000 b3:02 13171      /usr/bin/mono-sgen
00348000-00349000 r-xp 00328000 b3:02 13171      /usr/bin/mono-sgen
00349000-0034b000 rwxp 00329000 b3:02 13171      /usr/bin/mono-sgen
0034b000-00366000 rwxp 00000000 00:00 0
004ae000-0052c000 rwxp 00000000 00:00 0          [heap]
b5200000-b5221000 rwxp 00000000 00:00 0
b5221000-b5300000 ---p 00000000 00:00 0
b5357000-b5358000 ---p 00000000 00:00 0
b5358000-b5457000 rwxp 00000000 00:00 0          [stack:6765]
b5457000-b5800000 r-xp 00000000 b3:02 137896     /usr/lib/mono/4.5/mscorlib.dll
b5800000-b6000000 rwxp 00000000 00:00 0
b6000000-b6001000 ---p 00000000 00:00 0
b6001000-b6c00000 rwxp 00000000 00:00 0          [stack:6762]
b6c5f000-b6cf1000 rwxp 00000000 00:00 0
b6cf1000-b6cf2000 r-xp 00000000 b3:02 16665      /root/monotest/hello.exe
b6cf2000-b6cf3000 rwxp 00000000 00:00 0
b6cf3000-b6d22000 ---p 00000000 00:00 0
b6d22000-b6d32000 rwxp 00000000 00:00 0
b6d32000-b6e65000 r-xp 00000000 b3:02 8591       /lib/arm-linux-gnueabi/libc-2.19.so
b6e65000-b6e75000 ---p 00133000 b3:02 8591       /lib/arm-linux-gnueabi/libc-2.19.so
b6e75000-b6e77000 r-xp 00133000 b3:02 8591       /lib/arm-linux-gnueabi/libc-2.19.so
b6e77000-b6e78000 rwxp 00135000 b3:02 8591       /lib/arm-linux-gnueabi/libc-2.19.so
b6e78000-b6e7b000 rwxp 00000000 00:00 0
b6e7b000-b6e9a000 r-xp 00000000 b3:02 877        /lib/arm-linux-gnueabi/libgcc_s.so.1
b6e9a000-b6ea9000 ---p 0001f000 b3:02 877        /lib/arm-linux-gnueabi/libgcc_s.so.1
b6ea9000-b6eaa000 rwxp 0001e000 b3:02 877        /lib/arm-linux-gnueabi/libgcc_s.so.1
b6eaa000-b6ebf000 r-xp 00000000 b3:02 8587       /lib/arm-linux-gnueabi/libpthread-2.19.so
b6ebf000-b6ecf000 ---p 00015000 b3:02 8587       /lib/arm-linux-gnueabi/libpthread-2.19.so
b6ecf000-b6ed0000 r-xp 00015000 b3:02 8587       /lib/arm-linux-gnueabi/libpthread-2.19.so
b6ed0000-b6ed1000 rwxp 00016000 b3:02 8587       /lib/arm-linux-gnueabi/libpthread-2.19.so
b6ed1000-b6ed3000 rwxp 00000000 00:00 0
b6ed3000-b6ed5000 r-xp 00000000 b3:02 8594       /lib/arm-linux-gnueabi/libdl-2.19.so
b6ed5000-b6ee4000 ---p 00002000 b3:02 8594       /lib/arm-linux-gnueabi/libdl-2.19.so
b6ee4000-b6ee5000 r-xp 00001000 b3:02 8594       /lib/arm-linux-gnueabi/libdl-2.19.so
b6ee5000-b6ee6000 rwxp 00002000 b3:02 8594       /lib/arm-linux-gnueabi/libdl-2.19.so
b6ee6000-b6eec000 r-xp 00000000 b3:02 8825       /lib/arm-linux-gnueabi/librt-2.19.so
b6eec000-b6efb000 ---p 00006000 b3:02 8825       /lib/arm-linux-gnueabi/librt-2.19.so
b6efb000-b6efc000 r-xp 00005000 b3:02 8825       /lib/arm-linux-gnueabi/librt-2.19.so
b6efc000-b6efd000 rwxp 00006000 b3:02 8825       /lib/arm-linux-gnueabi/librt-2.19.so
b6efd000-b6f9d000 r-xp 00000000 b3:02 8595       /lib/arm-linux-gnueabi/libm-2.19.so
b6f9d000-b6fac000 ---p 000a0000 b3:02 8595       /lib/arm-linux-gnueabi/libm-2.19.so
b6fac000-b6fad000 r-xp 0009f000 b3:02 8595       /lib/arm-linux-gnueabi/libm-2.19.so
b6fad000-b6fae000 rwxp 000a0000 b3:02 8595       /lib/arm-linux-gnueabi/libm-2.19.so
b6fae000-b6fce000 r-xp 00000000 b3:02 8588       /lib/arm-linux-gnueabi/ld-2.19.so
b6fce000-b6fd7000 rwxp 00000000 00:00 0
b6fd7000-b6fd8000 rwxp 00000000 00:00 0
b6fd8000-b6fd9000 rwxs 00000000 00:0d 66571      /dev/shm/mono.6761
b6fd9000-b6fda000 ---p 00000000 00:00 0
b6fda000-b6fdb000 r-xp 00000000 00:00 0
b6fdb000-b6fdc000 rwxp 00000000 00:00 0
b6fdc000-b6fdd000 r-xp 00000000 00:00 0          [sigpage]
b6fdd000-b6fde000 r-xp 0001f000 b3:02 8588       /lib/arm-linux-gnueabi/ld-2.19.so
b6fde000-b6fdf000 rwxp 00020000 b3:02 8588       /lib/arm-linux-gnueabi/ld-2.19.so
beb17000-beb38000 rw-p 00000000 00:00 0          [stack]
ffff0000-ffff1000 r-xp 00000000 00:00 0          [vectors]

Native stacktrace:


Debug info from gdb:

Mono support loaded.
[New LWP 6765]
[New LWP 6762]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabi/libthread_db.so.1".
0xb6ebadb8 in __libc_waitpid (pid=6766, stat_loc=0xbeb36338, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40      ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
  Id   Target Id         Frame
  3    Thread 0xb67ff440 (LWP 6762) "SGen worker" 0xb6eb6210 in __pthread_cond_wait (cond=0x364330, mutex=0x364314) at pthread_cond_wait.c:187
  2    Thread 0xb5456440 (LWP 6765) "Finalizer" 0xb6eb87fc in do_futex_wait (isem=isem@entry=0x35c470) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
* 1    Thread 0xb6fd3000 (LWP 6761) "mono" 0xb6ebadb8 in __libc_waitpid (pid=6766, stat_loc=0xbeb36338, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40

Thread 3 (Thread 0xb67ff440 (LWP 6762)):
#0  0xb6eb6210 in __pthread_cond_wait (cond=0x364330, mutex=0x364314) at pthread_cond_wait.c:187
#1  0x0025e50c in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0xb5456440 (LWP 6765)):
#0  0xb6eb87fc in do_futex_wait (isem=isem@entry=0x35c470) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
#1  0xb6eb88cc in __new_sem_wait (Cannot access memory at address 0x0
sem=0x35c470) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:69
#2  0x001e01f4 in ?? ()
Cannot access memory at address 0x0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0xb6fd3000 (LWP 6761)):
#0  0xb6ebadb8 in __libc_waitpid (pid=6766, stat_loc=0xbeb36338, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1  0x000bf514 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

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

Aborted

cat /proc/cpuinfo
processor       : 0
model name      : ARM926EJ-S rev 5 (v5l)
Features        : swp half fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5

Hardware        : Freescale MXS (Device Tree)
Revision        : 0000
Serial          : 0000000000000000

mono --version
Mono JIT compiler version 5.0.0 (Stable 5.0.0.100/9667aa6 Thu May 11 15:03:50 UTC 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  armel,vfp+fallback
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen (concurrent by default)

cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
Comment 1 Ben 2017-06-27 13:06:56 UTC
Just tested the new beta version 5.2.0.179 and it is able to run without any problems.
Comment 2 Ludovic Henry 2017-06-28 18:25:50 UTC
Closing as it is fixed with 5.2. Thank you.