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-11080] assertion failed: "concrete buffer already formed?!" #53472

Open
swift-ci opened this issue Jul 8, 2019 · 1 comment
Open

[SR-11080] assertion failed: "concrete buffer already formed?!" #53472

swift-ci opened this issue Jul 8, 2019 · 1 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

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Jul 8, 2019

Previous ID SR-11080
Radar None
Original Reporter wimlewis (JIRA User)
Type Bug

Attachment: Download

Environment

Ubuntu Linux, x86_64

swift-5.1-DEVELOPMENT-SNAPSHOT-2019-05-29-a-ubuntu18.04

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

md5: dcc28e5b873fd3af8ffc5581f00b33a7

Issue Description:

The attached project crashes swift build with the following messages. (The code looks weird because I ran it through a delta minimizer.)

swift: /home/buildnode/jenkins/workspace/oss-swift-5.1-package-linux-ubuntu-18_04/swift/lib/SILGen/SILGenConvert.cpp:556: virtual swift::SILValue (anonymous namespace)::ExistentialInitialization::getAddressForInPlaceInitialization(swift::Lowering::SILGenFunction &, swift::SILLocation): Assertion !concreteBuffer && "concrete buffer already formed?!"' failed. Stack dump: 0. Program arguments: /home/wiml/swift-lang/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-05-29-a-ubuntu18.04/usr/bin/swift -frontend -c /home/wiml/src/swiftder/minimize/CompilerCrashExample/src/OtherFile.swift -primary-file /home/wiml/src/swiftder/minimize/CompilerCrashExample/src/main.swift -emit-module-path /home/wiml/src/swiftder/minimize/CompilerCrashExample/.build/x86_64-unknown-linux/debug/CompilerCrashExample.build/mainpartial.swiftmodule -emit-module-doc-path /home/wiml/src/swiftder/minimize/CompilerCrashExample/.build/x86_64-unknown-linux/debug/CompilerCrashExample.build/mainpartial.swiftdoc -emit-dependencies-path /home/wiml/src/swiftder/minimize/CompilerCrashExample/.build/x86_64-unknown-linux/debug/CompilerCrashExample.build/main.d -emit-reference-dependencies-path /home/wiml/src/swiftder/minimize/CompilerCrashExample/.build/x86_64-unknown-linux/debug/CompilerCrashExample.build/main.swiftdeps -target x86_64-unknown-linux -disable-objc-interop -sdk / -I /home/wiml/src/swiftder/minimize/CompilerCrashExample/.build/x86_64-unknown-linux/debug -enable-testing -g -module-cache-path /home/wiml/src/swiftder/minimize/CompilerCrashExample/.build/x86_64-unknown-linux/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -color-diagnostics -enable-anonymous-context-mangled-names -module-name CompilerCrashExample -o /home/wiml/src/swiftder/minimize/CompilerCrashExample/.build/x86_64-unknown-linux/debug/CompilerCrashExample.build/main.swift.o -index-store-path /home/wiml/src/swiftder/minimize/CompilerCrashExample/.build/x86_64-unknown-linux/debug/index/store -index-system-modules #​0 0x00000000044cd6a4 PrintStackTraceSignalHandler(void*) (/home/wiml/swift-lang/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-05-29-a-ubuntu18.04/usr/bin/swift+0x44cd6a4) #​1 0x00000000044cb2fe llvm::sys::RunSignalHandlers() (/home/wiml/swift-lang/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-05-29-a-ubuntu18.04/usr/bin/swift+0x44cb2fe) #​2 0x00000000044cdab8 SignalHandler(int) (/home/wiml/swift-lang/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-05-29-a-ubuntu18.04/usr/bin/swift+0x44cdab8) #​3 0x00007fabea15ddd0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12dd0) #​4 0x00007fabe95cc077 gsignal /build/glibc-B9XfQf/glibc-2.28/signal/../sysdeps/unix/sysv/linux/internal-signals.h:84:10 #​5 0x00007fabe95ad535 abort /build/glibc-B9XfQf/glibc-2.28/stdlib/abort.c:81:7 #​6 0x00007fabe95ad40f get_sysdep_segment_value /build/glibc-B9XfQf/glibc-2.28/intl/loadmsgcat.c:509:8 #​7 0x00007fabe95ad40f __tls_get_addr /build/glibc-B9XfQf/glibc-2.28/intl/loadmsgcat.c:970:34 #​8 0x00007fabe95bd142 (/lib/x86_64-linux-gnu/libc.so.6+0x32142) #​9 0x000000000085e232 (anonymous namespace)::ExistentialInitialization::getAddressForInPlaceInitialization(swift::Lowering::SILGenFunction&, swift::SILLocation) (/home/wiml/swift-lang/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-05-29-a-ubuntu18.04/usr/bin/swift+0x85e232) #10 0x0000000000888aa6 (anonymous namespace)::RValueEmitter::visitOptionalTryExpr(swift::OptionalTryExpr*, swift::Lowering::SGFContext) (/home/wiml/swift-lang/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-05-29-a-ubuntu18.04/usr/bin/swift+0x888aa6) #11 0x000000000087f9ee swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) (/home/wiml/swift-lang/swift-5.1-DEVELOPMENT-SNAPSHOT-2019-05-29-a-ubuntu18.04/usr/bin/swift+0x87f9ee)`

@belkadan
Copy link
Contributor

belkadan commented Jul 8, 2019

The code doesn't compile, at least not on a Mac. What's "id" supposed to be?

@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