Skip to content

Instantly share code, notes, and snippets.

@joaqo
Created April 1, 2020 04:30
Show Gist options
  • Save joaqo/81d298ffa5129ec32772ab6ce31a9102 to your computer and use it in GitHub Desktop.
Save joaqo/81d298ffa5129ec32772ab6ce31a9102 to your computer and use it in GitHub Desktop.
~ > /Library/Developer/Toolchains/swift-tensorflow-RELEASE-0.7.xctoolchain/usr/bin/swift
Welcome to Swift version 5.2-dev.
Type :help for assistance.
1> import TensorFlow
2> let a = Tensor<Int32>(shape: TensorShape([2]), scalars: [0, 1])
*** DESERIALIZATION FAILURE (please include this section in any bug report) ***
could not deserialize type for '_cDataType': top-level value not found
Cross-reference to module 'CTensorFlow'
... TF_DataType
0 lldb 0x000000010da00a55 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 lldb 0x000000010d9fff85 llvm::sys::RunSignalHandlers() + 85
2 lldb 0x000000010da010b6 SignalHandler(int) + 278
3 libsystem_platform.dylib 0x00007fff72c735fd _sigtramp + 29
4 libsystem_platform.dylib 0x000070001148e680 _sigtramp + 2659299488
5 libsystem_c.dylib 0x00007fff72b49808 abort + 120
6 LLDB 0x0000000114a6b32e swift::ModuleFile::fatal(llvm::Error) (.cold.1) + 94
7 LLDB 0x0000000111541394 swift::ModuleFile::fatal(llvm::Error) + 1380
8 LLDB 0x000000011154166c swift::ModuleFile::getDecl(llvm::PointerEmbeddedInt<unsigned int, 31>) + 108
9 LLDB 0x000000011156d959 swift::SILDeserializer::readSILInstruction(swift::SILFunction*, swift::SILBasicBlock*, swift::SILBuilder&, unsigned int, llvm::SmallVectorImpl<unsigned long long>&) + 4233
10 LLDB 0x000000011156aa41 swift::SILDeserializer::readSILFunctionChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, swift::SILFunction*, llvm::StringRef, bool, bool) + 6065
11 LLDB 0x000000011157df00 swift::SILDeserializer::lookupSILFunction(swift::SILFunction*, bool) + 368
12 LLDB 0x00000001115f585f swift::SerializedSILLoader::lookupSILFunction(swift::SILFunction*, bool) + 79
13 LLDB 0x000000011126c6af swift::SILModule::loadFunction(swift::SILFunction*) + 31
14 LLDB 0x00000001111e92b5 swift::SILLinkerVisitor::addFunctionToWorklist(swift::SILFunction*) + 293
15 LLDB 0x00000001111e9613 swift::SILLinkerVisitor::process() + 419
16 LLDB 0x00000001111e9442 swift::SILLinkerVisitor::processFunction(swift::SILFunction*) + 82
17 LLDB 0x000000011126c772 swift::SILModule::linkFunction(swift::SILFunction*, swift::SILModule::LinkingMode) + 114
18 LLDB 0x0000000111075685 (anonymous namespace)::SILLinker::run() + 69
19 LLDB 0x0000000110f64f1e swift::SILPassManager::runModulePass(unsigned int) + 542
20 LLDB 0x0000000110f6588a swift::SILPassManager::execute() + 634
21 LLDB 0x0000000110ac4b8b swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 187
22 LLDB 0x0000000110f6d065 swift::runSILOptimizationPasses(swift::SILModule&) + 229
23 LLDB 0x00000001105aa4e2 lldb_private::SwiftExpressionParser::Parse(lldb_private::DiagnosticManager&, unsigned int, unsigned int) + 8514
24 LLDB 0x00000001105b9a71 lldb_private::SwiftUserExpression::Parse(lldb_private::DiagnosticManager&, lldb_private::ExecutionContext&, lldb_private::ExecutionPolicy, bool, bool) + 1121
25 LLDB 0x000000011031d91a lldb_private::UserExpression::Evaluate(lldb_private::ExecutionContext&, lldb_private::EvaluateExpressionOptions const&, llvm::StringRef, llvm::StringRef, lldb_private::SharingPtr<lldb_private::ValueObject>&, lldb_private::Status&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::shared_ptr<lldb_private::Module>*, lldb_private::ValueObject*) + 1946
26 LLDB 0x000000011031b68e lldb_private::REPL::IOHandlerInputComplete(lldb_private::IOHandler&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 2014
27 LLDB 0x000000011028e900 lldb_private::IOHandlerEditline::Run() + 368
28 LLDB 0x0000000110275d4b lldb_private::Debugger::ExecuteIOHandlers() + 123
29 LLDB 0x00000001102787d3 lldb_private::Debugger::IOHandlerThread(void*) + 19
30 LLDB 0x00000001103246a7 lldb_private::HostNativeThreadBase::ThreadCreateTrampoline(void*) + 103
31 libsystem_pthread.dylib 0x00007fff72c7f109 _pthread_start + 148
32 libsystem_pthread.dylib 0x00007fff72c7ab8b thread_start + 15
********************
Crash reproducer for lldb version 7.0.0 (https://github.com/apple/llvm-project.git revision 3644f2cc195629ded10091ec446fd62a41017d6b)
Swift version 5.2-dev
Reproducer written to '/var/folders/kr/mpfbk9rx01q6205jcnf9ps4m0000gn/T/reproducer-0d6919'
Before attaching the reproducer to a bug report:
- Look at the directory to ensure you're willing to share its content.
- Make sure the reproducer works by replaying the reproducer.
Replay the reproducer with the following command:
/Library/Developer/Toolchains/swift-tensorflow-RELEASE-0.7.xctoolchain/usr/bin/lldb -replay /var/folders/kr/mpfbk9rx01q6205jcnf9ps4m0000gn/T/reproducer-0d6919
********************
Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment