Navigation Menu

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-5351] Unsupported library call operation! (incomplete Int128 support?) #47925

Closed
dabrahams opened this issue Jul 2, 2017 · 3 comments
Closed
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 SILGen Area → compiler: The SIL generation stage

Comments

@dabrahams
Copy link
Collaborator

Previous ID SR-5351
Radar rdar://problem/33096434
Original Reporter @dabrahams
Type Bug
Status Closed
Resolution Invalid

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, SILGen
Assignee @dabrahams
Priority Medium

md5: 3ead2d233e092621b0cd56ee9d71738c

Issue Description:

The attached patch implements an internal-only Int128 type, but the build asserts as follows:

<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: Unsupported library call operation!
0  swift                    0x0000000106f2b308 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  swift                    0x0000000106f2b936 SignalHandler(int) + 358
2  libsystem_platform.dylib 0x00007fff906c6b3a _sigtramp + 26
3  libsystem_platform.dylib 0x00007fff5b8f6c60 _sigtramp + 3408068928
4  libsystem_c.dylib        0x00007fff9054b420 abort + 129
5  swift                    0x0000000104345e87 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*)::$_0::__invoke(void*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) + 551
6  swift                    0x0000000106ed46d3 llvm::report_fatal_error(llvm::Twine const&, bool) + 291
7  swift                    0x0000000106ed45aa llvm::report_fatal_error(char const*, bool) + 42
8  swift                    0x000000010599cf6a llvm::TargetLowering::makeLibCall(llvm::SelectionDAG&, llvm::RTLIB::Libcall, llvm::EVT, llvm::ArrayRef<llvm::SDValue>, bool, llvm::SDLoc const&, bool, bool) const + 1450
9  swift                    0x00000001058bb9cd llvm::DAGTypeLegalizer::ExpandIntRes_UDIV(llvm::SDNode*, llvm::SDValue&, llvm::SDValue&) + 349
10 swift                    0x00000001058b6458 llvm::DAGTypeLegalizer::ExpandIntegerResult(llvm::SDNode*, unsigned int) + 712
11 swift                    0x00000001058c7fa8 llvm::DAGTypeLegalizer::run() + 1128
12 swift                    0x00000001058cd273 llvm::SelectionDAG::LegalizeTypes() + 1795
13 swift                    0x0000000105987f92 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 338
14 swift                    0x000000010598736f llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 6031
15 swift                    0x000000010598520e llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1438
16 swift                    0x000000010524a144 (anonymous namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 20
17 swift                    0x0000000105c1c3b6 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 134
18 swift                    0x0000000106e30e32 llvm::FPPassManager::runOnFunction(llvm::Function&) + 498
19 swift                    0x0000000106e31043 llvm::FPPassManager::runOnModule(llvm::Module&) + 67
20 swift                    0x0000000106e314d8 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 920
21 swift                    0x000000010443df85 swift::performLLVM(swift::IRGenOptions&, swift::DiagnosticEngine*, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, swift::version::Version const&, llvm::StringRef, swift::UnifiedStatsReporter*) + 2277
22 swift                    0x0000000104345b2f performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 12527
23 swift                    0x0000000104341b5a swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3418
24 swift                    0x000000010430782b main + 2395
25 libdyld.dylib            0x00007fff904b7235 start + 1
26 libdyld.dylib            0x0000000000000029 start + 1874103797
Stack dump:
0.  Program arguments: /Users/dave/src/s/build/Ninja-Release/swift-macosx-x86_64/bin/swift -frontend -c -filelist /var/folders/8v/9769m3ps7ds7h9pg23lzcls00000gn/T/sources-b0b752 -disable-objc-attr-requires-foundation-module -target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -I /Users/dave/src/s/build/Ninja-Release/swift-macosx-x86_64/./lib/swift/macosx/x86_64 -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/../../../Developer/Library/Frameworks -warn-swift3-objc-inference-complete -module-cache-path /Users/dave/src/s/build/Ninja-Release/swift-macosx-x86_64/./module-cache -module-link-name swiftCore -nostdimport -parse-stdlib -resource-dir /Users/dave/src/s/build/Ninja-Release/swift-macosx-x86_64/./lib/swift -swift-version 3 -group-info-path /Users/dave/src/s/swift/stdlib/public/core/GroupInfo.json -sil-serialize-all -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -D__SWIFT_CURRENT_DYLIB=swiftCore -O -parse-as-library -module-name Swift -o /Users/dave/src/s/build/Ninja-Release/swift-macosx-x86_64/stdlib/public/core/macosx/x86_64/Swift.o 
1.  Running pass 'Function Pass Manager' on module '/Users/dave/src/s/build/Ninja-Release/swift-macosx-x86_64/stdlib/public/core/macosx/x86_64/Swift.o'.
2.  Running pass 'X86 DAG->DAG Instruction Selection' on function '@_T0s7UInt128V17dividingFullWidthAB8quotient_AB9remaindertAB4high_AB3lowt_tF'
@dabrahams
Copy link
Collaborator Author

@swift-ci create

@dabrahams
Copy link
Collaborator Author

Assigned to Arnold because IIRC he implemented the support in question.

@dabrahams
Copy link
Collaborator Author

Ah, this was an invalid report. Attaching a fixed patch and closing the bug.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label 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 SILGen Area → compiler: The SIL generation stage
Projects
None yet
Development

No branches or pull requests

2 participants