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-9882] LLDB Assertion Failure #4610

Closed
swift-ci opened this issue Feb 7, 2019 · 5 comments
Closed

[SR-9882] LLDB Assertion Failure #4610

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

Comments

@swift-ci
Copy link

swift-ci commented Feb 7, 2019

Previous ID SR-9882
Radar rdar://problem/47884443
Original Reporter Poliorcetics (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment
  • Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)

  • OS X 10.14.3

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

md5: 32e2411fd01b1201808a3971744462da

Issue Description:

Reproducing the issue:

1. Run Swift in the command line
2. Enter var test = [Double.self] (replacing Double by Int or String produces the same result).

This is the error log I get:

test: [Double.Type] = 1 value {
  [0] =Assertion failed: (byte_size > 0 && byte_size <= 8 && "GetMaxU64 invalid byte_size!"), function GetMaxU64, file /Library/Caches/com.apple.xbs/Sources/lldb_Fall2018/lldb_Fall2018-1000.11.38.2/source/Utility/DataExtractor.cpp, line 577
backtrace leading to the failure:
0  LLDB                    0x000000010dd1ddb8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  LLDB                    0x000000010fb66465 lldb_private::lldb_assert(bool, char const*, char const*, char const*, unsigned int) + 127
2  LLDB                    0x000000010fc0cfec lldb_private::DataExtractor::GetMaxU64(unsigned long long*, unsigned long) const + 66
3  LLDB                    0x000000010fe96480 lldb_private::CompilerType::GetValueAsScalar(lldb_private::DataExtractor const&, unsigned long long, unsigned long, lldb_private::Scalar&) const + 240
4  LLDB                    0x000000010fb20c14 lldb_private::Value::ResolveValue(lldb_private::ExecutionContext*) + 196
5  LLDB                    0x000000010fb245db lldb_private::ValueObject::ResolveValue(lldb_private::Scalar&) + 105
6  LLDB                    0x000000010fb2710d lldb_private::ValueObject::GetValueAsUnsigned(unsigned long long, bool*) + 75
7  LLDB                    0x000000010fb1ebab lldb_private::formatters::swift::SwiftMetatype_SummaryProvider(lldb_private::ValueObject&, lldb_private::Stream&, lldb_private::TypeSummaryOptions const&) + 41
8  LLDB                    0x000000010ff2975c lldb_private::CXXFunctionSummaryFormat::FormatObject(lldb_private::ValueObject*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, lldb_private::TypeSummaryOptions const&) + 98
9  LLDB                    0x000000010fb2530a lldb_private::ValueObject::GetSummaryAsCString(lldb_private::TypeSummaryImpl*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, lldb_private::TypeSummaryOptions const&) + 202
10 LLDB                    0x000000010fb25230 lldb_private::ValueObject::GetSummaryAsCString(lldb_private::TypeSummaryImpl*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, lldb::LanguageType) + 64
11 LLDB                    0x000000010fee51a9 lldb_private::ValueObjectPrinter::GetValueSummaryError(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 369
12 LLDB                    0x000000010fee496c lldb_private::ValueObjectPrinter::PrintValueAndSummaryIfNeeded(bool&, bool&) + 188
13 LLDB                    0x000000010fee400b lldb_private::ValueObjectPrinter::PrintValueObject() + 129
14 LLDB                    0x000000010fee57cf lldb_private::ValueObjectPrinter::PrintChild(lldb_private::SharingPtr<lldb_private::ValueObject>, lldb_private::DumpValueObjectOptions::PointerDepth const&) + 567
15 LLDB                    0x000000010fee5c55 lldb_private::ValueObjectPrinter::PrintChildren(bool, bool, lldb_private::DumpValueObjectOptions::PointerDepth const&) + 171
16 LLDB                    0x000000010fee4d49 lldb_private::ValueObjectPrinter::PrintChildrenIfNeeded(bool, bool) + 417
17 LLDB                    0x000000010fee4025 lldb_private::ValueObjectPrinter::PrintValueObject() + 155
18 LLDB                    0x000000010fb2b063 lldb_private::ValueObject::Dump(lldb_private::Stream&, lldb_private::DumpValueObjectOptions const&) + 67
19 LLDB                    0x000000010fd67f03 lldb_private::SwiftREPL::PrintOneVariable(lldb_private::Debugger&, std::__1::shared_ptr<lldb_private::StreamFile>&, lldb_private::SharingPtr<lldb_private::ValueObject>&, lldb_private::ExpressionVariable*) + 937
20 LLDB                    0x000000010fb60eb8 lldb_private::REPL::IOHandlerInputComplete(lldb_private::IOHandler&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 2686
21 LLDB                    0x000000010fbf81b3 lldb_private::IOHandlerEditline::Run() + 319
22 LLDB                    0x000000010fabbad2 lldb_private::Debugger::ExecuteIOHandlers() + 68
23 LLDB                    0x000000010fabe7ba lldb_private::Debugger::IOHandlerThread(void*) + 14
24 LLDB                    0x000000010fd053ef lldb_private::HostNativeThreadBase::ThreadCreateTrampoline(void*) + 105
25 libsystem_pthread.dylib 0x00007fff6cb9c305 _pthread_body + 126
26 libsystem_pthread.dylib 0x00007fff6cb9f26f _pthread_start + 70
27 libsystem_pthread.dylib 0x00007fff6cb9b415 thread_start + 13
please file a bug report against lldb reporting this failure log, and as many details as possible
 Double
}
@belkadan
Copy link

belkadan commented Feb 7, 2019

Reproduces in Xcode 10.2b1 too. Thanks for reporting!

@dcci
Copy link
Mannequin

dcci mannequin commented Feb 7, 2019

Patch coming. Thanks for the report!

@dcci
Copy link
Mannequin

dcci mannequin commented Feb 7, 2019

apple/swift-lldb#1283

@AnnaZaks
Copy link
Mannequin

AnnaZaks mannequin commented Aug 9, 2019

Poliorcetics (JIRA User), Could you verify if the problem is fixed and if so move the JIRA to "Closed"?

Thanks!
Anna

@swift-ci
Copy link
Author

swift-ci commented Aug 9, 2019

Comment by Alexis Bourget (JIRA)

Fixed.

@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
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