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-8633] Segmentation fault - SILModuleTransform "LoadableByAddress" #51148

Open
swift-ci opened this issue Aug 24, 2018 · 8 comments
Open

[SR-8633] Segmentation fault - SILModuleTransform "LoadableByAddress" #51148

swift-ci opened this issue Aug 24, 2018 · 8 comments
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-8633
Radar https://bugreport.apple.com/web/?problemID=44482613
Original Reporter rahul_thiru (JIRA User)
Type Bug
Environment

macOS 10.13.6

Xcode Version 10.0 beta 6 (10L232m)

Project code base Swift 4.2

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

md5: b947a096350c4348b5f5cf0b1b23a516

Issue Description:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
   swift                          0x00000001042e82d0 (anonymous namespace)::LoadableByAddress::runOnFunction(swift::SILFunction*) + 169441
   swift                          0x00000001042e092b (anonymous namespace)::LoadableByAddress::run() + 752
   swift                          0x0000000104ca210d swift::SILPassManager::execute() + 55653
   swift                          0x000000010429525b runIRGenPreparePasses(swift::SILModule&, swift::irgen::IRGenModule&) + 17234
   swift                          0x0000000104293264 swift::performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl*, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::LLVMContext&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, llvm::GlobalVariable**) + 17485
   swift                          0x00000001040dcbd2 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 467866
   swift                          0x00000001040ce015 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 77177
   swift                          0x0000000104073c95 main + 13498   libdyld.dylib                  0x00007fff5caa2015 start + 1
@belkadan
Copy link
Contributor

Can you attach your project? If you don't want to share it in public, you can file a Radar at https://bugreport.apple.com.

@swift-ci
Copy link
Collaborator Author

Comment by Rahul Thiru (JIRA)

Hi Jordan , Have filed a radar and updated the URL here. Build is succeeding when I change the optimization level in build settings to No optimization and swift compiler crashes in Optimize for speed or size level.

@belkadan
Copy link
Contributor

Thanks, but can you attach your project to the Radar?

@swift-ci
Copy link
Collaborator Author

Comment by Rahul Thiru (JIRA)

Hi Jordan, I am working in a private company. So I think you have to sign NDA to share the code. Is it fine?

@belkadan
Copy link
Contributor

Unfortunately I don't think we can do that directly. You may be able to talk with Apple Worldwide Developer Relations to work something out, but we engineers are only allowed to ask for projects through this site (essentially public) and through Radar (visible to Apple employees but no special contract beyond your developer agreement).

@swift-ci
Copy link
Collaborator Author

Comment by Rahul Thiru (JIRA)

ok thanks for the info.

@swift-ci
Copy link
Collaborator Author

Comment by Rahul Thiru (JIRA)

Hi @belkadan, I have new information regarding this crash. I don't think the issue is with optimization level. When I switch to incremental compilation mode optimization is working fine, but with whole module compilation mode optimization is not working.

@belkadan
Copy link
Contributor

Hm, interesting, thanks.

@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

3 participants