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-9996] lldb crash in swift::Lowering::TypeConverter::getTypeLoweringForUncachedLoweredType #4341

Closed
bobergj opened this issue Feb 25, 2019 · 4 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@bobergj
Copy link

bobergj commented Feb 25, 2019

Previous ID SR-9996
Radar None
Original Reporter @bobergj
Type Bug
Status Resolved
Resolution Cannot Reproduce

Attachment: Download

Environment

Swift 5

Xcode Version 10.2 beta 3 (10P99q)

macOS 10.14.3 (18D109)

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

md5: ca2283280224db5723ce79757179513c

Issue Description:

lldb rpc server crash when printing the argument of a nested function:

po ...
13  libsystem_pthread.dylib             0x00000001011f6e41 start_wqthread + 13
Message from debugger: The LLDB RPC server has crashed. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.

lldb-rpc-server crash log attached, relevant part of log:

Thread 9 Crashed:: RPC packet thread for client tid 0021770f (2193167)
0   libsystem_kernel.dylib              0x00007fff6e0c923e __pthread_kill + 10
1   libsystem_pthread.dylib             0x00007fff6e17fc1c pthread_kill + 285
2   libsystem_c.dylib                   0x00007fff6e0321c9 abort + 127
3   libsystem_malloc.dylib              0x00007fff6e1416e2 malloc_vreport + 545
4   libsystem_malloc.dylib              0x00007fff6e1414a3 malloc_report + 152
5   com.apple.LLDB.framework            0x000000010ec47f83 llvm::DenseMap<swift::Lowering::TypeConverter::CachingTypeKey, swift::Lowering::TypeLowering const*, llvm::DenseMapInfo<swift::Lowering::TypeConverter::CachingTypeKey>, llvm::detail::DenseMapPair<swift::Lowering::TypeConverter::CachingTypeKey, swift::Lowering::TypeLowering const*> >::grow(unsigned int) + 627
6   com.apple.LLDB.framework            0x000000010ec47cf7 llvm::detail::DenseMapPair<swift::Lowering::TypeConverter::CachingTypeKey, swift::Lowering::TypeLowering const*>* llvm::DenseMapBase<llvm::DenseMap<swift::Lowering::TypeConverter::CachingTypeKey, swift::Lowering::TypeLowering const*, llvm::DenseMapInfo<swift::Lowering::TypeConverter::CachingTypeKey>, llvm::detail::DenseMapPair<swift::Lowering::TypeConverter::CachingTypeKey, swift::Lowering::TypeLowering const*> >, swift::Lowering::TypeConverter::CachingTypeKey, swift::Lowering::TypeLowering const*, llvm::DenseMapInfo<swift::Lowering::TypeConverter::CachingTypeKey>, llvm::detail::DenseMapPair<swift::Lowering::TypeConverter::CachingTypeKey, swift::Lowering::TypeLowering const*> >::InsertIntoBucketImpl<swift::Lowering::TypeConverter::CachingTypeKey>(swift::Lowering::TypeConverter::CachingTypeKey const&, swift::Lowering::TypeConverter::CachingTypeKey const&, llvm::detail::DenseMapPair<swift::Lowering::TypeConverter::CachingTypeKey, swift::Lowering::TypeLowering const*>*) + 103
7   com.apple.LLDB.framework            0x000000010ec449a5 swift::Lowering::TypeConverter::getTypeLoweringForUncachedLoweredType(swift::Lowering::TypeConverter::TypeKey) + 229
8   com.apple.LLDB.framework            0x000000010ec440ec swift::Lowering::TypeConverter::getTypeLowering(swift::Lowering::AbstractionPattern, swift::Type) + 492
9   com.apple.LLDB.framework            0x000000010ea7da7a swift::irgen::IRGenModule::getLoweredType(swift::Type) + 154
10  com.apple.LLDB.framework            0x000000010f5f1702 lldb_private::SwiftASTContext::GetSwiftTypeInfo(void*) + 98 
@belkadan
Copy link

Do you have a reproducing test case you can share?

cc @dcci

@bobergj
Copy link
Author

bobergj commented Feb 26, 2019

Not at the moment as this happens in the middle of a pretty sizeable proprietary code base. But if you need some info about the function or variable in question (for example printing out some type information or running some lldb command), I can assist.

@dcci
Copy link
Mannequin

dcci mannequin commented Feb 28, 2019

This is going to be hard for us to diagnose without a reproducer, so if you can make the effort to have a synthetic testcase, it would be greatly appreciated.

@dcci
Copy link
Mannequin

dcci mannequin commented Oct 29, 2019

We fixed several instances of this so we encourage you to try with a new snapshot. FWIW, this bug is not actionable as is so I'm going to close it. Please reopen it if you have additional informations.

@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