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-6784] LLDB shows that a dictionary variable has 4,912,930,248 values in Xcode Variable View when using Swift 4.1 Development Snapshot toolchain #4380

Closed
pitiphong-p opened this issue Jan 18, 2018 · 1 comment
Labels
bug Something isn't working LLDB for Swift

Comments

@pitiphong-p
Copy link

Previous ID SR-6784
Radar rdar://36619561
Original Reporter @pitiphong-p
Type Bug
Status Closed
Resolution Done

Attachment: Download

Environment

Xcode 9.2 Swift 4.1 Development Snapshot 2018-01-12 and 2018-01-15

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

md5: 5fc995aa0b4565da6ac91acfc4446121

Issue Description:

I have an open source project https://github.com/omise/omise-swift/tree/swift-4.1 on GitHub and I tried to test it with Swift 4.1 Development Snapshot and found that LLDB shows some weird Dictionary variable value in some case. (You can see in the screenshot attached with this bug)

Before stepping over the declaring variable expression, lldb shows that it has 0 values. After stepping over it, it shows that that dictionary has 4,912,930,248 values in it.

I tried to create a small sample project for filing this bug after I found it. However lldb has a difference behavior but it's also an incorrect one. This time it first shows that that dictionary has over 4 billions values in it but after stepping over it, it shows that it has 0 values.

I believe that both cases are bugs since I compare them with Swift 4.0 and it worked OK.

Please have a look at this bug and feel free to ask me if you want more information.

PS. If you want to test with my open-sourced repository, you can pull that repo, check out branch `swift-4.1`, put a breakpoint at Tool.swift:242 in decodeJSONDictionary() method and run `testUpdateCharge()` test case in ChargesOperationFixtureTests file.

@pitiphong-p
Copy link
Author

It works correctly in Swift 4.2 that comes with Xcode 10 beta 1

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 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 Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

1 participant