Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[arm] softfloat support is broken with -O=float32 (was: "r4_conv_to_r8 R47 <- R44 *Assertion: should not be reached at decompose.c:1889") #12537

Open
kishorepolepalli opened this issue Jan 21, 2019 · 26 comments

Comments

@kishorepolepalli
Copy link

kishorepolepalli commented Jan 21, 2019

Steps to Reproduce

*r4_conv_to_r8 R47 <- R44
Assertion: should not be reached at decompose.c:1889

  1. Stacktrace:
  at <unknown> <0xffffffff>
  at System.Collections.Hashtable..ctor () <0x0002b>
  at System.Resources.ResourceManager.CommonAssemblyInit () [0x0004e] in <41bfa2aae7e04d63b92b74e33c4ee0d2>:0
  at System.Resources.ResourceManager..ctor (string,System.Reflection.Assembly) [0x00054] in <41bfa2aae7e04d63b92b74e33c4ee0d2>:0
 
/proc/self/maps:
00010000-003b9000 r-xp 00000000 1f:04 910        /usr/bin/mono-sgen
003c8000-003cc000 r-xp 003a8000 1f:04 910        /usr/bin/mono-sgen
003cc000-003d0000 rwxp 003ac000 1f:04 910        /usr/bin/mono-sgen
003d0000-0067e000 rwxp 00000000 00:00 0          [heap]
b49ff000-b4a00000 ---p 00000000 00:00 0 
b4a00000-b4b00000 rwxp 00000000 00:00 0 
b4b00000-b4b76000 rwxp 00000000 00:00 0 
b4b76000-b4c00000 ---p 00000000 00:00 0 
b4c1b000-b4c2b000 rwxp 00000000 00:00 0 
b4c2b000-b4c2c000 ---p 00000000 00:00 0 
b4c2c000-b4d8c000 rwxp 00000000 00:00 0 
b4d8c000-b5000000 r-xp 00000000 1f:04 1476       /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
b5000000-b5021000 rwxp 00000000 00:00 0 
b5021000-b5100000 ---p 00000000 00:00 0 
b5103000-b5108000 rwxs 00000000 00:06 2364       /dev/fb0
b5108000-b510c000 r-xp 00000000 1f:04 1067       /usr/lib/libgpiod.so.0.3.1
b510c000-b511b000 ---p 00004000 1f:04 1067       /usr/lib/libgpiod.so.0.3.1
b511b000-b511c000 r-xp 00003000 1f:04 1067       /usr/lib/libgpiod.so.0.3.1
b511c000-b511d000 rwxp 00004000 1f:04 1067       /usr/lib/libgpiod.so.0.3.1
b511d000-b5124000 r-xp 00000000 1f:04 2547       /usr/lib/libsdk.so.1
b5124000-b5133000 ---p 00007000 1f:04 2547       /usr/lib/libsdk.so.1
b5133000-b5134000 r-xp 00006000 1f:04 2547       /usr/lib/libsdk.so.1
b5134000-b5135000 rwxp 00007000 1f:04 2547       /usr/lib/libsdk.so.1

