[llvm-bugs] [Bug 37740] New: error: unable to execute command: Segmentation fault (core dumped)

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 7 13:17:19 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37740

            Bug ID: 37740
           Summary: error: unable to execute command: Segmentation fault
                    (core dumped)
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: todd.white at novafolium.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20401
  --> https://bugs.llvm.org/attachment.cgi?id=20401&action=edit
Crash Reproducing Script

BUILDING libobjc2 (https://github.com/gnustep/libobjc2.git)

----------------------------

Building C object
Test/CMakeFiles/ForwardDeclareProtocolAccess.dir/ForwardDeclareProtocol.m.o
#0 0x00007fcf44cb10ea llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1+0x81e0ea)
#1 0x00007fcf44caf366 llvm::sys::RunSignalHandlers()
(/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1+0x81c366)
#2 0x00007fcf44caf49b (/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1+0x81c49b)
#3 0x00007fcf47f41890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x000056493085dae1 (/usr/lib/llvm-6.0/bin/clang+0x6d1ae1)
#5 0x0000564930840af6 (/usr/lib/llvm-6.0/bin/clang+0x6b4af6)
#6 0x0000564930841360
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool)
(/usr/lib/llvm-6.0/bin/clang+0x6b5360)
#7 0x0000564930672c4d
clang::CodeGen::CodeGenFunction::EmitReturnStmt(clang::ReturnStmt const&)
(/usr/lib/llvm-6.0/bin/clang+0x4e6c4d)
#8 0x000056493067412f clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*, llvm::ArrayRef<clang::Attr const*>)
(/usr/lib/llvm-6.0/bin/clang+0x4e812f)
#9 0x00005649306745c3
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot)
(/usr/lib/llvm-6.0/bin/clang+0x4e85c3)
#10 0x00005649306ad181
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&,
clang::Stmt const*) (/usr/lib/llvm-6.0/bin/clang+0x521181)
#11 0x00005649306b4cd5
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/usr/lib/llvm-6.0/bin/clang+0x528cd5)
#12 0x00005649306d27dd
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/lib/llvm-6.0/bin/clang+0x5467dd)
#13 0x00005649306f8f38
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/lib/llvm-6.0/bin/clang+0x56cf38)
#14 0x00005649306f9e80
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl)
(/usr/lib/llvm-6.0/bin/clang+0x56de80)
#15 0x00005649306fadd5 (/usr/lib/llvm-6.0/bin/clang+0x56edd5)
#16 0x0000564930be6e81 (/usr/lib/llvm-6.0/bin/clang+0xa5ae81)
#17 0x0000564930bde746 (/usr/lib/llvm-6.0/bin/clang+0xa52746)
#18 0x0000564930e91813 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/lib/llvm-6.0/bin/clang+0xd05813)
#19 0x0000564930be4a27 clang::CodeGenAction::ExecuteAction()
(/usr/lib/llvm-6.0/bin/clang+0xa58a27)
#20 0x0000564930a1bb56 clang::FrontendAction::Execute()
(/usr/lib/llvm-6.0/bin/clang+0x88fb56)
#21 0x00005649309e5bfc
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/lib/llvm-6.0/bin/clang+0x859bfc)
#22 0x0000564930ac6f13
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/lib/llvm-6.0/bin/clang+0x93af13)
#23 0x00005649305e4e08 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/usr/lib/llvm-6.0/bin/clang+0x458e08)
#24 0x00005649305d3807 main (/usr/lib/llvm-6.0/bin/clang+0x447807)
#25 0x00007fcf4354db97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#26 0x00005649305e28aa _start (/usr/lib/llvm-6.0/bin/clang+0x4568aa)
Stack dump:
0.      Program arguments: /usr/lib/llvm-6.0/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name ForwardDeclareProtocol.m
-mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file
/home/medidynamics/Sources/libobjc2/Test/CMakeFiles/ForwardDeclareProtocolAccess.dir/ForwardDeclareProtocol.m.gcno
-resource-dir /usr/lib/llvm-6.0/lib/clang/6.0.0 -D GC_DEBUG -D GNUSTEP -D
NO_LEGACY -D OLDABI_COMPAT=1 -D TYPE_DEPENDENT_DISPATCH -D
__OBJC_RUNTIME_INTERNAL__=1 -I /home/medidynamics/Sources/libobjc2 -U NDEBUG -D
GS_RUNTIME_V2 -internal-isystem /usr/local/include -internal-isystem
/usr/lib/llvm-6.0/lib/clang/6.0.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O0 -std=gnu99 -fdebug-compilation-dir
/home/medidynamics/Sources/libobjc2/Test -ferror-limit 19 -fmessage-length 80
-fblocks -fobjc-runtime=gnustep-2.0 -fobjc-dispatch-method=non-legacy
-fobjc-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/ForwardDeclareProtocolAccess.dir/ForwardDeclareProtocol.m.o -x
objective-c /home/medidynamics/Sources/libobjc2/Test/ForwardDeclareProtocol.m 
1.      <eof> parser at end of file
2.      /home/medidynamics/Sources/libobjc2/Test/ForwardDeclareProtocol.m:4:11:
LLVM IR generation of declaration 'getProtocol'
3.      /home/medidynamics/Sources/libobjc2/Test/ForwardDeclareProtocol.m:4:11:
Generating code for declaration 'getProtocol'
clang frontend command failed due to signal (use -v to see invocation)

clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/ForwardDeclareProtocol-ec3526.m


# 1 "<built-in>"
# 1 "/home/medidynamics/Sources/libobjc2/Test/ForwardDeclareProtocol.m"
#pragma clang diagnostic ignored "-Wat-protocol"
@protocol P;

Protocol *getProtocol(void)
{
        return @protocol(P);
}

clang: note: diagnostic msg: /tmp/ForwardDeclareProtocol-ec3526.sh
[ATTACHMENT]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180607/d1bfc711/attachment.html>


More information about the llvm-bugs mailing list