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

Abort on mono in SwiftErrorHandling #102478

Closed
stephentoub opened this issue May 21, 2024 · 4 comments · Fixed by #102486
Closed

Abort on mono in SwiftErrorHandling #102478

stephentoub opened this issue May 21, 2024 · 4 comments · Fixed by #102486
Assignees
Labels
area-Codegen-Interpreter-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@stephentoub
Copy link
Member

stephentoub commented May 21, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=683209
Build error leg or test failing: Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd
Pull request: #102472

Error Message

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

{
  "ErrorMessage": "Got a SIGSEGV while executing native code",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=682138
Error message validated: [Got a SIGSEGV while executing native code]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/21/2024 5:19:59 AM UTC

Report

Build Definition Test Pull Request
685054 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102591
685021 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102180
684969 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102589
684888 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102295
684830 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102489
684779 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102364
684784 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102548
684676 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd
684639 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #101938
684588 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102410
684520 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102295
684523 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102364
682089 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #99818
684475 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102548
684108 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102490
684091 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102488
684439 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102499
684400 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102570
684391 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102547
684369 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102262
684352 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102410
684312 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #101796
2458102 dotnet-runtime x64.micro_mono.net9.0.Partition8.WorkItemExecution
684293 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #100056
684265 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102547
684229 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #101801
684250 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102489
684145 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102493
684020 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102548
683993 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102551
683982 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #101938
683960 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102499
683908 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102547
683890 dotnet/runtime System.Data.Odbc.Tests.WorkItemExecution
2457902 dotnet-runtime release.Partition8.WorkItemExecution
682617 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102487
683755 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102539
683730 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102410
683720 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102536
683715 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102364
682742 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102493
682643 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102488
682680 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102490
2457660 dotnet-runtime release.Partition8.WorkItemExecution
683209 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102520
683553 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102364
683262 dotnet/runtime System.Data.Odbc.Tests.WorkItemExecution
683433 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102499
683428 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102499
2457311 dotnet-runtime release.Partition8.WorkItemExecution
683154 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102180
683141 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102516
683123 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102475
683105 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102508
683085 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102424
683043 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102498
682938 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102248
682872 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102262
682671 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #101801
2457064 dotnet-runtime release.Partition8.WorkItemExecution
682649 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102489
682524 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102392
682414 dotnet/runtime System.Data.Odbc.Tests.WorkItemExecution
2456883 dotnet-runtime release.Partition8.WorkItemExecution
682357 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102475
682341 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102424
682269 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102424
682229 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102476
681910 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102180
682154 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102364
682138 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102472
681878 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102271
681751 dotnet/runtime Microsoft.Extensions.Primitives.Tests.WorkItemExecution
681854 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd
681837 dotnet/runtime System.Composition.Tests.WorkItemExecution
681841 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102364
681713 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102295
681514 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102366
681495 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd #102363
681132 dotnet/runtime System.Data.Odbc.Tests.WorkItemExecution
680976 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution #102440

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
36 81 81
@stephentoub stephentoub added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels May 21, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label May 21, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label May 21, 2024
@stephentoub stephentoub added area-System.Runtime.InteropServices and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels May 21, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

@vitek-karas
Copy link
Member

@kotlarmilos Could you please take a look, or assign to Jeremi/Matous as appropriate?

@kotlarmilos kotlarmilos self-assigned this May 21, 2024
@kotlarmilos kotlarmilos added area-Codegen-Interpreter-mono and removed untriaged New issue has not been triaged by the area owner area-System.Runtime.InteropServices labels May 21, 2024
Copy link
Contributor

Tagging subscribers to this area: @BrzVlad, @kotlarmilos
See info in area-owners.md if you want to be subscribed.

@carlossanlop
Copy link
Member

carlossanlop commented May 22, 2024

@dotnet/interop-contrib - I hit this in my PR but KnownBuildError did not catch link it to this. Maybe we could adjust the json message to something else? The SIGSEGV string is there, though I updated the build in the description and now it showed up in my PR.

=================================================================
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test failed. Trying to see if dump file was created in /cores since 5/21/2024 1:11:07 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /private/tmp/helix/working/ABD70955/w/AE83097C/e/Interop/Interop/../Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.sh
Xunit.Sdk.TrueException: 
=================================================================
	External Debugger Dump:
=================================================================
/private/tmp/helix/working/ABD70955/w/AE83097C/e/Interop/Interop/../Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.sh: line 441: 14293 Abort trap: 6           (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code:      1
Raw output file:      /tmp/helix/working/ABD70955/w/AE83097C/uploads/Swift/SwiftErrorHandling/SwiftErrorHandling/output.txt
Raw output:
BEGIN EXECUTION
/tmp/helix/working/ABD70955/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true SwiftErrorHandling.dll ''

=================================================================
	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:
=================================================================
	0x10937c135 - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : mono_dump_native_crash_info
	0x10931ae4e - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : mono_handle_native_crash
	0x10926a6ff - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : mono_sigsegv_signal_handler_debug
	0x7ff805128dfd - /usr/lib/system/libsystem_platform.dylib : _sigtramp
	0x108e3c000 - Unknown
	0x10938f116 - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : ves_pinvoke_method
	0x10938005f - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : mono_interp_exec_method
	0x10937d783 - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : interp_runtime_invoke
	0x1094c79d8 - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : mono_runtime_invoke_checked
	0x1094cf49b - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : mono_runtime_exec_main_checked
	0x1092cf782 - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : mono_jit_exec
	0x1092d2d8d - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : mono_main
	0x10935626d - /private/tmp/helix/working/ABD70955/p/libcoreclr.dylib : monovm_execute_assembly
	0x108cfd6cf - /private/tmp/helix/working/ABD70955/p/corerun : _ZL3runRK13configuration
	0x108cf9c62 - /private/tmp/helix/working/ABD70955/p/corerun : main
	0x115b2552e - Unknown

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x109357627):0x109357617  0d 00 48 8b 7d c8 48 89 87 10 01 00 00 49 8b 06  ..H.}.H......I..
0x109357627  0f b6 40 0a c1 e0 10 3d 00 00 01 00 74 2a 41 80  ..@....=....t*A.
0x109357637  7d 23 05 75 23 48 8b 7d b8 4c 89 f6 ba ff ff ff  }#.u#H.}.L......
0x109357647  ff 48 8b 45 c0 ff 90 c8 00 00 00 48 8b 7d c8 41  .H.E.......H.}.A

=================================================================
	Managed Stacktrace:
=================================================================
=================================================================
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test failed. Trying to see if dump file was created in /cores since 5/21/2024 1:11:07 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /private/tmp/helix/working/ABD70955/w/AE83097C/e/Interop/Interop/../Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.sh
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 146
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 128
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
   at Program.<<Main>$>g__TestExecutor72|25_73(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass25_0& )
13:11:32.597 Failed test: Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd
13:11:32.600 Running test: Interop/Swift/SwiftInvalidCallConv/SwiftInvalidCallConv/SwiftInvalidCallConv.cmd

@github-actions github-actions bot locked and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Codegen-Interpreter-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants