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-3874] lldb-rpc-server crash #4640

Open
swift-ci opened this issue Feb 6, 2017 · 5 comments
Open

[SR-3874] lldb-rpc-server crash #4640

swift-ci opened this issue Feb 6, 2017 · 5 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

swift-ci commented Feb 6, 2017

Previous ID SR-3874
Radar None
Original Reporter aaroncrespo (JIRA User)
Type Bug

Attachment: Download

Environment

Xcode 8.3 beta Swift 3.0 - 3.1
Xcode 8.2 Swift 3.0 - 3.0.2
Xcode 8.1 Swift 3.0 - 3.0.1

Additional Detail from JIRA
Votes 1
Component/s LLDB for Swift
Labels Bug
Assignee None
Priority Medium

md5: 259c048c2b03b60cf492f89b93e221a8

Issue Description:

Project Is a Framework project that links to some Prebuilt Frameworks.

Using po in LLDB from breakpoints in XCTest nearly always results in crashes

fr v sometimes prints useful information. Almost always there is filled in memory address information in the Variables View.

Swift

@swift-ci
Copy link
Author

swift-ci commented Feb 6, 2017

Comment by aaron crespo (JIRA)

I can't include the projects but I can describe how they are setup.

Create Framework project, SUPPORTED_PLATFORMS: [watchsimulator watchOS iphonesimulator phones appletvsimulator appletvos]
Using carthage add some Library dependencies (that are swift) (for example RxSwift, Quick, Nimble)
Link them according to carthage Documentation
$ carthage bootstrap make sure to use binaries.

Create a test target with a breakpoint.

The debugger should show the behavior when entered.

This might happen with SwiftPM when using artifacts produced by its builds.

@belkadan
Copy link

belkadan commented Feb 6, 2017

These are the usual "crashing in deserialization" bugs when we don't have sensible build settings, or where one of the frameworks appears to have changed.

@swift-ci
Copy link
Author

swift-ci commented Oct 5, 2019

Comment by stephen (JIRA)

@belkadan could you expand on your sensible build settings comment? I'm getting the same issue here with a large project with a number of carthage dependencies. You also mention in similar issue thread that it's possible to enable logging for lldb. Can you point me at anything that explains how to do this?

@swift-ci
Copy link
Author

swift-ci commented Oct 6, 2019

Comment by stephen (JIRA)

I've found the issue that was causing this for me. The pods subproject debug-information-format had got changed to "DWARF with dSYM" when the main project was on "DWARF". Changing both to DWARF fixed it.

@belkadan
Copy link

belkadan commented Oct 7, 2019

Sorry for being unclear. The build settings comment was a reference to a vague collection of problems that are sometimes the developer's fault and sometimes the compiler's fault, usually where certain framework headers are found both in the built framework and in the source directory, or where the user is writing custom module maps to access non-modular content but LLDB fails to pick up those custom module maps.

I am a little surprised that this is causing crashes rather than just failures to load information.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

2 participants