Memory around native instruction pointer (0xb6c951f4):
0xb6c951e4  00 20 a0 e3 08 30 a0 e3 af 70 a0 e3 00 00 00 ef  . ...0...p......
0xb6c951f4  04 00 a0 e1 01 dc 8d e2 b0 80 bd e8 18 30 9f e5  .............0..
0xb6c95204  00 20 60 e2 03 30 9f e7 33 af ff eb 00 40 e0 e3  . `..0..3....@..
0xb6c95214  03 20 80 e7 ef ff ff ea f8 31 0f 00 b0 5e 11 00  . .......1...^..

Native stacktrace:

Pkilling 0xb4aff440 from 0xb6f1a010
Pkilling 0xb4d2b440 from 0xb6f1a010
Pkilling 0xb529b440 from 0xb6f1a010
Entering thread summarizer pause from 0xb6f1a010
Finished thread summarizer pause from 0xb6f1a010.

Waiting for dumping threads to resume

Current we are not able to run any mono application

Expected Behavior

we should be to run any mono application

On which platforms did you notice this

[ ] Linux

Version Used:
5.18

Stacktrace

Stacktrace:

  at <unknown> <0xffffffff>
  at System.Collections.Hashtable..ctor () <0x0002b>
  at System.Resources.ResourceManager.CommonAssemblyInit () [0x0004e] in <41bfa2aae7e04d63b92b74e33c4ee0d2>:0
  at System.Resources.ResourceManager..ctor (string,System.Reflection.Assembly) [0x00054] in <41bfa2aae7e04d63b92b74e33c4ee0d2>:0
@marek-safar
Copy link
Member

What platform, CPU architecture is this with?

@lewurm
Copy link
Contributor

lewurm commented Jan 21, 2019

right before the assertion, the opcode is printed:

mono/mono/mini/decompose.c

Lines 1889 to 1891 in 6fee0c0

if (spec [MONO_INST_SRC1] == 'f' || spec [MONO_INST_SRC2] == 'f' || spec [MONO_INST_DEST] == 'f') {
mono_print_ins (ins);
g_assert_not_reached ();

@kishorepolepalli do you see some additional output right before the assertion? It should be something with a OP_ prefix.

Depending how long it takes to reproduce, you can try to run mono -v -v -v -v (warning, extra spammy, pipe output to a file). Even better would be a reproducer.

Thank you 🙂

@kishorepolepalli
Copy link
Author

What platform, CPU architecture is this with?

Arm 9core at91sam9g45 in linux

@kishorepolepalli
Copy link
Author

Any help on this.. Please..

@kishorepolepalli kishorepolepalli changed the title * Assertion: should not be reached at decompose.c:1889 r4_conv_to_r8 R47 <- R44 *Assertion: should not be reached at decompose.c:1889 Jan 22, 2019
@kishorepolepalli
Copy link
Author

right before the assertion, the opcode is printed:
mono/mono/mini/decompose.c

Lines 1889 to 1891 in 6fee0c0

if (spec [MONO_INST_SRC1] == 'f' || spec [MONO_INST_SRC2] == 'f' || spec [MONO_INST_DEST] == 'f') {
mono_print_ins (ins);
g_assert_not_reached ();
@kishorepolepalli do you see some additional output right before the assertion? It should be something with a OP_ prefix.

Depending how long it takes to reproduce, you can try to run mono -v -v -v -v (warning, extra spammy, pipe output to a file). Even better would be a reproducer.

Thank you

r4_conv_to_r8 R47 <- R44 *Assertion: should not be reached at decompose.c:1889

@lewurm
Copy link
Contributor

lewurm commented Jan 22, 2019

Thanks @kishorepolepalli!

So let me break this down:

$ ag r4_conv_to_r8
mono/mini/mini-ops.h
531:MINI_OP(OP_RCONV_TO_R8,"r4_conv_to_r8", FREG, FREG, NONE)

We are looking for OP_RCONV_TO_R8. Let's first have a look where the assertion in the JIT pipeline happens:

mono/mono/mini/mini.c

Lines 3675 to 3678 in a7cfa88

#ifdef MONO_ARCH_SOFT_FLOAT_FALLBACK
if (COMPILE_SOFT_FLOAT (cfg))
mono_decompose_soft_float (cfg);
#endif

decompose is right to complain about it, since ARM9 is a target that uses soft float and decompose have to make sure that no instruction is left with a floating point operation. However, OP_RCONV_TO_R8 should be handled much earlier by

mono/mono/mini/mini.c

Lines 3515 to 3518 in a7cfa88

if (cfg->has_emulated_ops) {
MONO_TIME_TRACK (mono_jit_stats.jit_local_emulate_ops, mono_local_emulate_ops (cfg));
mono_cfg_dump_ir (cfg, "local_emulate_ops");
}

as OP_RCONV_TO_R8 is registered as an opcode emulation:

register_opcode_emulation (OP_RCONV_TO_U8, "__emul_rconv_to_u8", "ulong float", mono_rconv_u8, "mono_rconv_u8", FALSE);

Something is wrong here. Some more questions:

  • How did you obtain mono?
    • From some repository? If yes, which one?
    • Or did you build it yourself? If so, how? Could you put up a copy of config.h somewhere?
  • please post the output of cat /proc/cpuinfo
  • please post the output of cat /etc/issue
  • please post the output of mono --version
  • please post how you invoke mono (all its arguments)

@kishorepolepalli
Copy link
Author

How did you obtain mono? - git repository
From some repository? If yes, which one? - git
Or did you build it yourself? If so, how? Could you put up a copy of config.h somewhere? - Built using Yocto bitbake files
please post the output of cat /proc/cpuinfo
**
processor : 0
model name : ARM926EJ-S rev 5 (v5l)
BogoMIPS : 199.06
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 5

Hardware : Atmel AT91SAM9
Revision : 0000
Serial : 0000000000000000
**
please post the output of cat /etc/issue
ISC_SP7_V1.0 Poky (Yocto Project Reference Distro) 2.4.3 \n \l
please post the output of mono --version

Mono JIT compiler version 5.18.0.225 (tarball Fri Jan 18 11:31:11 UTC 2019)
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
Interpreter: yes
LLVM: supported, not enabled.
Suspend: preemptive
GC: sgen (concurrent by default)

please post how you invoke mono (all its arguments)

@lewurm
Copy link
Contributor

lewurm commented Jan 22, 2019

Thanks. I tested a runtime configured for armel,vfp+fallback but I couldn't reproduce your issue. Can you please let me know what program you are running?

Also do you know where to find the definition files for Yocto bitbake?

@solabc16
Copy link

Hello

I've come across this running Mono on ARMv5 based machines with all releases following 5.12.0.301. I had to revisit the project and decided to see how 5.18.0.240 behaved.

Dumping contents of file [/tmp/tmp.K8QEUChzQP]...                                                                 
                                                                                                          
Processor	: Feroceon 88FR131 rev 1 (v5l)
BogoMIPS	: 1192.75
Features	: swp half thumb fastmult edsp 
CPU implementer	: 0x56
CPU architecture: 5TE
CPU variant	: 0x2
CPU part	: 0x131
CPU revision	: 1

Hardware	: Feroceon-KW
Revision	: 0000
Serial		: 0000000000000000
Dumping contents of file [/tmp/tmp.tCDxMelESn]...                                                                 
                                                                                                          
Mono JIT compiler version 5.18.0.240 (tarball Fri Jan 25 22:16:39 UTC 2019)
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 
	Interpreter:   yes
	LLVM:          supported, not enabled.
	Suspend:       preemptive
	GC:            sgen (concurrent by default)
Dumping contents of file [/tmp/tmp.658bpntSY7]...                                                                 
                                                                                                          
 r4_conv_to_r8 R47 <- R44
* Assertion: should not be reached at decompose.c:1889

Stacktrace:

  at <unknown> <0xffffffff>
  at System.Collections.Hashtable..ctor () <0x0002b>
  at System.Text.RegularExpressions.RegexParser..ctor (System.Globalization.CultureInfo) [0x00018] in <06b225350c3541b2a422a59539189a6b>:0
  at System.Text.RegularExpressions.RegexParser.Parse (string,System.Text.RegularExpressions.RegexOptions) [0x00015] in <06b225350c3541b2a422a59539189a6b>:0
  at System.Text.RegularExpressions.Regex..ctor (string,System.Text.RegularExpressions.RegexOptions,System.TimeSpan,bool) [0x00097] in <06b225350c3541b2a422a59539189a6b>:0
  at System.Text.RegularExpressions.Regex..ctor (string) [0x00000] in <06b225350c3541b2a422a59539189a6b>:0
  at Mono.Options.OptionSet..ctor (System.Converter`2<string, string>) [0x0000b] in <b2359f44d2bd479dac15e741e2060754>:0
  at Mono.Options.OptionSet..ctor () [0x00000] in <b2359f44d2bd479dac15e741e2060754>:0
  at Ildasm.Program.Main (string[]) [0x00052] in <b2359f44d2bd479dac15e741e2060754>:0
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) [0x00054] in <b2359f44d2bd479dac15e741e2060754>:0

Memory around native instruction pointer (0x402e6008):
0x402e5ff8  00 10 a0 e1 58 04 03 e5 43 7f a0 e3 00 00 00 ef  ....X...C.......
0x402e6008  01 0a 70 e3 00 30 a0 e1 08 00 00 8a 03 00 a0 e1  ..p..0..........
0x402e6018  80 80 bd e8 54 04 10 e5 00 00 50 e3 f5 ff ff ca  ....T.....P.....
0x402e6028  02 31 d0 e3 00 00 60 12 01 00 a0 01 f1 ff ff ea  .1....`.........

Native stacktrace:

Pkilling 0x4064f440 from 0x40022830
Entering thread summarizer pause from 0x40022830
Finished thread summarizer pause from 0x40022830.

Let me know what further information and test resource I can provide.

Best

  • James

@solabc16
Copy link

FYI - the above could be generated by running the following, no need to try and run the program.

./bin/ikdasm my.exe -assembly

Best

  • James

@lewurm
Copy link
Contributor

lewurm commented Jan 30, 2019

@solabc16 could you run

$ MONO_VERBOSE_METHOD='Hashtable:.ctor' MONO_ENV_OPTIONS='-O=-inline,-aot' ./b/bin/ikdasm hello.exe -assembly

and post the output here please?

Also, where can I found how this 5.18.0.240 mono is built?

@solabc16
Copy link

solabc16 commented Jan 30, 2019

Hello @lewurm

Please find the output from the above below, this version of Mono (5.18.0.240) has been built with GCC 5.5 and 6.5; both producing the same results.

The configure used for the build was as follows:-

./configure                                           \
    --prefix=/local/development/path  \
    --with-mcs-docs=no                       \
    --disable-boehm                             \
    --disable-libraries                            \
    --with-static_mono=yes                  \
    --with-shared_mono=no                \
    --with-ikvm-native=no                   \
    --with-jemalloc=no                        \
    --with-jemalloc_always=no

Do let me know if you need any further information.

Best

  • James

log: https://gist.github.com/lewurm/542807672b47bbb46c6fa13f62dec2ad

@lewurm
Copy link
Contributor

lewurm commented Jan 31, 2019

Thanks @solabc16, this was useful. Some months ago we turned on -O=float32 as default, see #6985 (and this blog post with more context: https://tirania.org/blog/archive/2018/Apr-11.html ). Unfortunately this breaks soft float support on ARM and we didn't even notice. As a workaround you can use MONO_ENV_OPTIONS='-O=-aot,-float32' for now.

Note to myself: passing --host=arm-linux-gnueabi to configure is not enough to get soft float. we try to be smart at runtime and detect if vfp is available (which it is on our dev boards). to force soft float use MONO_ARM_FORCE_SOFT_FLOAT=1 at runtime.

We can fix it, but I think it's easier to just force -O=-float32 on such targets.

@solabc16
Copy link

solabc16 commented Jan 31, 2019

Hello @lewurm, thanks for the above - including the background information, that's moved us moved.

This appears to have resolved the initial problem and we no longer receive the assertion when running either ikdasm or the application itself.

However, we now experience the SIGABRT below. This same application is running fine on ARMv7, AARCH64, x86 and x86_64 targets.

Are there any further optimisations we should look at disabling and/or any pointers for how to troubleshoot this further?

Best

  • James
Stacktrace:

  at <unknown> <0xffffffff>
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<SocketHttpListener.Net.WebSockets.ValueWebSocketReceiveResult>.Start<SocketHttpListener.Net.WebSockets.ManagedWebSocket/<ReceiveAsyncPrivate>d__62`2<SocketHttpListener.Net.WebSockets.ManagedWebSocket/ValueWebSocketReceiveResultGetter, SocketHttpListener.Net.WebSockets.ValueWebSocketReceiveResult>> (SocketHttpListener.Net.WebSockets.ManagedWebSocket/<ReceiveAsyncPrivate>d__62`2<SocketHttpListener.Net.WebSockets.ManagedWebSocket/ValueWebSocketReceiveResultGetter, SocketHttpListener.Net.WebSockets.ValueWebSocketReceiveResult>&) [0x0002c] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate<SocketHttpListener.Net.WebSockets.ManagedWebSocket/ValueWebSocketReceiveResultGetter, SocketHttpListener.Net.WebSockets.ValueWebSocketReceiveResult> (System.Memory`1<byte>,byte[],System.Threading.CancellationToken,SocketHttpListener.Net.WebSockets.ManagedWebSocket/ValueWebSocketReceiveResultGetter) [0x00044] in <8c41f5d042a9485fb836326234661ed5>:0
  at SocketHttpListener.Net.WebSockets.ManagedWebSocket.ReceiveAsync (System.Memory`1<byte>,System.Threading.CancellationToken) [0x00046] in <8c41f5d042a9485fb836326234661ed5>:0
  at EmbyServer.SocketSharp.SharpWebSocket/<StartReceive>d__10.MoveNext () [0x00048] in <0b774ea89b064c5b9f365e3c0605dcc9>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<EmbyServer.SocketSharp.SharpWebSocket/<StartReceive>d__10> (EmbyServer.SocketSharp.SharpWebSocket/<StartReceive>d__10&) [0x0002c] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at EmbyServer.SocketSharp.SharpWebSocket.StartReceive () [0x00023] in <0b774ea89b064c5b9f365e3c0605dcc9>:0
  at EmbyServer.SocketSharp.WebSocketSharpListener/<ReceiveWebSocket>d__44.MoveNext () [0x00014] in <0b774ea89b064c5b9f365e3c0605dcc9>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<EmbyServer.SocketSharp.WebSocketSharpListener/<ReceiveWebSocket>d__44> (EmbyServer.SocketSharp.WebSocketSharpListener/<ReceiveWebSocket>d__44&) [0x0002c] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at EmbyServer.SocketSharp.WebSocketSharpListener.ReceiveWebSocket (SocketHttpListener.Net.HttpListenerContext,EmbyServer.SocketSharp.SharpWebSocket) [0x00033] in <0b774ea89b064c5b9f365e3c0605dcc9>:0
  at EmbyServer.SocketSharp.WebSocketSharpListener/<ProcessWebSocketRequest>d__43.MoveNext () [0x001bb] in <0b774ea89b064c5b9f365e3c0605dcc9>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00000] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x00024] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction (System.Action,bool,System.Threading.Tasks.Task&) [0x0001a] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00052] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x0003c] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task`1<TResult_REF>.TrySetResult (TResult_REF) [0x0004f] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>.SetResult (TResult_REF) [0x0003d] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at SocketHttpListener.Net.WebSockets.HttpWebSocket/<AcceptWebSocketAsyncCore>d__12.MoveNext () [0x0027e] in <8c41f5d042a9485fb836326234661ed5>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00000] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x00024] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction (System.Action,bool,System.Threading.Tasks.Task&) [0x0001a] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00052] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x0003c] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>.TrySetResult (System.Threading.Tasks.VoidTaskResult) [0x0004f] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Threading.Tasks.VoidTaskResult>.SetResult (System.Threading.Tasks.VoidTaskResult) [0x0003d] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Threading.Tasks.VoidTaskResult>.SetResult (System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>) [0x00010] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult () [0x00000] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at SocketHttpListener.Net.HttpResponseStream/<WriteWebSocketHandshakeHeadersAsync>d__37.MoveNext () [0x00189] in <8c41f5d042a9485fb836326234661ed5>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00000] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x00024] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction (System.Action,bool,System.Threading.Tasks.Task&) [0x0001a] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00052] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x0003c] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.FinishStageTwo () [0x000a1] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.Finish (bool) [0x0002e] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) [0x0004b] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.ExecuteEntry (bool) [0x0004a] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <06b73b509b314fc8a9db8d5f73b3c223>:0
  at (wrapper runtime-invoke) <Module>.runtime_invoke_bool (object,intptr,intptr,intptr) [0x0001e] in <06b73b509b314fc8a9db8d5f73b3c223>:0
