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-7118] REPL :type lookup of entire Swift module aborts (due to assertion failure) #4376

Closed
benrimmington opened this issue Mar 5, 2018 · 2 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@benrimmington
Copy link

Previous ID SR-7118
Radar rdar://problem/38142245
Original Reporter @benrimmington
Type Bug
Status Closed
Resolution Done
Environment
  • macOS 10.13.3 (17D102)

  • Xcode 9.2 (9C40b)

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

md5: 418fe1c3b7cd947817840c09abbde275

Issue Description:

The :type lookup Swift command in the lldb REPL fails (after printing approximately a thousand lines).

I've tested with the latest snapshots dated March 3, 2018.

$ xcrun --toolchain org.swift.3020180304a swift
Welcome to Apple Swift version 4.2-dev (LLVM c4ec2ab808, Clang af436f313e, Swift 26c08fb346). Type :help for assistance.
  1> :type lookup Swift

Assertion failed: (signature || !origType->hasTypeParameter()), function initSwiftType, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/include/swift/SIL/AbstractionPattern.h, line 344.
Abort trap: 6
$ xcrun --toolchain org.swift.4120180303a swift
Welcome to Apple Swift version 4.1-dev (LLVM 1c8b50929b, Clang 420ae40df6, Swift b2d7fb958c). Type :help for assistance.
  1> :type lookup Swift

Assertion failed: (signature || !origType->hasTypeParameter()), function initSwiftType, file /Users/buildnode/jenkins/workspace/oss-swift-4.1-package-osx/swift/include/swift/SIL/AbstractionPattern.h, line 344.
Abort trap: 6
$ swift
Welcome to Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2). Type :help for assistance.
  1> :type lookup Swift

Stack dump:
0.  HandleCommand(command = "type lookup Swift")
Segmentation fault: 11

The :print_module Swift command in the integrated REPL succeeds.

@belkadan
Copy link

belkadan commented Mar 5, 2018

Crashing in the compiler part.

@swift-ci create

@benrimmington
Copy link
Author

Fixed in Xcode 10.0 (10A255) with Swift 4.2 REPL.

@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

2 participants