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-7013] Bad Access when obj is actually populated - Just after initialization #49561

Open
swift-ci opened this issue Feb 16, 2018 · 1 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 regression run-time crash Bug → crash: Swift code crashed during execution swift 4.0

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-7013
Radar rdar://problem/37606836
Original Reporter devjamie@gmail.com (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 9 / Swift 4 / High Sierra

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

md5: ac8553b6bc57084b892fa2c01927a11c

Issue Description:

Xcode 9 / Swift 4 / High Sierra

Note: this code worked fine in swift 3 and no code changes were made - updated to High Sierra / Xcode 9 and Swift 4

Ran the code and it started breaking all over the place with Bad Access

I ran with Zombies enabled but didn't get any

Only fix is intermittently working -> change the optimization to -02 Release builds do not work / fastest...

One example is attached. I initialize a variable with some values. In the next line I try to access the values. Object deinit is never called. Yet I get bad access.

This code is after some complex code that runs fine. Not sure if that's the problem??

Seems there are others having this issue. Check out the linked SO posts from my SO Post:

https://stackoverflow.com/questions/48795609/i-am-getting-exc-bad-access-code-1-address-0x30-bad-access-even-when-object-e

Unsure how to move forward with my project. I may have to find a different Mac and download the Swift 3.2 code and go back down in OS / Xcode / and Swift

@belkadan
Copy link
Contributor

I don't think we're going to be able to do any investigation here without a self-contained project. However, it is possible we might have fixed the issue in Swift 4.1 already. You can download a pre-release snapshot from https://swift.org/download and try it out if you want.

@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
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 regression run-time crash Bug → crash: Swift code crashed during execution swift 4.0
Projects
None yet
Development

No branches or pull requests

3 participants