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-8100] Compiled code crashes with a EXC_BAD_INSTRUCTION #50633

Closed
Frizlab opened this issue Jun 25, 2018 · 2 comments
Closed

[SR-8100] Compiled code crashes with a EXC_BAD_INSTRUCTION #50633

Frizlab opened this issue Jun 25, 2018 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software non-optimized only Flag: An issue whose reproduction requires non-optimized compilation run-time crash Bug → crash: Swift code crashed during execution

Comments

@Frizlab
Copy link

Frizlab commented Jun 25, 2018

Previous ID SR-8100
Radar rdar://problem/41474524
Original Reporter @Frizlab
Type Bug
Status Resolved
Resolution Duplicate
Environment

Xcode 10.0 beta 2 (10L177m), with default toolchain.

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, NotOptimizedOnly, RunTimeCrash
Assignee None
Priority Medium

md5: 767f1f602acd3cd56a440f48615f9244

duplicates:

  • SR-7876 Runtime crash on 'type metadata accessor for %Typename%'

Issue Description:

The following code crashes when run (in debug mode):

import Foundation
enum LibXML2Node {
{{ case other(value: Data?, children: [LibXML2Node])}}
{{}}}
let a = [LibXML2Node]()

Making the enum indirect or replacing Data by a String or removing the first argument of the enum case fixes the crash.

The compiled program does not crash when compiled with optimisations (whole module, -O).

@belkadan
Copy link
Contributor

Re-entrantly trying to access the type metadata for LibXML2Node and [LibXML2Node]. @rjmccall?

@swift-ci create

@rjmccall
Copy link
Member

Probably the in-place initialization case that I haven't switched over yet, but I'll take a look.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 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. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software non-optimized only Flag: An issue whose reproduction requires non-optimized compilation run-time crash Bug → crash: Swift code crashed during execution
Projects
None yet
Development

No branches or pull requests

4 participants