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

Nikola Smiljanic popizdeh at gmail.com
Mon Sep 22 04:28:08 PDT 2014


clang --version will tell you the version. The rest of your emails was
unreadable :)

On Sat, Sep 20, 2014 at 12:49 AM, Krishanthan Krishnamoorthy <
krishan22 at hotmail.com> wrote:

> Hi, <div><br></div><div>sorry for the last
> email.</div><div><br></div><div><span
> style="font-size:11.0pt;line-height:107%;
>
> font-family:"Calibri","sans-serif";mso-ascii-theme-font:minor-latin;mso-fareast-font-family:
>
> Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;
> mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;
>
> mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA">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)</span></div><div><span
> style="font-size:11.0pt;line-height:107%;
>
> font-family:"Calibri","sans-serif";mso-ascii-theme-font:minor-latin;mso-fareast-font-family:
>
> Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;
> mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;
> mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"><br></span></div><div><span
> style="font-size:11.0pt;line-height:107%;
>
> font-family:"Calibri","sans-serif";mso-ascii-theme-font:minor-latin;mso-fareast-font-family:
>
> Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;
> mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;
> mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA"> </span></div><div><span
> style="font-size:11.0pt;line-height:107%;
>
> font-family:"Calibri","sans-serif";mso-ascii-theme-font:minor-latin;mso-fareast-font-family:
>
> Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;
> mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;
>
> mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA">$
> cd $CLOUD9_ROOT</span></div><div><span
> style="font-size:11.0pt;line-height:107%;
>
> font-family:"Calibri","sans-serif";mso-ascii-theme-font:minor-latin;mso-fareast-font-family:
>
> Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;
> mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;
>
> mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA">$
> gclient config --name src git+
> https://github.com/dslab-epfl/cloud9-depot.git </span></div><div><span
> style="font-size:11.0pt;line-height:107%;
>
> font-family:"Calibri","sans-serif";mso-ascii-theme-font:minor-latin;mso-fareast-font-family:
>
> Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;
> mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;
>
> mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA">$
> gclient sync </span></div><div><span style="font-size: 15px; line-height:
> 15.6933336257935px;"><font face="Calibri,
> sans-serif"><br></font></span></div><div><span
> style="font-size:11.0pt;line-height:107%;
>
> font-family:"Calibri","sans-serif";mso-ascii-theme-font:minor-latin;mso-fareast-font-family:
>
> Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;
> mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;
>
> mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA">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</span></div><div><br></div><div><br></div><div><span
> style="font-size: 15px; line-height: 15.6933336257935px;"><font
> face="Calibri, sans-serif">output :</font></span></div><div><span
> style="font-size: 15px; line-height: 15.6933336257935px;"><font
> face="Calibri, sans-serif"><br></font></span></div><div><span
> style="font-size: 15px; line-height: 15.6933336257935px;"><font
> face="Calibri, sans-serif"><br></font></span><div>krishan at ubuntu:~/cloud9/src/klee-uclibc$
> sudo make</div><div>[sudo] password for krishan: </div><div>Sorry, try
> again.</div><div>[sudo] password for krishan: </div><div>clang: clang:
> warning: argument unused during compilation:
> '-flto'warning: </div><div>clang: warning: argument unused during
> compilation: '-dN'</div><div>argument unused during compilation:
> '-flto'</div><div>  CC libcrypt/des.os</div><div>0  clang
> 0x0000000001c28bb2</div><div>1  clang
> 0x0000000001c29043</div><div>2  libpthread.so.0
> 0x00002ac1bbcd7cb0</div><div>3  clang           0x00000000007cb641
> clang::CodeGen::CGDebugInfo::getCompletedTypeOrNull(clang::QualType) +
> 177</div><div>4  clang           0x00000000007c1d88
> clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile)
> + 72</div><div>5  clang           0x00000000007c562c
> clang::CodeGen::CGDebugInfo::CreateType(clang::FunctionType const*,
> llvm::DIFile) + 108</div><div>6  clang           0x00000000007cb811
> clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile)
> + 337</div><div>7  clang           0x00000000007c1dcc
> clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile)
> + 140</div><div>8  clang           0x00000000007cd041
> clang::CodeGen::CGDebugInfo::getOrCreateFunctionType(clang::Decl const*,
> clang::QualType, llvm::DIFile) + 849</div><div>9  clang
> 0x00000000007cd6d8
> clang::CodeGen::CGDebugInfo::EmitFunctionStart(clang::GlobalDecl,
> clang::QualType, llvm::Function*, llvm::IRBuilder<true,
> llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >&) +
> 1656</div><div>10 clang           0x000000000088fb3c
> clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
> clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&,
> clang::CodeGen::FunctionArgList const&, clang::SourceLocation) +
> 1388</div><div>11 clang           0x0000000000890936
> clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
> llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 470</div><div>12
> clang           0x000000000077178c
> clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
> + 3228</div><div>13 clang           0x000000000076e754
> clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) +
> 260</div><div>14 clang           0x00000000007698ff</div><div>15 clang
>       0x0000000000768b97</div><div>16 clang           0x00000000008b67a3
> clang::ParseAST(clang::Sema&, bool, bool) + 291</div><div>17 clang
>   0x0000000000627a6d
> clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) +
> 893</div><div>18 clang           0x000000000060fcd8
> clang::ExecuteCompilerInvocation(clang::CompilerInstance*) +
> 2728</div><div>19 clang           0x0000000000605078 cc1_main(char const**,
> char const**, char const*, void*) + 664</div><div>20 clang
> 0x000000000060c1ae main + 3678</div><div>21 libc.so.6
> 0x00002ac1bc92076d __libc_start_main + 237</div><div>22 clang
> 0x0000000000604d05</div><div>Stack dump:</div><div>0.<span
> class="Apple-tab-span" style="white-space:pre">     </span>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 </div><div>1.<span class="Apple-tab-span"
> style="white-space:pre">        </span>libcrypt/des.c:642:1: current parser
> token 'char'</div><div>2.<span class="Apple-tab-span"
> style="white-space:pre">      </span>libcrypt/des.c:620:1: LLVM IR
> generation of declaration 'encrypt'</div><div>3.<span
> class="Apple-tab-span" style="white-space:pre">
> </span>libcrypt/des.c:620:1: Generating code for declaration
> 'encrypt'</div><div>clang: error: unable to execute command: Segmentation
> fault (core dumped)</div><div>clang: error: clang frontend command failed
> due to signal (use -v to see invocation)</div><div>clang: note: diagnostic
> msg: Please submit a bug report to http://llvm.org/bugs/ and include
> command line arguments and all diagnostic information.</div><div>clang:
> note: diagnostic msg: Preprocessed source(s) and associated run script(s)
> are located at:</div><div>clang: note: diagnostic msg:
> /tmp/des-6nf870.i</div><div>clang: note: diagnostic msg:
> /tmp/des-6nf870.sh</div><div>make: *** [libcrypt/des.os] Error
> 254</div><div>krishan at ubuntu:~/cloud9/src/klee-uclibc$</div><div><br></div><div><br></div><div><br></div><div>Please
> help
> me</div><div><br></div><div>Thanks.</div><div><br></div><div>Krish</div>________________________________<br>>
> From: popizdeh at gmail.com <br>> Date: Fri, 19 Sep 2014 13:01:29 +1000
> <br>> Subject: Re: [cfe-dev] clang: error: unable to execute command: <br>>
> Segmentation fault (core dumped) <br>> To: krishan22 at hotmail.com <br>>
> CC: cfe-dev at cs.uiuc.edu <br>> <br>> What version of clang are you using?
> Clang should generate a crash <br>> report with preprocessed file and
> invocation script that reproduces the <br>> bug, do you have this? <br>>
> <br>> On Fri, Sep 19, 2014 at 11:18 AM, Krishanthan Krishnamoorthy <br>> <
> krishan22 at hotmail.com<mailto:krishan22 at hotmail.com>> wrote: <br>> Hi All,
> <br>> <br>> I am building and installing the cloud9 symbolic execution
> engine in <br>> VMware, Ubuntu 12.04 machine. And in the middle of
> compiling process I <br>> got error like this <br>> <br>> clang: error:
> unable to execute command: Segmentation fault (core dumped) <br>> clang:
> error: clang frontend command failed due to signal (use -v to <br>> see
> invocation) <br>> <br>> Please help me, trying this for couple of days but
> no luck.. <br>> <br>> Thank-you <br>> <br>> Krish <br>> <br>>
> _______________________________________________ <br>> cfe-dev mailing list
> <br>> cfe-dev at cs.uiuc.edu<mailto:cfe-dev at cs.uiuc.edu> <br>>
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev <br>> <br>> <br></div>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140922/f9e0bd01/attachment.html>


More information about the cfe-dev mailing list