Skip to content

[mono][osx] Swift-interop runtime tests crash/time-out after finishing #121983

@matouskozak

Description

@matouskozak

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1212876
Build error leg or test failing: Interop/Swift/SwiftRetAbiStress/SwiftRetAbiStress/SwiftRetAbiStress.cmd
Pull request: #120589

This failure started happening when we changed the AzDO build images from macOS-13 to macOS-15.

Crash log:

Running SwiftCallbackFunc98: OK
Running SwiftCallbackFunc99: OK

=================================================================
	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:
=================================================================
	0x1088d8533 - /private/tmp/helix/working/B58008FB/p/libcoreclr.dylib : mono_dump_native_crash_info
	0x10887aa6e - /private/tmp/helix/working/B58008FB/p/libcoreclr.dylib : mono_handle_native_crash
	0x1087d86ef - /private/tmp/helix/working/B58008FB/p/libcoreclr.dylib : mono_sigsegv_signal_handler_debug
	0x7ff811d63e1d - /usr/lib/system/libsystem_platform.dylib : _sigtramp
	0xb7bd9a40 - Unknown
	0x108a013df - /private/tmp/helix/working/B58008FB/p/libcoreclr.dylib : mono_unhandled_exception_internal
	0x10883800f - /private/tmp/helix/working/B58008FB/p/libcoreclr.dylib : mono_jit_exec
	0x10883a851 - /private/tmp/helix/working/B58008FB/p/libcoreclr.dylib : mono_main
	0x1088b2c05 - /private/tmp/helix/working/B58008FB/p/libcoreclr.dylib : monovm_execute_assembly
	0x108329880 - /private/tmp/helix/working/B58008FB/p/corerun : _ZL3runRK13configuration
	0x1083255fa - /private/tmp/helix/working/B58008FB/p/corerun : main
	0x7ff81199e2cd - /usr/lib/dyld : start

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x108a01450):0x108a01440  00 48 89 45 d0 e8 36 ce f8 ff 49 8b 0e 48 8b 09  .H.E..6...I..H..
0x108a01450  48 8b 09 48 8d 1d 46 85 16 00 48 3b 8b f8 00 00  H..H..F...H;....
0x108a01460  00 0f 84 e8 01 00 00 48 89 45 88 4c 8b 25 56 42  .......H.E.L.%VB
0x108a01470  15 00 4d 85 e4 0f 84 34 01 00 00 48 c7 45 98 00  ..M....4...H.E..

=================================================================
	Managed Stacktrace:
=================================================================
* Assertion: should not be reached at /Users/runner/work/1/s/src/mono/mono/mini/mini-exceptions.c:488
Expected: 100
Actual: 0
END EXECUTION - FAILED
Test failed. Trying to see if dump file was created in /cores since 11/26/2025 3:18:17 AM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /private/tmp/helix/working/B58008FB/w/B4BF097F/e/Interop/Interop/../Swift/SwiftCallbackAbiStress/SwiftCallbackAbiStress/SwiftCallbackAbiStress.sh
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 142
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
   at Program.<<Main>$>g__TestExecutor73|0_74(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
03:18:18.242 Failed test: Interop/Swift/SwiftCallbackAbiStress/SwiftCallbackAbiStress/SwiftCallbackAbiStress.cmd

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": [
       "Running SwiftCallbackFunc99: OK",
       "Got a SIGSEGV while executing native code",
       "src/mono/mono/mini/mini-exceptions.c:488"
   ],
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1212876
Error message validated: [Running SwiftCallbackFunc99: OK Got a SIGSEGV while executing native code src/mono/mono/mini/mini-exceptions.c:488]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/26/2025 10:38:22 AM UTC

Report

Build Definition Test Pull Request
1212876 dotnet/runtime Interop/Swift/SwiftRetAbiStress/SwiftRetAbiStress/SwiftRetAbiStress.cmd #120589

Summary

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

Report

Build Definition Test Pull Request
1212876 dotnet/runtime Interop/Swift/SwiftRetAbiStress/SwiftRetAbiStress/SwiftRetAbiStress.cmd #120589

Summary

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarch-x64area-Codegen-JIT-monoblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-mac-os-xmacOS aka OSXuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions