[cfe-dev] clang: error: unable to execute command: Segmentation fault (core dumped)

Krishanthan Krishnamoorthy krishan22 at hotmail.com
Fri Sep 19 07:34:17 PDT 2014


Hi, 

Actually, I don't know what version of clang is that, because I just followed this in the cloud9 (http://cloud9.epfl.ch/setting-up)


$ cd $CLOUD9_ROOT
$ gclient config --name src git+https://github.com/dslab-epfl/cloud9-depot.git
$ gclient sync



so when I run the gclient sync it will download LLVM+clang and build it. And I don't have any bug report that prdouce by clang. But when I run the make command again inside the klee folder I got the same 

problem


krishan at ubuntu:~/cloud9/src/klee-uclibc$ sudo make
[sudo] password for krishan: 
clang: clang: warning: argument unused during compilation: '-flto'warning: 
clang: warning: argument unused during compilation: '-dN'
argument unused during compilation: '-flto'
  CC libcrypt/des.os
0  clang           0x0000000001c28bb2
1  clang           0x0000000001c29043
2  libpthread.so.0 0x00002ac1bbcd7cb0
3  clang           0x00000000007cb641 clang::CodeGen::CGDebugInfo::getCompletedTypeOrNull(clang::QualType) + 177
4  clang           0x00000000007c1d88 clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 72
5  clang           0x00000000007c562c clang::CodeGen::CGDebugInfo::CreateType(clang::FunctionType const*, llvm::DIFile) + 108
6  clang           0x00000000007cb811 clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) + 337
7  clang           0x00000000007c1dcc clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) + 140
8  clang           0x00000000007cd041 clang::CodeGen::CGDebugInfo::getOrCreateFunctionType(clang::Decl const*, clang::QualType, llvm::DIFile) + 849
9  clang           0x00000000007cd6d8 clang::CodeGen::CGDebugInfo::EmitFunctionStart(clang::GlobalDecl, clang::QualType, llvm::Function*, llvm::IRBuilder>&) + 1656
10 clang           0x000000000088fb3c clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl, clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&, clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 1388
11 clang           0x0000000000890936 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 470
12 clang           0x000000000077178c clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 3228
13 clang           0x000000000076e754 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 260
14 clang           0x00000000007698ff
15 clang           0x0000000000768b97
16 clang           0x00000000008b67a3 clang::ParseAST(clang::Sema&, bool, bool) + 291
17 clang           0x0000000000627a6d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 893
18 clang           0x000000000060fcd8 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2728
19 clang           0x0000000000605078 cc1_main(char const**, char const**, char const*, void*) + 664
20 clang           0x000000000060c1ae main + 3678
21 libc.so.6       0x00002ac1bc92076d __libc_start_main + 237
22 clang           0x0000000000604d05
Stack dump:
0.	Program arguments: /home/krishan/cloud9/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -disable-free -main-file-name des.c -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.22 -momit-leaf-frame-pointer -g -coverage-file libcrypt/des.os -nostdsysteminc -nobuiltininc -resource-dir /home/krishan/cloud9/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.1 -isystem /usr/include/x86_64-linux-gnu -include ./include/libc-symbols.h -isystem .//../third_party/llvm-build/Release+Asserts/lib/clang/3.1/include -D STATIC -D NDEBUG -D NOT_IN_libc -D IS_IN_libcrypt -I ./include -I . -I /usr/include/ -fmodule-cache-path /var/tmp/clang-module-cache -O0 -Wall -Wstrict-prototypes -std=gnu99 -fdebug-compilation-dir /home/krishan/cloud9/src/klee-uclibc -ferror-limit 19 -fmessage-length 80 -mstackrealign -fno-builtin -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o libcrypt/des.os -x c libcrypt/des.c 
1.	libcrypt/des.c:642:1: current parser token 'char'
2.	libcrypt/des.c:620:1: LLVM IR generation of declaration 'encrypt'
3.	libcrypt/des.c:620:1: Generating code for declaration 'encrypt'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/des-6nf870.i
clang: note: diagnostic msg: /tmp/des-6nf870.sh
make: *** [libcrypt/des.os] Error 254
krishan at ubuntu:~/cloud9/src/klee-uclibc$ 


please help me

Thanks

Krish

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

From: popizdeh at gmail.com
Date: Fri, 19 Sep 2014 13:01:29 +1000
Subject: Re: [cfe-dev] clang: error: unable to execute command: Segmentation fault (core dumped)
To: krishan22 at hotmail.com
CC: cfe-dev at cs.uiuc.edu

What version of clang are you using? Clang should generate a crash report with preprocessed file and invocation script that reproduces the bug, do you have this?

On Fri, Sep 19, 2014 at 11:18 AM, Krishanthan Krishnamoorthy  wrote:
Hi All, 

I am building and installing the cloud9 symbolic execution engine in VMware, Ubuntu 12.04 machine. And in the middle of compiling process I got error like this 

clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)

Please help me, trying this for couple of days but no luck..

Thank-you

Krish

_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140919/16b14ff2/attachment.html>


More information about the cfe-dev mailing list