Repository navigation
Closed
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabarea-VM-meta-monoblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'source-generatorIndicates an issue with a source generator feature
Milestone
Description
System.Text.RegularExpressions.Tests native crash on Build Libraries Test Run release mono linux arm64 Debug on unrelated #81066 .
Details
Starting: System.Text.RegularExpressions.Tests (parallel test collections = on, max threads = 2)
=================================================================
Native Crash Reporting
=================================================================
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.
=================================================================
=================================================================
Native stacktrace:
=================================================================
0xff736e1a68e8 - Unknown
=================================================================
External Debugger Dump:
=================================================================
[New LWP 23]
[New LWP 24]
[New LWP 25]
[New LWP 26]
[New LWP 29]
[New LWP 30]
[New LWP 31]
[New LWP 32]
[New LWP 33]
[New LWP 34]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
futex_wait_cancelable (private=0, expected=0, futex_word=0xab99e8177a2c) at ../sysdeps/nptl/futex-internal.h:186
186 ../sysdeps/nptl/futex-internal.h: No such file or directory.
Id Target Id Frame
* 1 Thread 0xff736e844010 (LWP 22) "dotnet" futex_wait_cancelable (private=0, expected=0, futex_word=0xab99e8177a2c) at ../sysdeps/nptl/futex-internal.h:186
2 Thread 0xff736d3ff1b0 (LWP 23) "SGen worker" futex_wait_cancelable (private=0, expected=0, futex_word=0xff736e265930 <work_cond+40>) at ../sysdeps/nptl/futex-internal.h:186
3 Thread 0xff736b81a1b0 (LWP 24) ".NET EventPipe" 0x0000ff736e488ef4 in __GI___poll (fds=0xff7364003b20, nfds=1, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
4 Thread 0xff736b6191b0 (LWP 25) "Finalizer" futex_abstimed_wait_cancelable (private=0, abstime=0x0, clockid=0, expected=0, futex_word=0xff736e2569f8 <finalizer_sem>) at ../sysdeps/nptl/futex-internal.h:323
5 Thread 0xff73629d11b0 (LWP 26) ".NET SigHandler" __libc_read (nbytes=1, buf=0xff73629d0977, fd=<optimized out>) at ../sysdeps/unix/sysv/linux/read.c:26
6 Thread 0xff73625fb1b0 (LWP 29) ".NET Long Runni" futex_wait_cancelable (private=0, expected=0, futex_word=0xff73500683d8) at ../sysdeps/nptl/futex-internal.h:186
7 Thread 0xff73623fa1b0 (LWP 30) ".NET TP Worker" futex_abstimed_wait_cancelable (private=0, abstime=0xff73623f90e8, clockid=<optimized out>, expected=0, futex_word=0xff73540236d8) at ../sysdeps/nptl/futex-internal.h:323
8 Thread 0xff73620b71b0 (LWP 31) ".NET TP Gate" futex_abstimed_wait_cancelable (private=0, abstime=0xff73620b62a8, clockid=<optimized out>, expected=0, futex_word=0xff7348022dc8) at ../sysdeps/nptl/futex-internal.h:323
9 Thread 0xff73620561b0 (LWP 32) ".NET TP Worker" futex_abstimed_wait_cancelable (private=0, abstime=0xff7362055320, clockid=<optimized out>, expected=0, futex_word=0xff7362055398) at ../sysdeps/nptl/futex-internal.h:323
10 Thread 0xff7361e251b0 (LWP 33) ".NET Long Runni" mono_arch_flush_icache (code=0xff7360f1da70 "\375{\272\251\375\003", size=396) at /__w/1/s/src/mono/mono/mini/mini-arm64.c:2030
11 Thread 0xff7361c241b0 (LWP 34) ".NET Long Runni" 0x0000ff736e46477c in __GI___wait4 (pid=<optimized out>, stat_loc=0xff7361c1d0e0, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
Thread 11 (Thread 0xff7361c241b0 (LWP 34) ".NET Long Runni"):
#0 0x0000ff736e46477c in __GI___wait4 (pid=<optimized out>, stat_loc=0xff7361c1d0e0, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1 0x0000ff736e1a69e8 in dump_native_stacktrace (signal=<optimized out>, mctx=<optimized out>) at /__w/1/s/src/mono/mono/mini/mini-posix.c:843
#2 mono_dump_native_crash_info (signal=<optimized out>, mctx=0xff7361c1db40, info=<optimized out>) at /__w/1/s/src/mono/mono/mini/mini-posix.c:870
#3 0x0000ff736e1655c0 in mono_handle_native_crash (signal=0xff736df63191 "SIGSEGV", mctx=0xff7361c1db40, info=0xff7361c1dea0) at /__w/1/s/src/mono/mono/mini/mini-exceptions.c:3005
#4 0x0000ff736e0ceb90 in mono_sigsegv_signal_handler_debug (_dummy=11, _info=0xff7361c1dea0, context=0xff7361c1df20, debug_fault_addr=0x0) at /__w/1/s/src/mono/mono/mini/mini-runtime.c:3749
#5 <signal handler called>
#6 0x0000000000000000 in ?? ()
#7 0x0000ff7360f74e68 in ?? ()
#8 0x0000ff736d77ad68 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 10 (Thread 0xff7361e251b0 (LWP 33) ".NET Long Runni"):
#0 mono_arch_flush_icache (code=0xff7360f1da70 "\375{\272\251\375\003", size=396) at /__w/1/s/src/mono/mono/mini/mini-arm64.c:2030
#1 0x0000ff736e0c5790 in mono_codegen (cfg=0xff73408c0e10) at /__w/1/s/src/mono/mono/mini/mini.c:2212
#2 0x0000ff736e0c7df4 in mini_method_compile (method=<optimized out>, opts=374417919, flags=JIT_FLAG_RUN_CCTORS, parts=0, aot_method_index=-1) at /__w/1/s/src/mono/mono/mini/mini.c:3935
#3 0x0000ff736e0c912c in mono_jit_compile_method_inner (method=0xff734096fcc0, opt=396, error=0xff7361e20070) at /__w/1/s/src/mono/mono/mini/mini.c:4129
#4 0x0000ff736e0cdcb0 in mono_jit_compile_method_with_opt (method=0xff734096fcc0, opt=374417919, jit_only=0, error=<optimized out>) at /__w/1/s/src/mono/mono/mini/mini-runtime.c:2709
#5 jit_compile_method_with_opt_cb (arg=<optimized out>) at /__w/1/s/src/mono/mono/mini/mini-runtime.c:2764
#6 jit_compile_method_with_opt (params=<optimized out>) at /__w/1/s/src/mono/mono/mini/mini-runtime.c:2780
#7 0x0000ff736e0cd0dc in mono_jit_compile_method (method=<optimized out>, error=0xff7361e20070) at /__w/1/s/src/mono/mono/mini/mini-runtime.c:2799
#8 0x0000ff736e167a2c in common_call_trampoline (regs=0xff7361e20120, code=0xff7360f1cd04 "\001\034", m=0xff734096fcc0, vt=0xff73409531d0, vtable_slot=<optimized out>, error=0xff7361e20070) at /__w/1/s/src/mono/mono/mini/mini-trampolines.c:618
#9 0x0000ff736e16879c in mono_vcall_trampoline (regs=0xff7361e20120, code=0xff7360f1cd04 "\001\034", slot=-15, tramp=<optimized out>) at /__w/1/s/src/mono/mono/mini/mini-trampolines.c:840
#10 0x0000ff736dbf5504 in ?? ()
#11 0x0000ff73409531d0 in ?? ()
#12 0x0000000000000003 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 9 (Thread 0xff73620561b0 (LWP 32) ".NET TP Worker"):
#0 futex_abstimed_wait_cancelable (private=0, abstime=0xff7362055320, clockid=<optimized out>, expected=0, futex_word=0xff7362055398) at ../sysdeps/nptl/futex-internal.h:323
#1 __pthread_cond_wait_common (abstime=0xff7362055320, clockid=<optimized out>, mutex=0xff73500a8520, cond=0xff7362055370) at pthread_cond_wait.c:520
#2 __pthread_cond_timedwait (cond=0xff7362055370, mutex=0xff73500a8520, abstime=0xff7362055320) at pthread_cond_wait.c:656
#3 0x0000ff736e061d4c in mono_os_cond_timedwait (cond=0xff7362055370, mutex=0xff73500a8520, timeout_ms=20000) at /__w/1/s/src/mono/mono/utils/mono-os-mutex.c:75
#4 0x0000ff736e066e6c in mono_coop_cond_timedwait (cond=0xff7362055370, mutex=<optimized out>, timeout_ms=20000) at /__w/1/s/src/mono/mono/mini/../../mono/utils/mono-coop-mutex.h:103
#5 mono_lifo_semaphore_timed_wait (semaphore=0xff73500a8520, timeout_ms=20000) at /__w/1/s/src/mono/mono/utils/lifo-semaphore.c:48
#6 0x0000ff7361e4f340 in ?? ()
#7 0x0000ff734c002180 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 8 (Thread 0xff73620b71b0 (LWP 31) ".NET TP Gate"):
#0 futex_abstimed_wait_cancelable (private=0, abstime=0xff73620b62a8, clockid=<optimized out>, expected=0, futex_word=0xff7348022dc8) at ../sysdeps/nptl/futex-internal.h:323
#1 __pthread_cond_wait_common (abstime=0xff73620b62a8, clockid=<optimized out>, mutex=0xff7348022d70, cond=0xff7348022da0) at pthread_cond_wait.c:520
#2 __pthread_cond_timedwait (cond=0xff7348022da0, mutex=0xff7348022d70, abstime=0xff73620b62a8) at pthread_cond_wait.c:656
#3 0x0000ff736b25ac4c in SystemNative_LowLevelMonitor_TimedWait (monitor=0xff7348022d70, timeoutMilliseconds=500) at /__w/1/s/src/native/libs/System.Native/pal_threading.c:195
#4 0x0000ff736205d0b4 in ?? ()
#5 0x0000ff7362607f10 in ?? ()
#6 0x0000ff73620b68e0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 7 (Thread 0xff73623fa1b0 (LWP 30) ".NET TP Worker"):
#0 futex_abstimed_wait_cancelable (private=0, abstime=0xff73623f90e8, clockid=<optimized out>, expected=0, futex_word=0xff73540236d8) at ../sysdeps/nptl/futex-internal.h:323
#1 __pthread_cond_wait_common (abstime=0xff73623f90e8, clockid=<optimized out>, mutex=0xff7354023680, cond=0xff73540236b0) at pthread_cond_wait.c:520
#2 __pthread_cond_timedwait (cond=0xff73540236b0, mutex=0xff7354023680, abstime=0xff73623f90e8) at pthread_cond_wait.c:656
#3 0x0000ff736b25ac4c in SystemNative_LowLevelMonitor_TimedWait (monitor=0xff7354023680, timeoutMilliseconds=12000) at /__w/1/s/src/native/libs/System.Native/pal_threading.c:195
#4 0x0000ff736205d0b4 in ?? ()
#5 0x0000ff7362607f10 in ?? ()
#6 0x0000ff73623f98e0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 6 (Thread 0xff73625fb1b0 (LWP 29) ".NET Long Runni"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0xff73500683d8) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0xff7350068380, cond=0xff73500683b0) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0xff73500683b0, mutex=0xff7350068380) at pthread_cond_wait.c:638
#3 0x0000ff736b25aae8 in SystemNative_LowLevelMonitor_Wait (monitor=0xff7350068380) at /__w/1/s/src/native/libs/System.Native/pal_threading.c:155
#4 0x0000ff73626084d4 in ?? ()
#5 0x0000ff736d610bd8 in ?? ()
#6 0x0000ff736d6111c8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 5 (Thread 0xff73629d11b0 (LWP 26) ".NET SigHandler"):
#0 __libc_read (nbytes=1, buf=0xff73629d0977, fd=<optimized out>) at ../sysdeps/unix/sysv/linux/read.c:26
#1 __libc_read (fd=<optimized out>, buf=0xff73629d0977, nbytes=1) at ../sysdeps/unix/sysv/linux/read.c:24
#2 0x0000ff736b25a19c in SignalHandlerLoop (arg=0xab99e83d8fd0) at /__w/1/s/src/native/libs/System.Native/pal_signal.c:331
#3 0x0000ff736e7f7648 in start_thread (arg=0xff73629d0ab0) at pthread_create.c:477
#4 0x0000ff736e492c1c in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
Thread 4 (Thread 0xff736b6191b0 (LWP 25) "Finalizer"):
#0 futex_abstimed_wait_cancelable (private=0, abstime=0x0, clockid=0, expected=0, futex_word=0xff736e2569f8 <finalizer_sem>) at ../sysdeps/nptl/futex-internal.h:323
#1 do_futex_wait (sem=sem@entry=0xff736e2569f8 <finalizer_sem>, abstime=0x0, clockid=0) at sem_waitcommon.c:112
#2 0x0000ff736e80133c in __new_sem_wait_slow (sem=0xff736e2569f8 <finalizer_sem>, abstime=0x0, clockid=0) at sem_waitcommon.c:184
#3 0x0000ff736e03c874 in mono_os_sem_wait (sem=<optimized out>, flags=MONO_SEM_FLAGS_ALERTABLE) at /__w/1/s/src/mono/mono/mini/../utils/mono-os-semaphore.h:204
#4 mono_coop_sem_wait (sem=<optimized out>, flags=MONO_SEM_FLAGS_ALERTABLE) at /__w/1/s/src/mono/mono/mini/../../mono/utils/mono-coop-semaphore.h:41
#5 finalizer_thread (unused=<optimized out>) at /__w/1/s/src/mono/mono/metadata/gc.c:891
#6 0x0000ff736e016ce4 in start_wrapper_internal (start_info=0x0, stack_ptr=<optimized out>) at /__w/1/s/src/mono/mono/metadata/threads.c:1202
#7 0x0000ff736e016b90 in start_wrapper (data=0xab99e7dcc130) at /__w/1/s/src/mono/mono/metadata/threads.c:1264
#8 0x0000ff736e7f7648 in start_thread (arg=0xff736b618ab0) at pthread_create.c:477
#9 0x0000ff736e492c1c in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
Thread 3 (Thread 0xff736b81a1b0 (LWP 24) ".NET EventPipe"):
#0 0x0000ff736e488ef4 in __GI___poll (fds=0xff7364003b20, nfds=1, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
#1 0x0000ff736e233c54 in ipc_poll_fds (fds=<optimized out>, nfds=1, timeout=4294967295) at /__w/1/s/src/native/eventpipe/ds-ipc-pal-socket.c:470
#2 ds_ipc_poll (poll_handles_data=0xff7364003310, poll_handles_data_len=1, timeout_ms=4294967295, callback=0xff736e233004 <server_warning_callback>) at /__w/1/s/src/native/eventpipe/ds-ipc-pal-socket.c:1096
#3 0x0000ff736e231200 in ds_ipc_stream_factory_get_next_available_stream (callback=0xff736e233004 <server_warning_callback>) at /__w/1/s/src/native/eventpipe/ds-ipc.c:395
#4 0x0000ff736e22fa78 in server_thread (data=<optimized out>) at /__w/1/s/src/native/eventpipe/ds-server.c:129
#5 0x0000ff736e232fe4 in ep_rt_thread_mono_start_func (data=0xab99e7da4bb0) at /__w/1/s/src/mono/mono/mini/../eventpipe/ep-rt-mono.h:1332
#6 0x0000ff736e7f7648 in start_thread (arg=0xff736b819ab0) at pthread_create.c:477
#7 0x0000ff736e492c1c in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
Thread 2 (Thread 0xff736d3ff1b0 (LWP 23) "SGen worker"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0xff736e265930 <work_cond+40>) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0xff736e2658d8 <lock>, cond=0xff736e265908 <work_cond>) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0xff736e265908 <work_cond>, mutex=0xff736e2658d8 <lock>) at pthread_cond_wait.c:638
#3 0x0000ff736e0b6b70 in mono_os_cond_wait (cond=0xff736e265930 <work_cond+40>, mutex=<optimized out>) at /__w/1/s/src/mono/mono/mini/../../mono/utils/mono-os-mutex.h:219
#4 get_work (worker_index=<optimized out>, work_context=<optimized out>, do_idle=<optimized out>, job=<optimized out>) at /__w/1/s/src/mono/mono/sgen/sgen-thread-pool.c:167
#5 thread_func (data=0x0) at /__w/1/s/src/mono/mono/sgen/sgen-thread-pool.c:198
#6 0x0000ff736e7f7648 in start_thread (arg=0xff736d3feab0) at pthread_create.c:477
#7 0x0000ff736e492c1c in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
Thread 1 (Thread 0xff736e844010 (LWP 22) "dotnet"):
#0 futex_wait_cancelable (private=0, expected=0, futex_word=0xab99e8177a2c) at ../sysdeps/nptl/futex-internal.h:186
#1 __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0xab99e81779d0, cond=0xab99e8177a00) at pthread_cond_wait.c:508
#2 __pthread_cond_wait (cond=0xab99e8177a00, mutex=0xab99e81779d0) at pthread_cond_wait.c:638
#3 0x0000ff736b25aae8 in SystemNative_LowLevelMonitor_Wait (monitor=0xab99e81779d0) at /__w/1/s/src/native/libs/System.Native/pal_threading.c:155
#4 0x0000ff73626084d4 in ?? ()
#5 0x0000ff736d60c620 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
[Inferior 1 (process 22) detached]
=================================================================
Basic Fault Address Reporting
=================================================================
instruction pointer is NULL, skip dumping
=================================================================
Managed Stacktrace:
=================================================================
=================================================================
./RunTests.sh: line 168: 22 Aborted (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Text.RegularExpressions.Tests.runtimeconfig.json --depsfile System.Text.RegularExpressions.Tests.deps.json xunit.console.dll System.Text.RegularExpressions.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
{
"ErrorMessage": "futex-internal.h: No such file or directory.",
"BuildRetry": false
}Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 2 | 11 | 110 |
Known issue validation
Build: 🔎
Result validation:
Validation performed at: 6/28/2023 10:04:05 PM UTC
Metadata
Metadata
Assignees
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabarea-VM-meta-monoblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'source-generatorIndicates an issue with a source generator feature
Activity
carlossanlop commentedon Jan 25, 2023
I also hit this in an unrelated PR: #81070
The shared failure message seems to be:
It's affecting at least 3 Generator Roslyn tests:
Libraries Test Run release mono linux arm64 DebugMicrosoft.Extensions.Logging.Generators.Roslyn3.11.Tests
Callstack
System.Text.Json.SourceGeneration.Roslyn4.4.Tests
Callstack
Microsoft.Extensions.Logging.Generators.Roslyn4.0.Tests
Callstack
[-]`System.Text.RegularExpressions.Tests` native crash on mono/linux/arm64[/-][+]Roslyn source generator crash on mono/linux/arm64[/+]carlossanlop commentedon Feb 1, 2023
This issue has heavy impact in many PRs. Looking for an area owner.
steveisok commentedon Feb 7, 2023
/cc @SamMonoRT
20 remaining items
[mono] Fix a race in gparam construction.
[mono][jit] Add some barriers to the delegate invoke code.
[mono] Fix a race in gparam construction. (#83688)
[mono][jit] Add some barriers to the delegate invoke code. (#83673)
lambdageek commentedon Mar 21, 2023
We think
81123#83673 addresses this issue. Keeping the issue open a little bit to see if the runfo numbers go downThe numbers on March 21 2023 before the change were:
carlossanlop commentedon Mar 21, 2023
Thanks @lambdageek and @vargaz.
Once we confirm that fixes the issue, please consider backporting it to 7.0. We are seeing the failure happen there too. [Pending verifying benchmark results as @lambdageek told me offline].
vargaz commentedon Mar 21, 2023
#83688 is probably needed too.
lambdageek commentedon Mar 22, 2023
lambdageek commentedon Mar 22, 2023
lambdageek commentedon Mar 29, 2023
Most of the recent hits are either on the 7.0 branch, or are unrelated false positives (the query catches too many other native crashes)
There is one hit from #84004 from System.Security.Cryptography.Tests.WorkItemExecution that seems real:
vargaz commentedon Mar 29, 2023
It still seems to crash, but the crashes are less frequent.
hoyosjs commentedon Jul 21, 2023
The XML test lately failing are showing something like:
with reported native stack:
and managed stack:
These are fixed by #88892
SamMonoRT commentedon Aug 3, 2023
These two PRs - #88892 and #89231 should have fixed the issue. If you still encounter it, please re-open.