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

[Source compatibility suite] swift-distributed-actors failing to build with crash #80169

Open
justice-adams-apple opened this issue Mar 20, 2025 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@justice-adams-apple
Copy link
Contributor

Description

swift-distributed-actors is failing to build with the following error:

1.	Apple Swift version 6.2-dev (LLVM 5e6f4c4a82f6d2e, Swift 6a3ead3a44fa43c)
2.	Compiling with effective version 5.10
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x00000001110a9748 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 40
1  swift-frontend           0x00000001110a77e9 llvm::sys::RunSignalHandlers() + 233
2  swift-frontend           0x00000001110a9db6 SignalHandler(int, __siginfo*, void*) + 278
3  libsystem_platform.dylib 0x00007ff8108ffe9d _sigtramp + 29
4  libsystem_platform.dylib 0x0000000000000046 _sigtramp + 18446603370303062470
5  libsystem_c.dylib        0x00007ff8107ebb19 abort + 126
6  libsystem_malloc.dylib   0x00007ff8106ea975 malloc_vreport + 857
7  libsystem_malloc.dylib   0x00007ff8106ee42b malloc_report + 151
8  swift-frontend           0x0000000110edc551 llvm::LLVMContextImpl::~LLVMContextImpl() + 10033
9  swift-frontend           0x0000000110ed7f96 llvm::LLVMContext::~LLVMContext() + 22
10 swift-frontend           0x000000010a377419 swift::GeneratedModule::~GeneratedModule() + 89
11 swift-frontend           0x000000010a3730fc performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1548
12 swift-frontend           0x000000010a3722e5 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 581
13 swift-frontend           0x000000010a38038f withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 143
14 swift-frontend           0x000000010a374575 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 933
15 swift-frontend           0x000000010a373bb3 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2627
16 swift-frontend           0x000000010a0ff03c swift::mainEntry(int, char const**) + 3340
17 dyld                     0x00007ff81053d2cd start + 1805

Reproduction

swift build --disable-sandbox --package-path swift-distributed-actors --verbose --configuration debug --build-tests -Xswiftc -swift-version -Xswiftc 5 -Xswiftc -enable-testing

Expected behavior

Expected the project to build correctly

Environment

Apple Swift version 6.2-dev (LLVM 5e6f4c4a82f6d2e, Swift 6a3ead3)
Target: x86_64-apple-macosx13.0

Additional information

Seen first with:
https://ci.swift.org/job/swift-main-source-compat-suite-debug/1060/ (Mar 14)

@justice-adams-apple justice-adams-apple added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Mar 20, 2025
justice-adams-apple added a commit to swiftlang/swift-source-compat-suite that referenced this issue Mar 20, 2025
@adrian-prantl
Copy link
Contributor

I landed a fix for a use-after-free with the same symptom in #80179

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. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

2 participants