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-8539] Illegal instruction: 4; SILModuleTransform "MandatoryInlining" #51058

Open
swift-ci opened this issue Aug 15, 2018 · 4 comments
Open
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

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-8539
Radar None
Original Reporter armansharvel (JIRA User)
Type Bug
Environment

macOS 10.13.6

Xcode 10 beta 6

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

md5: 76412852cc94c54fdfdd9bdf70bd49fb

Issue Description:

Happens on every clean build since Xcode 10 beta 6

Source type: $URL
Destination type: $*URL
0  swift                    0x000000010f77c37a PrintStackTraceSignalHandler(void*) + 42
1  swift                    0x000000010f77bb2e SignalHandler(int) + 302
2  libsystem_platform.dylib 0x00007fff73d95f5a _sigtramp + 26
3  libsystem_platform.dylib 0x00007ffee4247898 _sigtramp + 1883969880
4  swift                    0x000000010c54a881 swift::devirtualizeClassMethod(swift::FullApplySite, swift::SILValue, swift::OptRemark::Emitter*) + 3841
5  swift                    0x000000010c54c9a1 swift::tryDevirtualizeApply(swift::ApplySite, swift::ClassHierarchyAnalysis*, swift::OptRemark::Emitter*) + 2417
6  swift                    0x000000010c681353 runOnFunctionRecursively(swift::SILFunction*, swift::FullApplySite, llvm::DenseSet<swift::SILFunction*, llvm::DenseMapInfo<swift::SILFunction*> >&, llvm::ImmutableSet<swift::SILFunction*, llvm::ImutContainerInfo<swift::SILFunction*> >::Factory&, llvm::ImmutableSet<swift::SILFunction*, llvm::ImutContainerInfo<swift::SILFunction*> >, swift::ClassHierarchyAnalysis*) + 7459
7  swift                    0x000000010c67f213 (anonymous namespace)::MandatoryInlining::run() + 339
8  swift                    0x000000010c60710d swift::SILPassManager::execute() + 5565
9  swift                    0x000000010c60aa3b swift::runSILDiagnosticPasses(swift::SILModule&) + 2331
10 swift                    0x000000010ba3ef13 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 35331
11 swift                    0x000000010ba33015 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7717
12 swift                    0x000000010b9d8c95 main + 1349
13 libdyld.dylib            0x00007fff73a87015 start + 1
14 libdyld.dylib            0x0000000000000075 start + 2354548833
 
2. While running pass #&#8203;187 SILModuleTransform "MandatoryInlining".
error: Illegal instruction: 4 
@belkadan
Copy link
Contributor

Can you attach the project where this is happening?

@atrick, does this look familiar?

@atrick
Copy link
Member

atrick commented Aug 15, 2018

I haven't seen this backtrace. Maybe @eeckstein?

@eeckstein
Copy link
Member

No. We need the project to reproduce.

@swift-ci
Copy link
Collaborator Author

swift-ci commented Oct 3, 2018

Comment by Jan Chaloupecky (JIRA)

Hi,

I ran into the same issue when I was linking against a .framework that was compiled using a previous beta version of Xcode. In my case I had Xcode 10 release version while my dependencies were compiled using an Xcode beta.

Recompiling the binary dependency solved the problem

Hope it helps,

Jan

@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
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
Projects
None yet
Development

No branches or pull requests

5 participants