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

[SR-15222] Access Violation when running unit test on Windows #57544

Closed
swift-ci opened this issue Sep 21, 2021 · 0 comments
Closed

[SR-15222] Access Violation when running unit test on Windows #57544

swift-ci opened this issue Sep 21, 2021 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. Windows Platform: Windows

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-15222
Radar None
Original Reporter luiz (JIRA User)
Type Bug
Status Closed
Resolution Duplicate
Environment

Windows 10 Pro Build 19042.1237

compnerd.org Swift version 5.4.3 (swift-5.4.3-RELEASE)
Target: x86_64-unknown-windows-msvc

Windows 10 SDK 10.0.19041.0

AMD Ryzen 9 5900X

Microsoft Visual Studio Community 2019
VisualStudio.16.Release/16.11.3+31702.278

Visual C++ 2019   00435-60000-00000-AA209
Microsoft Visual C++ 2019

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Visual Studio Tools for CMake   1.0
Visual Studio Tools for CMake

Visual Studio Tools for Unity   4.11.3.0
Visual Studio Tools for Unity
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug, Windows
Assignee None
Priority Medium

md5: 397615a60f849b7d76485e6fe95ad3fc

duplicates:

  • SR-14807 [Windows] Runtime crash in swift_getAssociatedTypeWitness

Issue Description:

Running unit tests with the following commit causes a runtime crash during unit testing under Windows with Swift 5.4.2:

LuizZak/Geometria@88bd45b

Running one test is enough to trigger the crash:

swift test --filter PerformanceTests

Quick WinDbg run shows the following exception:

(72c4.63b4): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
swiftCore!swift_getAssociatedConformanceWitness+0x15:
00007fff`81cddcf5 488b0401        mov     rax,qword ptr [rcx+rax] ds:00000000`00000018=????????????????

[0x0]   swiftCore!swift_getAssociatedConformanceWitness + 0x15   
[0x1]   GeometriaPackageTests!$s9Geometria7Vector2VA2A19DivisibleArithmeticRz10RealModule0E0RzlE2meoiyyACyxGz_AA9Matrix3x2VyxGtFZ + 0x5a2   
[0x2]   swiftCore!swift_getKeyPath + 0x47c9   
[0x3]   swiftCore!swift_getWitnessTable + 0xafa   
[0x4]   GeometriaPackageTests!$s14GeometriaTests015DirectionalRay2B0CMa + 0x597   
@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. Windows Platform: Windows
Projects
None yet
Development

No branches or pull requests

1 participant