Skip to content

Exception unwinding broken with Xcode 15 linker #92297

@vcsjones

Description

@vcsjones

Recently I've started observing a strange behavior when attempting to run tests where first chance exceptions seem to be crashing the test runner.

For example, running: ./dotnet.sh test src/libraries/System.Formats.Cbor/tests

Produces:

The active test run was aborted. Reason: Test host process crashed : Unhandled exception. System.Formats.Cbor.CborContentException: The current CBOR map contains an incomplete key/value pair.
   at System.Formats.Cbor.CborReader.PeekStateCore() in /Users/vcsjones/Projects/runtime/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Reader/CborReader.PeekState.cs:line 82
   at System.Formats.Cbor.CborReader.SkipNextNode(Int32& depth) in /Users/vcsjones/Projects/runtime/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Reader/CborReader.SkipValue.cs:line 70
   at System.Formats.Cbor.CborReader.SkipToAncestor(Int32 depth, Boolean disableConformanceModeChecks) in /Users/vcsjones/Projects/runtime/src/libraries/System.Formats.Cbor/src/System/Formats/Cbor/Reader/CborReader.SkipValue.cs:line 51

I don't see any reason this exception should crash the test runner.

It's not just in S.F.Cbor. For Tar:

 Skipped System.Formats.Tar.Tests.TarWriter_WriteEntry_File_Tests.CreateEntryFromFileOwnedByNonExistentUser [1 ms]
The active test run was aborted. Reason: Test host process crashed : Unhandled exception. Unhandled exception. System.IO.IOException: The file '/var/folders/gc/qfr6cnsj3p1fc1944dkn1t6h0000gn/T/33hxgrfd.1wv/file.tar' already exists.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError) in /Users/vcsjones/Projects/runtime/src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs:line 16

I have my suspicion that the issue is due to upgrade Xcode to Xcode 15 (However I am on macOS 13 still).

Currently, I can't run any tests.

./dotnet.sh --info
.NET SDK:
 Version:   8.0.100-rc.1.23415.11
 Commit:    12f1505f6e

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  13.5
 OS Platform: Darwin
 RID:         osx-arm64
 Base Path:   /Users/vcsjones/Projects/runtime/.dotnet/sdk/8.0.100-rc.1.23415.11/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions