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-7680] __tfop_tfc.configureTPU breaks the SIL ownership verifier #50220

Closed
rxwei opened this issue May 14, 2018 · 1 comment
Closed

[SR-7680] __tfop_tfc.configureTPU breaks the SIL ownership verifier #50220

rxwei opened this issue May 14, 2018 · 1 comment
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software GPE swift for tensorflow

Comments

@rxwei
Copy link
Member

rxwei commented May 14, 2018

Previous ID SR-7680
Radar None
Original Reporter @rxwei
Type Bug
Status Closed
Resolution Invalid
Additional Detail from JIRA
Votes 0
Component/s Swift for TensorFlow
Labels Bug, CompilerCrash, GPE
Assignee @lattner
Priority Medium

md5: 8acaff09525d1f918e3784be1c2b8eb3

Issue Description:

This occurs when building the TensorFlow stdlib module when `-enable-sil-ownership` is on. We had to turn off SIL ownership because of this.

1.      While emitting SIL for 'enableTPU(infeed:)' at /Users/rxwei/Development/swift-source/swift/stdlib/public/TensorFlow/CompilerRuntime.swift:47:10
2.      While silgen emitFunction SIL function "@$S10TensorFlowAAO9enableTPU6infeedySb_tFZ".
 for 'enableTPU(infeed:)' at /Users/rxwei/Development/swift-source/swift/stdlib/public/TensorFlow/CompilerRuntime.swift:47:10
3.      While verifying SIL function "@$S10TensorFlowAAO9enableTPU6infeedySb_tFZ".
 for 'enableTPU(infeed:)' at /Users/rxwei/Development/swift-source/swift/stdlib/public/TensorFlow/CompilerRuntime.swift:47:10
[71/358] Generating /Users/rxwei/Development/swift-source/build/bui...wift-macosx-x86_64/./lib/swift/macosx/x86_64/Foundation.swiftmodule
/Users/rxwei/Development/swift-source/swift/stdlib/public/SDK/Foundation/NSRange.swift:200:21: warning: 'CustomPlaygroundQuickLookable' is deprecated: CustomPlaygroundQuickLookable will be removed in a future Swift version. For customizing how types are presented in playgrounds, use CustomPlaygroundDisplayConvertible instead.

                                        ^
Function: '$S10TensorFlowAAO9enableTPU6infeedySb_tFZ'
Error! Found a leaked owned value that was never consumed.
Value:   %9 = builtin "__tfop_tfc.configureTPU,enableInfeed"(%0 : $Bool) : $()

triggering standard assertion failure routine
UNREACHABLE executed at /Users/rxwei/Development/swift-source/swift/lib/SIL/SILOwnershipVerifier.cpp:1619!
0  swift                    0x0000000111b79ae8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  swift                    0x0000000111b78a36 llvm::sys::RunSignalHandlers() + 86
2  swift                    0x0000000111b7a0ae SignalHandler(int) + 366
3  libsystem_platform.dylib 0x00007fff77dfcf5a _sigtramp + 26
4  swift                    0x00000001128b3b18 (anonymous namespace)::DarwinX86AsmBackend::getCompactUnwindRegNum(unsigned int) const::CU64BitRegs + 238062
5  libsystem_c.dylib        0x00007fff77c27312 abort + 127
6  swift                    0x0000000111b17540 LLVMInstallFatalErrorHandler + 0
7  swift                    0x000000010f167505 (anonymous namespace)::SILValueOwnershipChecker::handleError(llvm::function_ref<void ()>&&) const + 165
8  swift                    0x000000010f15c379 (anonymous namespace)::SILValueOwnershipChecker::check() + 2697
9  swift                    0x000000010f15b62f swift::SILValue::verifyOwnership(swift::SILModule&, swift::DeadEndBlocks*) const + 591
10 swift                    0x000000010f1510ab (anonymous namespace)::SILVerifier::visitSILInstruction(swift::SILInstruction*) + 3051
11 swift                    0x000000010f140b02 swift::SILInstructionVisitor<(anonymous namespace)::SILVerifier, void>::visit(swift::SILInstruction*) + 10418
12 swift                    0x000000010f13c43c (anonymous namespace)::SILVerifier::visitSILBasicBlock(swift::SILBasicBlock*) + 1212
13 swift                    0x000000010f138797 swift::SILFunction::verify(bool) const + 8631
14 swift                    0x000000010eb1b1ed swift::Lowering::SILGenModule::postEmitFunction(swift::SILDeclRef, swift::SILFunction*) + 205
15 swift                    0x000000010eb23777 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*)::$_2::operator()(swift::SILFunction*) const + 327
16 swift                    0x000000010eb1ac2d swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 733
17 swift                    0x000000010ebf7909 (anonymous namespace)::SILGenType::emitType() + 233
18 swift                    0x000000010ebf7819 swift::Lowering::SILGenModule::visitNominalTypeDecl(swift::NominalTypeDecl*) + 25
19 swift                    0x000000010eb2042b swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*, unsigned int) + 763
20 swift                    0x000000010eb21125 swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*, llvm::Optional<unsigned int>, bool) + 437
21 swift                    0x000000010eb2163c swift::performSILGeneration(swift::ModuleDecl*, swift::SILOptions&, bool) + 28
22 swift                    0x000000010e422898 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 14312
23 swift                    0x000000010e41e135 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2965
24 swift                    0x000000010e3d6099 main + 2249
25 libdyld.dylib            0x00007fff77b7b115 start + 1
Stack dump:
@lattner
Copy link
Mannequin

lattner mannequin commented Feb 8, 2020

This is obsolete.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added crash Bug: A crash, i.e., an abnormal termination of software compiler The Swift compiler in itself labels Dec 12, 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 A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software GPE swift for tensorflow
Projects
None yet
Development

No branches or pull requests

2 participants