/proc/self/maps:
00010000-003ce000 r-xp 00000000 fd:00 54919216   /volume1/@appstore/EmbyServer/3rdparty/mono/5.18.0.240/bin/mono-sgen
003dd000-003e1000 r-xp 003bd000 fd:00 54919216   /volume1/@appstore/EmbyServer/3rdparty/mono/5.18.0.240/bin/mono-sgen
003e1000-003e5000 rwxp 003c1000 fd:00 54919216   /volume1/@appstore/EmbyServer/3rdparty/mono/5.18.0.240/bin/mono-sgen
003e5000-023f4000 rwxp 00000000 00:00 0          [heap]
40000000-40020000 r-xp 00000000 fd:00 55059204   /usr/lib/ld-2.23.so
40020000-40025000 rwxp 00000000 00:00 0 
40025000-40026000 r-xp 00000000 00:00 0 
40026000-40027000 ---p 00000000 00:00 0 
40027000-40028000 rwxs 00000000 00:10 17874285   /dev/shm/mono.32393
40028000-4002f000 rwxp 00000000 00:00 0 
4002f000-40030000 r-xp 0001f000 fd:00 55059204   /usr/lib/ld-2.23.so
40030000-40031000 rwxp 00020000 fd:00 55059204   /usr/lib/ld-2.23.so
40031000-40167000 r-xp 00000000 fd:00 55059256   /usr/lib/libstdc++.so.6.0.22
40167000-40176000 ---p 00136000 fd:00 55059256   /usr/lib/libstdc++.so.6.0.22
40176000-4017b000 r-xp 00135000 fd:00 55059256   /usr/lib/libstdc++.so.6.0.22
4017b000-4017d000 rwxp 0013a000 fd:00 55059256   /usr/lib/libstdc++.so.6.0.22
4017d000-4017f000 rwxp 00000000 00:00 0 
4017f000-40223000 r-xp 00000000 fd:00 55059258   /usr/lib/libm-2.23.so
40223000-40232000 ---p 000a4000 fd:00 55059258   /usr/lib/libm-2.23.so
40232000-40233000 r-xp 000a3000 fd:00 55059258   /usr/lib/libm-2.23.so
40233000-40234000 rwxp 000a4000 fd:00 55059258   /usr/lib/libm-2.23.so
40234000-4023a000 r-xp 00000000 fd:00 55059190   /usr/lib/librt-2.23.so
4023a000-40249000 ---p 00006000 fd:00 55059190   /usr/lib/librt-2.23.so
40249000-4024a000 r-xp 00005000 fd:00 55059190   /usr/lib/librt-2.23.so
4024a000-4024b000 rwxp 00006000 fd:00 55059190   /usr/lib/librt-2.23.so
Memory around native instruction pointer (0x402e6008):
0x402e5ff8  00 10 a0 e1 58 04 03 e5 43 7f a0 e3 00 00 00 ef  ....X...C.......
0x402e6008  01 0a 70 e3 00 30 a0 e1 08 00 00 8a 03 00 a0 e1  ..p..0..........
0x402e6018  80 80 bd e8 54 04 10 e5 00 00 50 e3 f5 ff ff ca  ....T.....P.....
0x402e6028  02 31 d0 e3 00 00 60 12 01 00 a0 01 f1 ff ff ea  .1....`.........

Native stacktrace:


Waiting for dumping threads to resume


Debug info from gdb:

mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

=================================================================
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.
=================================================================

@solabc16
Copy link

solabc16 commented Jan 31, 2019

Hello @lewurm, following on from the above...

I started off with the somewhat coarse MONO_ENV_OPTIONS="--optimize=-all", which got the application running.

After a bit of trial and error, I managed to refine this to MONO_ENV_OPTIONS="--optimize=-float32,-inline".

So far testing has progressed well and we haven't run into any further issues. Is the use of inline optimisation expected to cause issues with ARMv5 machines? Let me know if you need any further details.

Best

  • James

@lewurm lewurm changed the title r4_conv_to_r8 R47 <- R44 *Assertion: should not be reached at decompose.c:1889 [arm] softfloat support is broken with -O=float32 (was: "r4_conv_to_r8 R47 <- R44 *Assertion: should not be reached at decompose.c:1889") Feb 1, 2019
@lewurm
Copy link
Contributor

lewurm commented Feb 1, 2019

@solabc16 -inline should work, but it's likely that it exposes a bug somewhere else in the JIT. for the crash above could you install gdb on your machine. that will give you a better stack trace for the native side and post its output. (ideally use gist.github.com, in order to keep this issue readable 🙂 )

@solabc16
Copy link

solabc16 commented Feb 1, 2019

Ok @lewurm, thanks, I'll do some more work on this next week and get a better stack trace for this.

And yes... good point on gist!

Best

  • James

@ricebus
Copy link

ricebus commented Jun 17, 2019

Hi, I'm also trying to build for armv5 but fail on runtime.

I'm building all jit libs on my x86 comp and the natives on the arm processor (with --disable-mcs-build). After it's all built I'm merging the two.

Tried building with
MONO_ENV_OPTIONS="--optimize=-float32,-inline" make
and
MONO_ENV_OPTIONS='-O=,-aot,-float32' make

but failed with both of them. any ideas?

https://gist.github.com/ricebus/3a78c6abd015d5991027ee1124dc3a3e

@lewurm
Copy link
Contributor

lewurm commented Jun 18, 2019

@ricebus sorry I made I type in my comment above, it should be

MONO_ENV_OPTIONS='-O=-aot,-float32'

instead of

MONO_ENV_OPTIONS='-O=,-aot,-float32'

If everything fails, try MONO_ENV_OPTIONS='-O=-all'. Note that you must pass this environment on the target, where you actually run the mono runtime.

@ricebus
Copy link

ricebus commented Jun 18, 2019

Oh, I didn't get that. I thought it's a compile time flag.
Well, it runs now but I get different errors (I know that app works because an older build of Mono works)

https://gist.github.com/ricebus/67bd0477f8f95d25a5f654c20ebb52a8

@lewurm
Copy link
Contributor

lewurm commented Jun 21, 2019

@ricebus this is a different problem, please open a separate issue for that

@ThadHouse
Copy link
Contributor

ThadHouse commented Aug 11, 2019

I'm getting this exact same error on the armel debian packages provided by mono. Using the latest download. Running on a Lego EV3 with and ev3dev

Mono JIT compiler version 6.0.0.319 (tarball Fri Aug  9 16:26:42 UTC 2019)
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
        Interpreter:   yes
        LLVM:          supported, not enabled.
        Suspend:       preemptive
        GC:            sgen (concurrent by default)

So its not just custom builds, but the mono provided build as well.

 r4_conv_to_r8 R47 <- R44
* Assertion: should not be reached at decompose.c:1891


=================================================================
        Native Crash Reporting
=================================================================
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.
=================================================================
/proc/self/maps:
0041f000-00829000 r-xp 00000000 b3:02 41791      /usr/bin/mono-sgen
00839000-0083d000 r-xp 0040a000 b3:02 41791      /usr/bin/mono-sgen
0083d000-00841000 rwxp 0040e000 b3:02 41791      /usr/bin/mono-sgen
00841000-009fa000 rwxp 00000000 00:00 0          [heap]
b4d00000-b4d21000 rwxp 00000000 00:00 0
b4d21000-b4e00000 ---p 00000000 00:00 0
b4e54000-b4ea1000 r-xp 00000000 b3:02 128304     /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
b4ea1000-b4ea2000 ---p 00000000 00:00 0
b4ea2000-b4fa2000 rwxp 00000000 00:00 0
b4fa2000-b53ff000 r-xp 00000000 b3:02 128238     /usr/lib/mono/4.5/mscorlib.dll
b53ff000-b5bff000 rwxp 00000000 00:00 0
b5bff000-b5c00000 ---p 00000000 00:00 0
b5c00000-b6800000 rwxp 00000000 00:00 0
b6827000-b6877000 rwxp 00000000 00:00 0
b6877000-b6883000 r-xp 00000000 b3:02 41848      /usr/lib/libmono-native.so.0.0.0
b6883000-b6892000 ---p 0000c000 b3:02 41848      /usr/lib/libmono-native.so.0.0.0
b6892000-b6893000 r-xp 0000b000 b3:02 41848      /usr/lib/libmono-native.so.0.0.0
b6893000-b6894000 rwxp 0000c000 b3:02 41848      /usr/lib/libmono-native.so.0.0.0
b6894000-b6926000 rwxp 00000000 00:00 0
b6926000-b6928000 r-xp 00000000 b3:02 42079      /home/robot/MonoEv3Test.exe
b6928000-b6931000 rwxp 00000000 00:00 0
b6931000-b6960000 ---p 00000000 00:00 0
b6960000-b6961000 rwxs 00000000 00:12 13740      /dev/shm/mono.5046
b6961000-b6971000 rwxp 00000000 00:00 0
b6971000-b6972000 ---p 00000000 00:00 0

=================================================================
        Basic Fault Adddress Reporting
=================================================================
Memory around native instruction pointer (0xb6ce3fec):0xb6ce3fdc  00 20 a0 e3 08 30 a0 e3 af 70 a0 e3 00 00 00 ef  . ...0...p......
0xb6ce3fec  04 00 a0 e1 01 dc 8d e2 b0 40 bd e8 1e ff 2f e1  .........@..../.
0xb6ce3ffc  c3 aa ff eb 14 30 9f e5 03 30 9f e7 00 20 64 e2  .....0...0... d.
0xb6ce400c  03 20 80 e7 00 40 e0 e3 ee ff ff ea 88 70 0f 00  . ...@.......p..

=================================================================
        Native stacktrace:
=================================================================
         (No frames)


=================================================================
        Telemetry Dumper:
=================================================================
Pkilling 0xb4fa1450 from 0xb6f8a000
Entering thread summarizer pause from 0xb6f8a000
Finished thread summarizer pause from 0xb6f8a000.

Waiting for dumping threads to resume

=================================================================
        External Debugger Dump:
=================================================================
mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

=================================================================
        Managed Stacktrace:
=================================================================
          at <unknown> <0xffffffff>
          at System.Collections.Hashtable:.ctor <0x00047>
          at System.TermInfoDriver:CreateKeyMap <0x0004f>
          at System.TermInfoDriver:InitKeys <0x00043>
          at System.TermInfoDriver:ReadKeyInternal <0x00053>
          at System.TermInfoDriver:ReadUntilConditionInternal <0x00127>
          at System.TermInfoDriver:ReadLine <0x00033>
          at System.ConsoleDriver:ReadLine <0x00053>
          at System.Console:ReadLine <0x000db>
          at MonoEv3Test.Program:Main <0x0005f>
          at <Module>:runtime_invoke_void_object <0x00133>
=================================================================

@alex-ks
Copy link

alex-ks commented Nov 17, 2019

I can confirm the same error on ARM9-based Lego Mindstorms EV3 with fresh install of Ev3Dev and Mono installed with apt. The problem occurs even while installing mono-complete on setting-up libglib2.0-cil:

Setting up libglib2.0-cil (2.12.45-0xamarin17+debian9b1) ...
sh: 1: cannot open -: No such file
W: removing assembly:  r4_conv_to_r8 R47 <- R44 failed!
/proc/self/maps:
0040a000-0081b000 r-xp 00000000 b3:02 42036      /usr/bin/mono-sgen
0082b000-0082f000 r-xp 00411000 b3:02 42036      /usr/bin/mono-sgen
0082f000-00834000 rwxp 00415000 b3:02 42036      /usr/bin/mono-sgen
00834000-008c7000 rwxp 00000000 00:00 0          [heap]
b4e00000-b4e21000 rwxp 00000000 00:00 0 
b4e21000-b4f00000 ---p 00000000 00:00 0 
b4f98000-b53ff000 r-xp 00000000 b3:02 128277     /usr/lib/mono/4.5/mscorlib.dll
b53ff000-b5bff000 rwxp 00000000 00:00 0 
b5bff000-b5c00000 ---p 00000000 00:00 0 
b5c00000-b6800000 rwxp 00000000 00:00 0 
b694f000-b6950000 ---p 00000000 00:00 0 
b6950000-b6ad0000 rwxp 00000000 00:00 0 
b6ad4000-b6ae6000 rwxp 00000000 00:00 0 
b6ae6000-b6ae7000 r-xp 00000000 b3:02 128883     /usr/share/cli-common/policies.d/libglib2.0-cil/policy.2.8.glib-sharp.dll
b6ae7000-b6ae8000 rwxp 00000000 00:00 0 
b6ae8000-b6b17000 ---p 00000000 00:00 0 
b6b17000-b6b27000 rwxp 00000000 00:00 0 
b6b27000-b6cc2000 r-xp 00000000 b3:02 13712      /usr/lib/locale/locale-archive
b6cc2000-b6df6000 r-xp 00000000 b3:02 1567       /lib/arm-linux-gnueabi/libc-2.24.so
b6df6000-b6e06000 ---p 00134000 b3:02 1567       /lib/arm-linux-gnueabi/libc-2.24.so
b6e06000-b6e08000 r-xp 00134000 b3:02 1567       /lib/arm-linux-gnueabi/libc-2.24.so
b6e08000-b6e09000 rwxp 00136000 b3:02 1567       /lib/arm-linux-gnueabi/libc-2.24.so
b6e09000-b6e0c000 rwxp 00000000 00:00 0 
b6e0c000-b6e2b000 r-xp 00000000 b3:02 1585       /lib/arm-linux-gnueabi/libgcc_s.so.1
b6e2b000-b6e3a000 ---p 0001f000 b3:02 1585       /lib/arm-linux-gnueabi/libgcc_s.so.1

E: installing Assembly /usr/share/cli-common/policies.d/libglib2.0-cil/policy.2.8.glib-sharp.dll failed
E: Installation of policy.2.8.glib-sharp with /usr/share/cli-common/runtimes.d/mono failed
dpkg: error processing package libglib2.0-cil (--configure):
 subprocess installed post-installation script returned error exit status 1

And same as above when running an app.

I've exported MONO_ENV_OPTIONS='-O=,-aot,-float32,-inline' and programs seem to work now, but libglib2.0-cil installation is still broken. Are there any plans to fix it in some official way?

hgy59 added a commit to hgy59/spksrc that referenced this issue Feb 4, 2020
hgy59 added a commit to hgy59/spksrc that referenced this issue Feb 4, 2020
ymartin59 pushed a commit to SynoCommunity/spksrc that referenced this issue Apr 9, 2020
* Update mono
- update mono to version 5.20
- update mono icon
- add symlinks (fix #3755)
- remove obsolete patch

* add workaround for mono bug with armv5
- ref: mono/mono#12537
@erikmollink
Copy link

In the workaround the SYNOPKG_DSM_ARCH 88f6282 should also be included as this model throws the same error.

@Stanzilla
Copy link

Yup, 88f6282 is needed as well.

@mreid-tt
Copy link

mreid-tt commented Jul 9, 2023

Was wondering if there were any updates on this issue. We recently had a user on a 88f6281 arch experience crashes on the initial install. In both cases the script was running the cert-sync function. I don't believe that the cert-sync is able to use the environment variables proposed above to workaround the issue. Below are the logs with two different builds. For mono version (5.20.1.34):

2023/06/29 20:03:58	 r4_conv_to_r8 R47 <- R44
2023/06/29 20:03:59	* Assertion: should not be reached at decompose.c:1891
2023/06/29 20:03:59	=================================================================
2023/06/29 20:03:59		Native Crash Reporting
2023/06/29 20:03:59	=================================================================
2023/06/29 20:03:59	Got a SIGABRT while executing native code. This usually indicates
2023/06/29 20:03:59	a fatal error in the mono runtime or one of the native libraries 
2023/06/29 20:03:59	used by your application.
2023/06/29 20:03:59	=================================================================
2023/06/29 20:03:59	/proc/self/maps:
2023/06/29 20:03:59	00010000-00369000 r-xp 00000000 09:02 18864      /volume1/@appstore/mono/bin/mono-sgen
2023/06/29 20:03:59	00378000-0037f000 rwxp 00358000 09:02 18864      /volume1/@appstore/mono/bin/mono-sgen
2023/06/29 20:03:59	0037f000-0046c000 rwxp 00000000 00:00 0          [heap]
2023/06/29 20:03:59	40000000-40020000 r-xp 00000000 09:00 18421      /usr/lib/ld-2.15.so
2023/06/29 20:03:59	40020000-40023000 rwxp 00000000 00:00 0 
2023/06/29 20:03:59	40023000-40024000 r-xp 00000000 00:00 0 
2023/06/29 20:03:59	40024000-40025000 ---p 00000000 00:00 0 
2023/06/29 20:03:59	40025000-40026000 rwxs 00000000 00:10 2055172    /dev/shm/mono.24222
2023/06/29 20:03:59	40026000-4002f000 rwxp 00000000 00:00 0 
2023/06/29 20:03:59	4002f000-40030000 r-xp 0001f000 09:00 18421      /usr/lib/ld-2.15.so
2023/06/29 20:03:59	40030000-40031000 rwxp 00020000 09:00 18421      /usr/lib/ld-2.15.so
2023/06/29 20:03:59	40031000-400c9000 r-xp 00000000 09:00 19903      /usr/lib/libm-2.15.so
2023/06/29 20:03:59	400c9000-400d8000 ---p 00098000 09:00 19903      /usr/lib/libm-2.15.so
2023/06/29 20:03:59	400d8000-400d9000 r-xp 00097000 09:00 19903      /usr/lib/libm-2.15.so
2023/06/29 20:03:59	400d9000-400da000 rwxp 00098000 09:00 19903      /usr/lib/libm-2.15.so
2023/06/29 20:03:59	400da000-400e0000 r-xp 00000000 09:00 19664      /usr/lib/librt-2.15.so
2023/06/29 20:03:59	400e0000-400ef000 ---p 00006000 09:00 19664      /usr/lib/librt-2.15.so
2023/06/29 20:03:59	400ef000-400f0000 r-xp 00005000 09:00 19664      /usr/lib/librt-2.15.so
2023/06/29 20:03:59	400f0000-400f1000 rwxp 00006000 09:00 19664      /usr/lib/librt-2.15.so
2023/06/29 20:03:59	400f1000-400f5000 r-xp 00000000 09:00 16306      /usr/lib/libdl-2.15.so
2023/06/29 20:03:59	400f5000-40104000 ---p 00004000 09:00 16306      /usr/lib/libdl-2.15.so
2023/06/29 20:03:59	40104000-40105000 r-xp 00003000 09:00 16306      /usr/lib/libdl-2.15.so
2023/06/29 20:03:59	40105000-40106000 rwxp 00004000 09:00 16306      /usr/lib/libdl-2.15.so
2023/06/29 20:03:59	40106000-4011b000 r-xp 00000000 09:00 19753      /usr/lib/libpthread-2.15.so
2023/06/29 20:03:59	4011b000-4012b000 ---p 00015000 09:00 19753      /usr/lib/libpthread-2.15.so
2023/06/29 20:03:59	=================================================================
2023/06/29 20:03:59		Basic Fault Adddress Reporting
2023/06/29 20:03:59	=================================================================
2023/06/29 20:03:59	Memory around native instruction pointer (0x40177fa0):0x40177f90  03 10 a0 e1 04 20 a0 e1 43 7f a0 e3 00 00 00 ef  ..... ..C.......
2023/06/29 20:03:59	0x40177fa0  01 0a 70 e3 08 00 00 8a 90 40 bd e8 1e ff 2f e1  ..p......@..../.
2023/06/29 20:03:59	0x40177fb0  00 00 50 e3 f5 ff ff ca 02 21 c0 e3 00 00 52 e3  ..P......!....R.
2023/06/29 20:03:59	0x40177fc0  00 00 60 12 03 00 a0 01 f0 ff ff ea 00 10 60 e2  ..`...........`.
2023/06/29 20:03:59	=================================================================
2023/06/29 20:03:59		Native stacktrace:
2023/06/29 20:03:59	=================================================================
2023/06/29 20:03:59		0xf2164 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0xb39d4 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0x40179370 - /lib/libc.so.6 : __default_rt_sa_restorer_v2
2023/06/29 20:03:59		0x40177fa0 - /lib/libc.so.6 : gsignal
2023/06/29 20:03:59		0x4017bea8 - /lib/libc.so.6 : abort
2023/06/29 20:03:59		0x298cd0 - /var/packages/mono/target/bin/mono : monoeg_assert_abort
2023/06/29 20:03:59		0x2828e8 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0x27d350 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0x298c78 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0x298f14 - /var/packages/mono/target/bin/mono : monoeg_assertion_message
2023/06/29 20:03:59		0x7ddc4 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0xf8988 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0xf9218 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0x38ffc - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0xb7184 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59		0xb7810 - /var/packages/mono/target/bin/mono : (null)
2023/06/29 20:03:59	=================================================================
2023/06/29 20:03:59		Telemetry Dumper:
2023/06/29 20:03:59	=================================================================
2023/06/29 20:03:59	Pkilling 0x41d49450 from 0x400217c0
2023/06/29 20:03:59	Entering thread summarizer pause from 0x400217c0
2023/06/29 20:03:59	Finished thread summarizer pause from 0x400217c0.
2023/06/29 20:03:59	Waiting for dumping threads to resume
2023/06/29 20:04:00	Debug info from gdb:
2023/06/29 20:04:00	=================================================================
2023/06/29 20:04:00		External Debugger Dump:
2023/06/29 20:04:00	=================================================================
2023/06/29 20:04:00	mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb
2023/06/29 20:04:00	=================================================================
2023/06/29 20:04:00		Managed Stacktrace:
2023/06/29 20:04:00	=================================================================
2023/06/29 20:04:00		  at <unknown> <0xffffffff>
2023/06/29 20:04:00		  at System.Collections.Hashtable:.ctor <0x0002b>
2023/06/29 20:04:00		  at System.Text.Encoding:GetEncoding <0x00173>
2023/06/29 20:04:00		  at System.Text.EncodingHelper:GetDefaultEncoding <0x000f7>
2023/06/29 20:04:00		  at System.Text.Encoding:CreateDefaultEncoding <0x0000b>
2023/06/29 20:04:00		  at System.Text.Encoding:get_Default <0x00027>
2023/06/29 20:04:00		  at System.Console:.cctor <0x00123>
2023/06/29 20:04:00		  at System.Object:runtime_invoke_void <0x00073>
2023/06/29 20:04:00		  at <unknown> <0xffffffff>
2023/06/29 20:04:00		  at Mono.Tools.CertSync:Header <0x00043>
2023/06/29 20:04:00		  at Mono.Tools.CertSync:Main <0x0005f>
2023/06/29 20:04:00		  at <Module>:runtime_invoke_int_object <0x000ff>
2023/06/29 20:04:00	=================================================================
2023/06/29 20:04:01	/var/packages/mono/scripts/service-setup: line 18: 24222 Aborted                 (core dumped) ${SYNOPKG_PKGDEST}/bin/cert-sync /etc/ssl/certs/ca-certificates.crt

A similar log is shown with the newer mono version (6.12.0.182):

2023/06/29 14:36:20	Mono Certificate Store Sync - version 6.12.0.182
2023/06/29 14:36:20	Populate Mono certificate store from a concatenated list of certificates.
2023/06/29 14:36:20	Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.
2023/06/29 14:36:23	Importing into legacy system store:
2023/06/29 14:36:23	 r4_mul R65 <- R59 R62
2023/06/29 14:36:23	* Assertion: should not be reached at decompose.c:1894
2023/06/29 14:36:23	=================================================================
2023/06/29 14:36:24		Native Crash Reporting
2023/06/29 14:36:24	=================================================================
2023/06/29 14:36:24	Got a SIGABRT while executing native code. This usually indicates
2023/06/29 14:36:24	a fatal error in the mono runtime or one of the native libraries 
2023/06/29 14:36:24	used by your application.
2023/06/29 14:36:24	=================================================================
2023/06/29 14:36:24	=================================================================
2023/06/29 14:36:24		Native stacktrace:
2023/06/29 14:36:24	=================================================================
2023/06/29 14:36:24		0x95a84 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x95d88 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x68638 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x95080 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x40179370 - /lib/libc.so.6 : __default_rt_sa_restorer_v2
2023/06/29 14:36:24		0x40177fa0 - /lib/libc.so.6 : gsignal
2023/06/29 14:36:24		0x4017bea8 - /lib/libc.so.6 : abort
2023/06/29 14:36:24		0x2a4b04 - /var/packages/mono/target/bin/mono : monoeg_assert_abort
2023/06/29 14:36:24		0x28b558 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x288318 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x2a4aac - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x2a4d74 - /var/packages/mono/target/bin/mono : monoeg_assertion_message
2023/06/29 14:36:24		0x2a4de4 - /var/packages/mono/target/bin/mono : mono_assertion_message_unreachable
2023/06/29 14:36:24		0xda998 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x9bfa0 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x9c900 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x366c0 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x6bdd0 - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24		0x6c48c - /var/packages/mono/target/bin/mono : 
2023/06/29 14:36:24	=================================================================
2023/06/29 14:36:24		Telemetry Dumper:
2023/06/29 14:36:24	=================================================================
2023/06/29 14:36:24	Pkilling 0x1104585808x from 0x1073878992x
2023/06/29 14:36:24	Entering thread summarizer pause from 0x1073878992x
2023/06/29 14:36:24	Finished thread summarizer pause from 0x1073878992x.
2023/06/29 14:36:24	Failed to create breadcrumb file (null)/crash_hash_0xa14d86043
2023/06/29 14:36:24	Could not exec mono-hang-watchdog, expected on path '/volume1/@appstore/mono/etc/../bin/mono-hang-watchdog' (errno 8)
2023/06/29 14:36:24	Waiting for dumping threads to resume
2023/06/29 14:36:25	=================================================================
2023/06/29 14:36:25		External Debugger Dump:
2023/06/29 14:36:25	=================================================================
2023/06/29 14:36:25	mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb
2023/06/29 14:36:25	=================================================================
2023/06/29 14:36:25		Basic Fault Address Reporting
2023/06/29 14:36:25	=================================================================
2023/06/29 14:36:25	Memory around native instruction pointer (0x40177fa0):0x40177f90  03 10 a0 e1 04 20 a0 e1 43 7f a0 e3 00 00 00 ef  ..... ..C.......
2023/06/29 14:36:25	0x40177fa0  01 0a 70 e3 08 00 00 8a 90 40 bd e8 1e ff 2f e1  ..p......@..../.
2023/06/29 14:36:25	0x40177fb0  00 00 50 e3 f5 ff ff ca 02 21 c0 e3 00 00 52 e3  ..P......!....R.
2023/06/29 14:36:25	0x40177fc0  00 00 60 12 03 00 a0 01 f0 ff ff ea 00 10 60 e2  ..`...........`.
2023/06/29 14:36:25	=================================================================
2023/06/29 14:36:25		Managed Stacktrace:
2023/06/29 14:36:25	=================================================================
2023/06/29 14:36:25		  at <unknown> <0xffffffff>
2023/06/29 14:36:25		  at System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1:Return <0x0021b>
2023/06/29 14:36:25		  at System.IO.Enumeration.FileSystemEnumerator`1:InternalDispose <0x0010b>
2023/06/29 14:36:25		  at System.IO.Enumeration.FileSystemEnumerator`1:Dispose <0x00017>
2023/06/29 14:36:25		  at System.Collections.Generic.LargeArrayBuilder`1:AddRange <0x001ef>
2023/06/29 14:36:25		  at System.Collections.Generic.EnumerableHelpers:ToArray <0x0014f>
2023/06/29 14:36:25		  at System.IO.MonoLinqHelper:ToArray <0x00023>
2023/06/29 14:36:25		  at System.IO.Directory:GetFiles <0x00037>
2023/06/29 14:36:25		  at System.IO.Directory:GetFiles <0x00023>
2023/06/29 14:36:25		  at Mono.Security.X509.X509Store:BuildCertificatesCollection <0x0015f>
2023/06/29 14:36:25		  at Mono.Security.X509.X509Store:get_Certificates <0x00033>
2023/06/29 14:36:25		  at Mono.Tools.CertSync:ImportToStore <0x0006f>
2023/06/29 14:36:25		  at Mono.Tools.CertSync:Process <0x0013b>
2023/06/29 14:36:25		  at Mono.Tools.CertSync:Main <0x00063>
2023/06/29 14:36:25		  at <Module>:runtime_invoke_int_object <0x00113>
2023/06/29 14:36:25	=================================================================
2023/06/29 14:36:27	/var/packages/mono/scripts/service-setup: line 18: 30979 Aborted                 (core dumped) ${SYNOPKG_PKGDEST}/bin/cert-sync /etc/ssl/certs/ca-certificates.crt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants