Skip to content

[8.0] PosixSignalRegistrationTests.SignalHandlerCalledForKnownSignals failure: "Exit code was 134 but it should have been 42" #114925

Open
@carlossanlop

Description

@carlossanlop

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1017239
Build error leg or test failing: Libraries Test Run release mono linux arm64 Debug

Error Message

{
  "ErrorMessage" : "System.Tests.PosixSignalRegistrationTests.SignalHandlerCalledForKnownSignals(s: SIGQUIT) [FAIL",
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
mono_os_mutex_destroy: pthread_mutex_destroy failed with "Device or resource busy" (16)

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

=================================================================
	Native stacktrace:
=================================================================
	0xf7b7909efe7c - Unknown
	0xf7b7909a1c5c - Unknown
	0xf7b7909ef5a8 - Unknown
	0xf7b7913f47d8 - Unknown
	0xf7b790ecf1f0 - Unknown
	0xf7b790e8a67c - Unknown
	0xf7b790e77130 - Unknown
	0xf7b790a83ac8 - Unknown
	0xf7b790a94d9c - Unknown
	0xf7b790a83ea8 - Unknown
	0xf7b790a83f34 - Unknown
	0xf7b790a5d268 - Unknown
	0xf7b790a59cc0 - Unknown
	0xf7b790914db0 - Unknown
	0xf7b790adc608 - Unknown
	0xf7b78fbe53e0 - Unknown

=================================================================
	External Debugger Dump:
=================================================================
[New LWP 216]
[New LWP 217]
[New LWP 218]
[New LWP 219]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
0x0000f7b790f06800 in __GI___wait4 (pid=pid@entry=222, stat_loc=stat_loc@entry=0xffffefbbd460, options=0, options@entry=-272903328, usage=usage@entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
30	../sysdeps/unix/sysv/linux/wait4.c: No such file or directory.
  Id   Target Id                                         Frame 
* 1    Thread 0xf7b7913e7020 (LWP 215) "dotnet"          0x0000f7b790f06800 in __GI___wait4 (pid=pid@entry=222, stat_loc=stat_loc@entry=0xffffefbbd460, options=0, options@entry=-272903328, usage=usage@entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
  2    Thread 0xf7b78fa0f0e0 (LWP 216) "SGen worker"     __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0xf7b790c08ef8 <work_cond+40>) at ./nptl/futex-internal.c:57
  3    Thread 0xf7b78da0f0e0 (LWP 217) ".NET EventPipe"  0x0000f7b790f2be38 in __GI___poll (fds=fds@entry=0xf7b788003710, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:41
  4    Thread 0xf7b78d60f0e0 (LWP 218) "Finalizer"       __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0xf7b790bfa200 <finalizer_sem>) at ./nptl/futex-internal.c:57
  5    Thread 0xf7b7901300e0 (LWP 219) ".NET SigHandler" __GI___libc_read (nbytes=1, buf=0xf7b79012f7e7, fd=<optimized out>) at ../sysdeps/unix/sysv/linux/read.c:26

Thread 5 (Thread 0xf7b7901300e0 (LWP 219) ".NET SigHandler"):
#0  __GI___libc_read (nbytes=1, buf=0xf7b79012f7e7, fd=<optimized out>) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=<optimized out>, buf=0xf7b79012f7e7, nbytes=1) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x0000f7b7902a3178 in SignalHandlerLoop (arg=0xb03fd9394350) at /__w/1/s/src/native/libs/System.Native/pal_signal.c:331
#3  0x0000f7b790ecd5b8 in start_thread (arg=0x0) at ./nptl/pthread_create.c:442
#4  0x0000f7b790f35edc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:79

Thread 4 (Thread 0xf7b78d60f0e0 (LWP 218) "Finalizer"):
#0  __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0xf7b790bfa200 <finalizer_sem>) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=<optimized out>, abstime=0x0, clockid=0, expected=0, futex_word=0xf7b790bfa200 <finalizer_sem>) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0xf7b790bfa200 <finalizer_sem>, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=<optimized out>) at ./nptl/futex-internal.c:139
#3  0x0000f7b790ed5994 in do_futex_wait (sem=sem@entry=0xf7b790bfa200 <finalizer_sem>, abstime=0x0, clockid=0) at ./nptl/sem_waitcommon.c:111
#4  0x0000f7b790ed5a4c in __new_sem_wait_slow64 (sem=0xf7b790bfa200 <finalizer_sem>, abstime=0x0, clockid=0) at ./nptl/sem_waitcommon.c:183
#5  0x0000f7b790ed5af4 in __new_sem_wait (sem=<optimized out>) at ./nptl/sem_wait.c:42
#6  0x0000f7b790b59404 in mono_os_sem_wait (sem=0xf7b790bfa200 <finalizer_sem>, flags=MONO_SEM_FLAGS_ALERTABLE) at /__w/1/s/src/mono/mono/metadata/../../mono/utils/mono-os-semaphore.h:204
#7  mono_coop_sem_wait (sem=0xf7b790bfa200 <finalizer_sem>, flags=MONO_SEM_FLAGS_ALERTABLE) at /__w/1/s/src/mono/mono/metadata/../../mono/utils/mono-coop-semaphore.h:41
#8  finalizer_thread (unused=<optimized out>) at /__w/1/s/src/mono/mono/metadata/gc.c:891
#9  0x0000f7b790b32758 in start_wrapper_internal (start_info=0x0, stack_ptr=<optimized out>) at /__w/1/s/src/mono/mono/metadata/threads.c:1202
#10 start_wrapper (data=<optimized out>) at /__w/1/s/src/mono/mono/metadata/threads.c:1271
#11 0x0000f7b790ecd5b8 in start_thread (arg=0x0) at ./nptl/pthread_create.c:442
#12 0x0000f7b790f35edc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:79

Thread 3 (Thread 0xf7b78da0f0e0 (LWP 217) ".NET EventPipe"):
#0  0x0000f7b790f2be38 in __GI___poll (fds=fds@entry=0xf7b788003710, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:41
#1  0x0000f7b790a782c8 in ipc_poll_fds (fds=0xf7b788003710, nfds=1, timeout=4294967295) at /__w/1/s/src/native/eventpipe/ds-ipc-pal-socket.c:470
#2  ds_ipc_poll (poll_handles_data=0xf7b788003500, poll_handles_data_len=1, timeout_ms=<optimized out>, timeout_ms@entry=4294967295, callback=callback@entry=0xf7b790a776e8 <server_warning_callback>) at /__w/1/s/src/native/eventpipe/ds-ipc-pal-socket.c:1105
#3  0x0000f7b790a75290 in ds_ipc_stream_factory_get_next_available_stream (callback=callback@entry=0xf7b790a776e8 <server_warning_callback>) at /__w/1/s/src/native/eventpipe/ds-ipc.c:393
#4  0x0000f7b790a7395c in server_thread (data=<optimized out>) at /__w/1/s/src/native/eventpipe/ds-server.c:129
#5  0x0000f7b790a776c8 in ep_rt_thread_mono_start_func (data=0xb03fd90be000) at /__w/1/s/src/mono/mono/mini/../../mono/eventpipe/ep-rt-mono.h:877
#6  0x0000f7b790ecd5b8 in start_thread (arg=0x0) at ./nptl/pthread_create.c:442
#7  0x0000f7b790f35edc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:79

Thread 2 (Thread 0xf7b78fa0f0e0 (LWP 216) "SGen worker"):
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0xf7b790c08ef8 <work_cond+40>) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, futex_word=0xf7b790c08ef8 <work_cond+40>) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0xf7b790c08ef8 <work_cond+40>, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x0000f7b790ecc8ec in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0xf7b790c08ea0 <lock>, cond=0xf7b790c08ed0 <work_cond>) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0xf7b790c08ed0 <work_cond>, mutex=0xf7b790c08ea0 <lock>) at ./nptl/pthread_cond_wait.c:627
#5  0x0000f7b790bbe90c in mono_os_cond_wait (cond=0xf7b790c08ef8 <work_cond+40>, mutex=0x189) at /__w/1/s/src/mono/mono/sgen/../../mono/utils/mono-os-mutex.h:219
#6  get_work (worker_index=0, work_context=<optimized out>, do_idle=<optimized out>, job=<optimized out>) at /__w/1/s/src/mono/mono/sgen/sgen-thread-pool.c:164
#7  thread_func (data=0x0) at /__w/1/s/src/mono/mono/sgen/sgen-thread-pool.c:195
#8  0x0000f7b790ecd5b8 in start_thread (arg=0x0) at ./nptl/pthread_create.c:442
#9  0x0000f7b790f35edc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:79

Thread 1 (Thread 0xf7b7913e7020 (LWP 215) "dotnet"):
#0  0x0000f7b790f06800 in __GI___wait4 (pid=pid@entry=222, stat_loc=stat_loc@entry=0xffffefbbd460, options=0, options@entry=-272903328, usage=usage@entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1  0x0000f7b790f06758 in __GI___waitpid (pid=pid@entry=222, stat_loc=stat_loc@entry=0xffffefbbd460, options=options@entry=-272903328) at ./posix/waitpid.c:38
#2  0x0000f7b7909effa4 in dump_native_stacktrace (signal=<optimized out>, mctx=<optimized out>) at /__w/1/s/src/mono/mono/mini/mini-posix.c:871
#3  mono_dump_native_crash_info (signal=<optimized out>, mctx=mctx@entry=0xffffefbbde90, info=<optimized out>) at /__w/1/s/src/mono/mono/mini/mini-posix.c:898
#4  0x0000f7b7909a1c5c in mono_handle_native_crash (signal=0xf7b790842caf "SIGABRT", mctx=mctx@entry=0xffffefbbde90, info=info@entry=0xffffefbbe1d0) at /__w/1/s/src/mono/mono/mini/mini-exceptions.c:2958
#5  0x0000f7b7909ef5a8 in sigabrt_signal_handler (_dummy=6, _info=0xffffefbbe1d0, context=0xffffefbbe250) at /__w/1/s/src/mono/mono/mini/mini-posix.c:247
#6  <signal handler called>
#7  __pthread_kill_implementation (threadid=272367787864096, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#8  0x0000f7b790ecf244 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#9  0x0000f7b790e8a67c in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x0000f7b790e77130 in __GI_abort () at ./stdlib/abort.c:79
#11 0x0000f7b790a83ac8 in monoeg_assert_abort () at /__w/1/s/src/mono/mono/eglib/goutput.c:57
#12 0x0000f7b790a94d9c in mono_log_write_logfile (log_domain=<optimized out>, level=G_LOG_LEVEL_ERROR, hdr=<optimized out>, message=0xb03fd9415430 "mono_os_mutex_destroy: pthread_mutex_destroy failed with \"Device or resource busy\" (16)") at /__w/1/s/src/mono/mono/utils/mono-log-common.c:146
#13 0x0000f7b790a83ea8 in monoeg_g_logstr (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR, msg=0x6 <error: Cannot access memory at address 0x6>) at /__w/1/s/src/mono/mono/eglib/goutput.c:151
#14 monoeg_g_logv_nofree (log_domain=0x0, log_domain@entry=0xffffefbbfb90 "Device or resourr resource busy", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=<optimized out>, args=...) at /__w/1/s/src/mono/mono/eglib/goutput.c:166
#15 0x0000f7b790a83f34 in monoeg_g_logv (log_domain=0x0, log_level=215, format=0x6 <error: Cannot access memory at address 0x6>, args=...) at /__w/1/s/src/mono/mono/eglib/goutput.c:173
#16 monoeg_g_log (log_domain=0x0, log_domain@entry=0xffffefbbfc90 "\260\374\273\357\377\377", log_level=215, log_level@entry=G_LOG_LEVEL_ERROR, format=0x6 <error: Cannot access memory at address 0x6>) at /__w/1/s/src/mono/mono/eglib/goutput.c:182
#17 0x0000f7b790a5d268 in mono_os_mutex_destroy (mutex=<optimized out>) at /__w/1/s/src/mono/mono/mini/../../mono/utils/mono-os-mutex.h:97
#18 mono_coop_mutex_destroy (mutex=<optimized out>) at /__w/1/s/src/mono/mono/mini/../../mono/utils/mono-coop-mutex.h:45
#19 ep_rt_spin_lock_free (spin_lock=<optimized out>) at /__w/1/s/src/mono/mono/mini/../../mono/eventpipe/ep-rt-mono.h:1212
#20 ep_rt_mono_runtime_provider_fini () at /__w/1/s/src/mono/mono/eventpipe/ep-rt-mono-runtime-provider.c:4668
#21 0x0000f7b790a59cc0 in ep_rt_mono_fini () at /__w/1/s/src/mono/mono/eventpipe/ep-rt-mono.c:856
#22 0x0000f7b790914db0 in mini_cleanup (domain=<optimized out>) at /__w/1/s/src/mono/mono/mini/mini-runtime.c:5263
#23 0x0000f7b790adc608 in ves_icall_System_Environment_Exit (result=42) at /__w/1/s/src/mono/mono/metadata/icall.c:6169
#24 0x0000f7b78fbe53e0 in ?? ()
#25 0x0000b03fd90c6300 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
[Inferior 1 (process 215) detached]

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0xf7b790ecf1f0):0xf7b790ecf1e0  e2 03 15 aa 00 7c 40 93 68 10 80 d2 01 00 00 d4  .....|@.h.......
0xf7b790ecf1f0  1f 04 40 31 e0 97 80 5a e0 ff ff 17 e0 03 16 aa  ..@1...Z........
0xf7b790ecf200  8c eb ff 97 d5 ff ff 17 e0 03 16 aa 45 eb ff 97  ............E...
0xf7b790ecf210  cb ff ff 17 f7 1b 00 f9 f2 d9 01 94 1f 20 03 d5  ............. ..

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at System.Environment:Exit <0x00007>
	  at Microsoft.DotNet.RemoteExecutor.Program:Main <0x009ff>
	  at <Module>:runtime_invoke_int_object <0x00087>
=================================================================
    System.Tests.PosixSignalRegistrationTests.SignalHandlerCalledForKnownSignals(s: SIGQUIT) [FAIL]
      Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Exit code was 134 but it should have been 42
      Stack Trace:
        /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs(242,0): at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose(Boolean disposing)
        /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs(55,0): at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose()
        /_/src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/PosixSignalRegistrationTests.Unix.cs(48,0): at System.Tests.PosixSignalRegistrationTests.SignalHandlerCalledForKnownSignals(PosixSignal s)
           at System.Object.InvokeStub_PosixSignalRegistrationTests.SignalHandlerCalledForKnownSignals(Object , Span`1 )
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(95,0): at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  Finished:    System.Runtime.InteropServices.Tests
=== TEST EXECUTION SUMMARY ===
   System.Runtime.InteropServices.Tests  Total: 2270, Errors: 0, Failed: 1, Skipped: 137, Time: 13.276s

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1017239
Error message validated: [System.Tests.PosixSignalRegistrationTests.SignalHandlerCalledForKnownSignals(s: SIGQUIT) [FAIL]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/22/2025 7:28:07 PM UTC

Report

Build Definition Test Pull Request
1017239 dotnet/runtime System.Tests.PosixSignalRegistrationTests.SignalHandlerCalledForKnownSignals #114668

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions