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

6.0.3 crashes on Linux when Mutex is used with generic types #80036

Open
sebsto opened this issue Mar 15, 2025 · 1 comment
Open

6.0.3 crashes on Linux when Mutex is used with generic types #80036

sebsto opened this issue Mar 15, 2025 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. concurrency Feature: umbrella label for concurrency language features crash Bug: A crash, i.e., an abnormal termination of software

Comments

@sebsto
Copy link

sebsto commented Mar 15, 2025

Description

Builds of the Swift AWS Lambda Runtime crashes on Linux when portion of code uses Synchronization's Mutex class.

As a workaround, we use NIOLockedValueBox instead and that works on 6.0.3 Linux

Reproduction

git clone https://github.com/sebsto/swift-aws-lambda-runtime.git
cd swift-aws-lambda-runtime
git fetch --all
git checkout sebsto/compiler_crash_mutex

docker run -it --rm -v .:/work swift:6.0-noble bash -c "(cd /work && swift build)"

Stack dump

Building for debugging...
error: compile command failed due to signal 11 (use -v to see invocation)
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.      Program arguments: /usr/bin/swift-frontend -frontend -c /work/Sources/AWSLambdaRuntime/ControlPlaneRequest.swift /work/Sources/AWSLambdaRuntime/ControlPlaneRequestEncoder.swift /work/Sources/AWSLambdaRuntime/FoundationSupport/Context+Foundation.swift /work/Sources/AWSLambdaRuntime/FoundationSupport/Lambda+JSON.swift /work/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/ByteBuffer-foundation.swift /work/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/JSON+ByteBuffer.swift /work/Sources/AWSLambdaRuntime/Lambda+Codable.swift /work/Sources/AWSLambdaRuntime/Lambda+LocalServer.swift /work/Sources/AWSLambdaRuntime/Lambda.swift /work/Sources/AWSLambdaRuntime/LambdaContext.swift /work/Sources/AWSLambdaRuntime/LambdaHandlers.swift /work/Sources/AWSLambdaRuntime/LambdaRequestID.swift /work/Sources/AWSLambdaRuntime/LambdaRuntime+ServiceLifecycle.swift -primary-file /work/Sources/AWSLambdaRuntime/LambdaRuntime.swift /work/Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift /work/Sources/AWSLambdaRuntime/LambdaRuntimeClientError.swift /work/Sources/AWSLambdaRuntime/LambdaRuntimeClientProtocol.swift /work/Sources/AWSLambdaRuntime/Utils.swift -emit-dependencies-path /work/.build/aarch64-unknown-linux-gnu/debug/AWSLambdaRuntime.build/LambdaRuntime.d -emit-reference-dependencies-path /work/.build/aarch64-unknown-linux-gnu/debug/AWSLambdaRuntime.build/LambdaRuntime.swiftdeps -target aarch64-unknown-linux-gnu -Xllvm -aarch64-use-tbi -disable-objc-interop -I /work/.build/aarch64-unknown-linux-gnu/debug/Modules -color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /work/.build/aarch64-unknown-linux-gnu/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D FoundationJSONSupport -D ServiceLifecycleSupport -D LocalServerSupport -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /work -Xcc -fmodule-map-file=/work/.build/aarch64-unknown-linux-gnu/debug/CNIOLLHTTP.build/module.modulemap -Xcc -I -Xcc /work/.build/checkouts/swift-nio/Sources/CNIOLLHTTP/include -Xcc -fmodule-map-file=/work/.build/checkouts/swift-atomics/Sources/_AtomicsShims/include/module.modulemap -Xcc -I -Xcc /work/.build/checkouts/swift-atomics/Sources/_AtomicsShims/include -Xcc -fmodule-map-file=/work/.build/aarch64-unknown-linux-gnu/debug/CNIOWASI.build/module.modulemap -Xcc -I -Xcc /work/.build/checkouts/swift-nio/Sources/CNIOWASI/include -Xcc -fmodule-map-file=/work/.build/checkouts/swift-nio/Sources/CNIOWindows/include/module.modulemap -Xcc -I -Xcc /work/.build/checkouts/swift-nio/Sources/CNIOWindows/include -Xcc -fmodule-map-file=/work/.build/aarch64-unknown-linux-gnu/debug/CNIOLinux.build/module.modulemap -Xcc -I -Xcc /work/.build/checkouts/swift-nio/Sources/CNIOLinux/include -Xcc -fmodule-map-file=/work/.build/aarch64-unknown-linux-gnu/debug/CNIODarwin.build/module.modulemap -Xcc -I -Xcc /work/.build/checkouts/swift-nio/Sources/CNIODarwin/include -Xcc -fmodule-map-file=/work/.build/aarch64-unknown-linux-gnu/debug/CNIOAtomics.build/module.modulemap -Xcc -I -Xcc /work/.build/checkouts/swift-nio/Sources/CNIOAtomics/include -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -module-name AWSLambdaRuntime -package-name work -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /work/.build/aarch64-unknown-linux-gnu/debug/AWSLambdaRuntime.build/LambdaRuntime.swift.o -index-store-path /work/.build/aarch64-unknown-linux-gnu/debug/index/store -index-system-modules
1.      Swift version 6.0.3 (swift-6.0.3-RELEASE)
2.      Compiling with the current language version
3.      While evaluating request IRGenRequest(IR Generation for file "/work/Sources/AWSLambdaRuntime/LambdaRuntime.swift")
4.      While emitting IR SIL function "@$s16AWSLambdaRuntime06LambdaB0C7handler9eventLoop6loggerACyxGxn_7NIOCore05EventF0_p7Logging6LoggerVtAA0cB5ErrorOYKcfc".
 for 'init(handler:eventLoop:logger:)' (at /work/Sources/AWSLambdaRuntime/LambdaRuntime.swift:38:12)
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  0x0000aaaae8ecbf9c
1  swift-frontend  0x0000aaaae8eca1a8
2  swift-frontend  0x0000aaaae8ecc6a0
3  linux-vdso.so.1 0x0000ffff985467a0 __kernel_rt_sigreturn + 0
4  swift-frontend  0x0000aaaae3e1939c
5  swift-frontend  0x0000aaaae3de4110
6  swift-frontend  0x0000aaaae3de3818
7  swift-frontend  0x0000aaaae3de5ec4
8  swift-frontend  0x0000aaaae3ee4c7c
9  swift-frontend  0x0000aaaae3ee4be8
10 swift-frontend  0x0000aaaae3efec1c
11 swift-frontend  0x0000aaaae3f007e4
12 swift-frontend  0x0000aaaae3e9c744
13 swift-frontend  0x0000aaaae3e9e3ac
14 swift-frontend  0x0000aaaae3e99a0c
15 swift-frontend  0x0000aaaae3e86d00
16 swift-frontend  0x0000aaaae3f38884
17 swift-frontend  0x0000aaaae3f38a1c
18 swift-frontend  0x0000aaaae3fa4658
19 swift-frontend  0x0000aaaae3fa4e40
20 swift-frontend  0x0000aaaae3e7994c
21 swift-frontend  0x0000aaaae3fa23b4
22 swift-frontend  0x0000aaaae3fa1b94
23 swift-frontend  0x0000aaaae3fa1870
24 swift-frontend  0x0000aaaae3fa43dc
25 swift-frontend  0x0000aaaae3fa1554
26 swift-frontend  0x0000aaaae3fa15e4
27 swift-frontend  0x0000aaaae3f38924
28 swift-frontend  0x0000aaaae3f846b4
29 swift-frontend  0x0000aaaae3f75304
30 swift-frontend  0x0000aaaae3f72e90
31 swift-frontend  0x0000aaaae3e67ce0
32 swift-frontend  0x0000aaaae3d59bb8
33 swift-frontend  0x0000aaaae3d9b9a8
34 swift-frontend  0x0000aaaae3d61de0
35 swift-frontend  0x0000aaaae3d5b568
36 swift-frontend  0x0000aaaae3a1377c
37 swift-frontend  0x0000aaaae3a106e4
38 swift-frontend  0x0000aaaae3a0f6f8
39 swift-frontend  0x0000aaaae3a11a60
40 swift-frontend  0x0000aaaae3a11008
41 swift-frontend  0x0000aaaae384bd24
42 libc.so.6       0x0000ffff966284c4
43 libc.so.6       0x0000ffff96628598 __libc_start_main + 152
44 swift-frontend  0x0000aaaae384a8b0

*** Signal 11: Backtracing from 0xaaaae3e1939c... done ***

*** Program crashed: Bad pointer dereference at 0x0000000000000018 ***

Thread 0 "swift-frontend" crashed:

 0      0x0000aaaae3e1939c swift::irgen::emitArchetypeTypeMetadataRef(swift::irgen::IRGenFunction&, swift::CanTypeWrapper<swift::ArchetypeType>, swift::irgen::DynamicMetadataRequest) + 232 in swift-frontend
 1 [ra] 0x0000aaaae3de4110 emitDirectTypeMetadataRef(swift::irgen::IRGenFunction&, swift::CanType, swift::irgen::DynamicMetadataRequest) + 243 in swift-frontend
 2 [ra] 0x0000aaaae3de3818 swift::irgen::IRGenFunction::emitTypeMetadataRef(swift::CanType, swift::irgen::DynamicMetadataRequest) + 311 in swift-frontend
 3 [ra] 0x0000aaaae3de5ec4 swift::irgen::IRGenFunction::emitTypeMetadataRefForLayout(swift::SILType, swift::irgen::DynamicMetadataRequest) + 251 in swift-frontend
 4 [ra] 0x0000aaaae3ee4c7c swift::irgen::IRGenFunction::emitValueWitnessTableRef(swift::SILType, swift::irgen::DynamicMetadataRequest, llvm::Value**) + 135 in swift-frontend
 5 [ra] 0x0000aaaae3ee4be8 swift::irgen::IRGenFunction::emitValueWitnessTableRef(swift::SILType, llvm::Value**) + 31 in swift-frontend
 6 [ra] 0x0000aaaae3efec1c swift::irgen::IRGenFunction::emitValueWitnessFunctionRef(swift::SILType, llvm::Value*&, swift::irgen::ValueWitness) + 183 in swift-frontend
 7 [ra] 0x0000aaaae3f007e4 swift::irgen::emitGetEnumTagSinglePayloadCall(swift::irgen::IRGenFunction&, swift::SILType, llvm::Value*, swift::irgen::Address) + 399 in swift-frontend
 8 [ra] 0x0000aaaae3e9c744 (anonymous namespace)::SinglePayloadEnumImplStrategy::testEnumContainsPayload(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::SILType) const + 483 in swift-frontend
 9 [ra] 0x0000aaaae3e9e3ac (anonymous namespace)::SinglePayloadEnumImplStrategy::emitIndirectInitialize(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, swift::IsTake_t, bool) const + 1179 in swift-frontend
10 [ra] 0x0000aaaae3e99a0c (anonymous namespace)::SinglePayloadEnumImplStrategy::initializeWithTake(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, bool) const + 399 in swift-frontend
11 [ra] 0x0000aaaae3e86d00 (anonymous namespace)::EnumTypeInfoBase<swift::irgen::WitnessSizedTypeInfo<(anonymous namespace)::NonFixedEnumTypeInfo> >::initializeWithTake(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, bool) const + 67 in swift-frontend
12 [ra] 0x0000aaaae3f38884 swift::irgen::RecordTypeInfoImpl<(anonymous namespace)::NonFixedStructTypeInfo, swift::irgen::WitnessSizedTypeInfo<(anonymous namespace)::NonFixedStructTypeInfo>, (anonymous namespace)::StructFieldInfo, false>::initializeWithTake(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, bool) const + 883 in swift-frontend
13 [ra] 0x0000aaaae3f38a1c swift::irgen::RecordTypeInfoImpl<(anonymous namespace)::NonFixedStructTypeInfo, swift::irgen::WitnessSizedTypeInfo<(anonymous namespace)::NonFixedStructTypeInfo>, (anonymous namespace)::StructFieldInfo, false>::initializeWithTake(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, bool) const + 1291 in swift-frontend
14 [ra] 0x0000aaaae3fa4658 void llvm::function_ref<void (swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, swift::irgen::TypeInfo const&)>::callback_fn<swift::irgen::IRGenModule::getOrCreateOutlinedInitializeWithTakeFunction(swift::SILType, swift::irgen::TypeInfo const&, swift::irgen::OutliningMetadataCollector const&)::$_1>(long, swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, swift::irgen::TypeInfo const&) + 383 in swift-frontend
15 [ra] 0x0000aaaae3fa4e40 void llvm::function_ref<void (swift::irgen::IRGenFunction&)>::callback_fn<swift::irgen::IRGenModule::getOrCreateOutlinedCopyAddrHelperFunction(swift::SILType, swift::irgen::TypeInfo const&, swift::irgen::OutliningMetadataCollector const&, llvm::StringRef, llvm::function_ref<void (swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, swift::irgen::TypeInfo const&)>)::$_5>(long, swift::irgen::IRGenFunction&) + 195 in swift-frontend
16 [ra] 0x0000aaaae3e7994c swift::irgen::IRGenModule::getOrCreateHelperFunction(llvm::StringRef, llvm::Type*, llvm::ArrayRef<llvm::Type*>, llvm::function_ref<void (swift::irgen::IRGenFunction&)>, bool, bool, bool) + 311 in swift-frontend
17 [ra] 0x0000aaaae3fa23b4 swift::irgen::IRGenModule::getOrCreateOutlinedCopyAddrHelperFunction(swift::SILType, swift::irgen::TypeInfo const&, swift::irgen::OutliningMetadataCollector const&, llvm::StringRef, llvm::function_ref<void (swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, swift::irgen::TypeInfo const&)>) + 191 in swift-frontend
18 [ra] 0x0000aaaae3fa1b94 swift::irgen::IRGenModule::getOrCreateOutlinedInitializeWithTakeFunction(swift::SILType, swift::irgen::TypeInfo const&, swift::irgen::OutliningMetadataCollector const&) + 543 in swift-frontend
19 [ra] 0x0000aaaae3fa1870 swift::irgen::OutliningMetadataCollector::emitCallToOutlinedCopy(swift::irgen::Address, swift::irgen::Address, swift::SILType, swift::irgen::TypeInfo const&, swift::IsInitialization_t, swift::IsTake_t) const + 375 in swift-frontend
20 [ra] 0x0000aaaae3fa43dc void llvm::function_ref<void (swift::irgen::OutliningMetadataCollector&)>::callback_fn<swift::irgen::TypeInfo::callOutlinedCopy(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, swift::IsInitialization_t, swift::IsTake_t) const::$_0>(long, swift::irgen::OutliningMetadataCollector&) + 127 in swift-frontend
21 [ra] 0x0000aaaae3fa1554 swift::irgen::TypeInfo::withWitnessableMetadataCollector(swift::irgen::IRGenFunction&, swift::SILType, swift::irgen::LayoutIsNeeded_t, swift::irgen::DeinitIsNeeded_t, llvm::function_ref<void (swift::irgen::OutliningMetadataCollector&)>) const + 623 in swift-frontend
22 [ra] 0x0000aaaae3fa15e4 swift::irgen::TypeInfo::callOutlinedCopy(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, swift::IsInitialization_t, swift::IsTake_t) const + 95 in swift-frontend
23 [ra] 0x0000aaaae3f38924 swift::irgen::RecordTypeInfoImpl<(anonymous namespace)::NonFixedStructTypeInfo, swift::irgen::WitnessSizedTypeInfo<(anonymous namespace)::NonFixedStructTypeInfo>, (anonymous namespace)::StructFieldInfo, false>::initializeWithTake(swift::irgen::IRGenFunction&, swift::irgen::Address, swift::irgen::Address, swift::SILType, bool) const + 1043 in swift-frontend
24 [ra] 0x0000aaaae3f846b4 (anonymous namespace)::IRGenSILFunction::visitSILBasicBlock(swift::SILBasicBlock*) + 57859 in swift-frontend
25 [ra] 0x0000aaaae3f75304 (anonymous namespace)::IRGenSILFunction::emitSILFunction() + 8447 in swift-frontend
26 [ra] 0x0000aaaae3f72e90 swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 1479 in swift-frontend
27 [ra] 0x0000aaaae3e67ce0 swift::irgen::IRGenerator::emitGlobalTopLevel(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) + 735 in swift-frontend
28 [ra] 0x0000aaaae3d59bb8 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 1739 in swift-frontend
29 [ra] 0x0000aaaae3d9b9a8 swift::GeneratedModule swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::callDerived<0ul>(swift::Evaluator&, std::integer_sequence<unsigned long, 0ul>) const + 155 in swift-frontend
30 [ra] 0x0000aaaae3d61de0 swift::IRGenRequest::OutputType swift::Evaluator::getResultUncached<swift::IRGenRequest, swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::{lambda()#1}>(swift::IRGenRequest const&, swift::evaluateOrFatal<swift::IRGenRequest>(swift::Evaluator&, swift::IRGenRequest)::{lambda()#1}) + 175 in swift-frontend
31 [ra] 0x0000aaaae3d5b568 swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule> >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 159 in swift-frontend
32 [ra] 0x0000aaaae3a1377c generateIR(swift::IRGenOptions const&, swift::TBDGenOptions const&, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule> >, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, llvm::GlobalVariable*&, llvm::ArrayRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >) + 235 in swift-frontend
33 [ra] 0x0000aaaae3a106e4 performCompileStepsPostSILGen(swift::CompilerInstance&, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule> >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1299 in swift-frontend
34 [ra] 0x0000aaaae3a0f6f8 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 375 in swift-frontend
35 [ra] 0x0000aaaae3a11a60 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1247 in swift-frontend
36 [ra] 0x0000aaaae3a11008 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2127 in swift-frontend
37 [ra] 0x0000aaaae384bd24 swift::mainEntry(int, char const**) + 4507 in swift-frontend
38 [ra] 0x0000ffff966284c4 <unknown> in libc.so.6
39 [ra] 0x0000ffff96628598 <unknown> in libc.so.6


Registers:

 x0 0x0000aaab0bcbd4c0  30 3b cd 0b ab aa 00 00 27 04 00 00 00 00 00 00  0;Í·«ª··'·······
 x1 0x0000000000000001  1
 x2 0x0000ffffd9ca3660  00 51 6a 0c ab aa 00 00 b0 b3 e4 e8 aa aa 00 00  ·Qj·«ª··°³ä說··
 x3 0x0000000000000000  0
 x4 0x0000000000000001  1
 x5 0x0000ffffd9ca36e0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 x6 0x0000aaab0c6b10d0  30 a9 00 00 00 00 00 00 10 d8 01 00 00 00 00 00  0©·······Ø······
 x7 0x000000000000b2c1  45761
 x8 0x0000000000000000  0
 x9 0x0000000000000000  0
x10 0x0000aaab0c6a5100  00 f0 ff ff ff ff ff ff 00 00 00 00 00 00 00 00  ·ðÿÿÿÿÿÿ········
x11 0x0000aaab0c6a4f50  00 f0 ff ff ff ff ff ff 00 00 00 00 00 00 00 00  ·ðÿÿÿÿÿÿ········
x12 0x000000000000003f  63
x13 0x0000000000000018  24
x14 0x0000000000000012  18
x15 0x0000000000000000  0
x16 0xfffffffffffff000  18446744073709547520
x17 0xffffffffffffe000  18446744073709543424
x18 0x0000000000000000  0
x19 0x0000aaab0be2f8d0  e0 c5 16 0b ab aa 00 00 22 02 00 04 00 00 01 00  àÅ··«ª··"·······
x20 0x0000ffffd9ca4e38  40 7b ca d9 ff ff 00 00 50 4e ca d9 ff ff 00 00  @{ÊÙÿÿ··PNÊÙÿÿ··
x21 0x0000ffffd9ca3e18  00 00 00 00 00 00 00 00 d0 f8 e2 0b ab aa 00 00  ········Ðøâ·«ª··
x22 0x0000ffffd9ca3a40  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
x23 0x0000000000000000  0
x24 0x0000000000000000  0
x25 0x0000ffffd9ca4348  38 4e ca d9 ff ff 00 00 b0 49 49 0c ab aa 00 00  8NÊÙÿÿ··°II·«ª··
x26 0x0000000000000006  6
x27 0x0000ffffd9ca3e18  00 00 00 00 00 00 00 00 d0 f8 e2 0b ab aa 00 00  ········Ðøâ·«ª··
x28 0x0000ffffd9ca4518  a0 46 ca d9 ff ff 00 00 00 00 00 00 e9 de bb 00   FÊÙÿÿ······éÞ»·
 fp 0x0000ffffd9ca37c0  80 3b ca d9 ff ff 00 00 10 41 de e3 aa aa 00 00  ·;ÊÙÿÿ···AÞ㪪··
 lr 0x0000aaaae3e19348  f7 03 00 aa 60 0a 40 f9 08 04 40 f9 09 1d 00 12  ÷··ª`·@ù··@ù····
 sp 0x0000ffffd9ca3710  60 3b ca d9 ff ff 00 00 78 86 15 e5 aa aa 00 00  `;ÊÙÿÿ··x··åªª··
 pc 0x0000aaaae3e1939c  08 0f 40 f9 09 01 7f 92 1f 01 00 f1 20 19 40 fa  ··@ù·······ñ ·@ú


Images (35 omitted):

0x0000aaaae2ff0000–0x0000aaaae9b5bd30 5b0ca4948bcefe440c516800266136c56aafafea swift-frontend /usr/bin/swift-frontend
0x0000ffff96600000–0x0000ffff96799c99 32fa4d6f3a8d5f430bdb7af2eb779470cd5ec7c2 libc.so.6      /usr/lib/aarch64-linux-gnu/libc.so.6

Backtrace took 0.08s

Expected behavior

No crash :-)

Environment

Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: aarch64-unknown-linux-gnu

Additional information

No response

@sebsto sebsto added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. crash Bug: A crash, i.e., an abnormal termination of software triage needed This issue needs more specific labels labels Mar 15, 2025
@sebsto sebsto changed the title 6.0.3 crashed on Linux when Mutex is used 6.0.3 crashes on Linux when Mutex is used Mar 15, 2025
@sebsto
Copy link
Author

sebsto commented Mar 15, 2025

I think this is the same issue as
#78048

@sebsto sebsto changed the title 6.0.3 crashes on Linux when Mutex is used 6.0.3 crashes on Linux when Mutex is used with generic types Mar 15, 2025
@ktoso ktoso added concurrency Feature: umbrella label for concurrency language features and removed triage needed This issue needs more specific labels labels Mar 17, 2025
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. concurrency Feature: umbrella label for concurrency language features crash Bug: A crash, i.e., an abnormal termination of software
Projects
None yet
Development

No branches or pull requests

2 participants