Mono on the Omega2+
-
I have been working on a project to run mono on the Omega2. When i finnally got it compiled, it gives me this error when i try to run a .net console application.
Segmentation fault
root@Omega:/home/bjornb/output2/bin# ./mono /mnt/USB/Debug2/Server
App.exe- Assertion: should not be reached at mini-mips.c:2229
Stacktrace:
at <unknown> <0xffffffff>
at System.Collections.Hashtable/SyncHashtable.get_Item (object) [0x0000c] in <a09726166c1843dfba9f344410894800>:0
at System.Globalization.EncodingTable.GetCodePageDataItem (int) [0x00000] in <a09726166c1843dfba9f344410894800>:0
at System.Text.Encoding.GetDataItem () [0x0000b] in <a09726166c1843dfba9f344410894800>:0
at System.Text.Encoding.get_WebName () [0x0000b] in <a09726166c1843dfba9f344410894800>:0
at System.Xml.XmlTextReaderImpl.SwitchEncoding (System.Text.Encoding) [0x00000] in <611e64636ff745389933c69c817b2d4a>:0
at System.Xml.XmlTextReaderImpl.ParseXmlDeclaration (bool) [0x0028d] in <611e64636ff745389933c69c817b2d4a>:0
at System.Xml.XmlTextReaderImpl.Read () [0x000d4] in <611e64636ff745389933c69c817b2d4a>:0
at System.Xml.XmlTextReader.Read () [0x00000] in <611e64636ff745389933c69c817b2d4a>:0
at System.Xml.XmlReader.MoveToContent () [0x0004b] in <611e64636ff745389933c69c817b2d4a>:0
at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader,string) [0x00000] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.Configuration.Load () [0x00052] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem,string,System.Configuration.Configuration) [0x00065] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem,string) [0x0005c] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem,string) [0x0003b] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.InternalConfigurationFactory.Create (System.Type,object[]) [0x0000e] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (System.Configuration.ConfigurationUserLevel,System.Reflection.Assembly,string) [0x00107] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00011] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (string) [0x00000] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Configuration.ConfigurationManager.GetSection (string) [0x00005] in <c88268b2ab694baf8f53384cac3b8843>:0
at System.Net.Sockets.Socket..cctor () [0x00147] in <f8255d9ef0594d18ae2c0d97286b9a80>:0
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <a09726166c1843dfba9f344410894800>:0
at <unknown> <0xffffffff>
at (wrapper managed-to-native) object.__icall_wrapper_mono_generic_class_init (intptr) <0x00098>
at ServerApp.Program..cctor () [0x00000] in <2c5045d6e3c34a659177592d30b01fdb>:0
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <a09726166c1843dfba9f344410894800>:0
/proc/self/maps:
00400000-0077e000 r-xp 00000000 b3:01 266103 /home/bjornb/output2/bin/mono
0078d000-00793000 rw-p 0037d000 b3:01 266103 /home/bjornb/output2/bin/mono
00793000-007ae000 rwxp 00000000 00:00 0
0091a000-00cad000 rwxp 00000000 00:00 0 [heap]
75800000-75900000 rw-p 00000000 00:00 0
759a2000-75cd2000 r--p 00000000 b3:01 393516 /home/bjornb/output2/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
75cd2000-75f58000 r--p 00000000 b3:01 393430 /home/bjornb/output2/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
75f58000-75f59000 ---p 00000000 00:00 0
75f59000-7605a000 rw-p 00000000 00:00 0
7605a000-763ff000 r--p 00000000 b3:01 268043 /home/bjornb/output2/lib/mono/4.5/mscorlib.dll
76400000-77000000 rw-p 00000000 00:00 0
77009000-7701f000 rwxp 00000000 00:00 0
77060000-77090000 rwxp 00000000 00:00 0
77090000-770b0000 r--p 00000000 b3:01 393341 /home/bjornb/output2/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
770b0000-77130000 rw-p 00000000 00:00 0
77130000-77133000 r--p 00000000 08:02 266977 /mnt/USB/Debug2/ServerApp.exe
77134000-77144000 rwxp 00000000 00:00 0
77144000-77145000 ---p 00000000 00:00 0
77145000-7715a000 rw-p 00000000 00:00 0
7715a000-7716a000 rwxp 00000000 00:00 0
7716a000-7718c000 r-xp 00000000 1f:05 306 /lib/libgcc_s.so.1
7718c000-7718d000 rw-p 00012000 1f:05 306 /lib/libgcc_s.so.1
7718e000-772cf000 r-xp 00000000 1f:05 863 /usr/lib/libstdc++.so.6.0.21
772cf000-772d9000 r--p 00131000 1f:05 863 /usr/lib/libstdc++.so.6.0.21
772d9000-772dd000 rw-p 0013b000 1f:05 863 /usr/lib/libstdc++.so.6.0.21
772dd000-772df000 rw-p 00000000 00:00 0
772e0000-77372000 r-xp 00000000 1f:05 304 /lib/libc.so
77374000-7737c000 rw-p 00000000 00:00 0
7737c000-7737d000 rw-s 00000000 00:0d 4236 /tmp/shm/mono.1898
7737d000-7737e000 ---p 00000000 00:00 0
7737e000-7737f000 r--p 00000000 00:00 0
7737f000-77380000 r--p 00000000 00:00 0 [vvar]
77380000-77381000 r-xp 00000000 00:00 0 [vdso]
77381000-77383000 rw-p 00091000 1f:05 304 /lib/libc.so
77383000-77385000 rwxp 00000000 00:00 0
7faf3000-7fb14000 rw-p 00000000 00:00 0 [stack]Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.I compiled it with ./configure --host=mipsel-openwrt-linux --prefix=/output --enable-minimal=profiler,debug,logging --enable-small-config=yes --without-mcs-docs --with-moonlight=no --disable-boehm && make