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-7794] Swift 4.2 crash when dumping nested value #50333

Open
stephencelis opened this issue May 28, 2018 · 3 comments
Open

[SR-7794] Swift 4.2 crash when dumping nested value #50333

stephencelis opened this issue May 28, 2018 · 3 comments
Labels
access control Feature → modifiers: Access control and access levels 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 regression run-time crash Bug → crash: Swift code crashed during execution swift 4.2

Comments

@stephencelis
Copy link
Contributor

Previous ID SR-7794
Radar rdar://problem/40607819
Original Reporter @stephencelis
Type Bug
Environment

Swift 4.2 Xcode Snapshot, May 27, 2018

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, 4.2Regression, RunTimeCrash
Assignee None
Priority Medium

md5: 342e60e9a0d2ce65428081bbe444671b

Issue Description:

The following works in a Swift 4.1 playground but crashes in a Swift 4.2 playground.

func foo() {
  struct Foo { let bar: Int }
  let f = Foo(bar: 1)
  dump(f)
}
foo()
* thread #​1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x30)
    frame #​0: 0x000000010129d259 libswiftCore.dylib`outlined init with take of Any + 25
libswiftCore.dylib`outlined init with take of Any:
->  0x10129d259 <+25>: callq  *0x30(%rcx)
    0x10129d25c <+28>: movq   %rbx, %rax
    0x10129d25f <+31>: popq   %rbx
    0x10129d260 <+32>: retq   
@weissi
Copy link
Member

weissi commented May 29, 2018

@swift-ci create

@belkadan
Copy link
Contributor

Seems to work outside of playgrounds with a recently-built compiler, so either it's regressed very recently or it's a playground-specific bug.

@jckarter
Copy link
Member

I grabbed a master snapshot from swift.org and the playground still crashes. Like Jordan, I don't see any problem from the command line.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added regression swift 4.2 access control Feature → modifiers: Access control and access levels and removed 4.2 regression labels Nov 19, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
access control Feature → modifiers: Access control and access levels 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 regression run-time crash Bug → crash: Swift code crashed during execution swift 4.2
Projects
None yet
Development

No branches or pull requests

5 participants