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-4808] lldb fails to examine a class static var upon EXC_BAD_ACCESS #4632

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

Comments

@swift-ci
Copy link

swift-ci commented May 5, 2017

Previous ID SR-4808
Radar None
Original Reporter sndive (JIRA User)
Type Bug

Attachment: Download

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

md5: 1a4c564bcf52e4003cfe103f6b03c2c0

Issue Description:

(lldb) p prevMsg
error: Couldn't materialize: couldn't get the value of runOnce: extracting data from value failed
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression

open class Util {
...
static var prevMsg = ""

open static func log(_ message: String, _ dc: DebugCategories, sourcePath: String = #file, line: Int = #line, function: String = #function, toServer: Bool = false) {

....
let annotatedMsg = "(versionString) (threadType) (baseName) (function)[(line)]: (message)"
if annotatedMsg == prevMsg {
^^^^^^^^^^^^^^^^^ bad accesses here and refuses to show the prevMsg contents

(lldb) p annotatedMsg
error: Couldn't materialize: couldn't get the value of runOnce: extracting data from value failed
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression

(lldb) p annotatedMsg
error: Couldn't materialize: couldn't get the value of runOnce: extracting data from value failed
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression
(lldb) po annotatedMsg
error: Couldn't materialize: couldn't get the value of runOnce: extracting data from value failed
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression
(lldb) p versionString
error: Couldn't materialize: couldn't get the value of runOnce: extracting data from value failed
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression

(lldb) expression --unwind-on-error=0 – prevMsg
error: Couldn't materialize: couldn't get the value of runOnce: extracting data from value failed
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression
(lldb) frame variable annotatedMsg
(String) annotatedMsg = "p2.0.64d other Latency.swift endSample()[26]: Sample: 0.155836999416351s"
(lldb) p annotatedMsg
error: Couldn't materialize: couldn't get the value of runOnce: extracting data from value failed
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression
(lldb) frame variable prevMsg
(String) prevMsg = "p2.0.64d main ConnectionManager.swift listContainers(_:ofOwnerUUID:completion🙂[840]: Listing 1 containers type Board owner AB3FC8AA-30BE-11E7-A479-0E3EB6C67884"

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 7, 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

1 participant