<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang: error: unable to execute command: Segmentation fault"
   href="https://llvm.org/bugs/show_bug.cgi?id=26149">26149</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang: error: unable to execute command: Segmentation fault
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jtony@ca.ibm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>-bash-4.2$ cat rr.cpp
struct intrusive_ptr {
  ~intrusive_ptr() { }
};

struct SharedBuffer {
  intrusive_ptr _holder;
};

struct BSONObj {
  SharedBuffer _ownedBuffer;
};

struct IndexKeyEntry {
  BSONObj loc;
  struct Q { Q() /*throw(int)*/; } q;
};

IndexKeyEntry getRandomEntry() {
  return {};
}
-bash-4.2$
-bash-4.2$
-bash-4.2$ clang++  rr.cpp -c -v
clang version 3.6.1 (tags/RELEASE_361/final)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/ppc64le-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/ppc64le-redhat-linux/4.8.3
Selected GCC installation: /usr/lib/gcc/ppc64le-redhat-linux/4.8.3
Candidate multilib: .;@m64
Selected multilib: .;@m64

"/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/clang"
-cc1 -triple powerpc64le-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name rr.cpp -mrelocation-model static
-mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -fuse-init-array -target-cpu ppc64le -target-abi elfv2
-target-linker-version 2.23.52.0.1 -v -dwarf-column-info -coverage-file
/gsa/tlbgsa/home/j/t/jtony/workitems/123373/rr.cpp -resource-dir
/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/../lib/clang/3.6.1
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.3/../../../../include/c++/4.8.3
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.3/../../../../include/c++/4.8.3/ppc64le-redhat-linux
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.3/../../../../include/c++/4.8.3/backward
-internal-isystem /usr/local/include -internal-isystem
/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/../lib/clang/3.6.1/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir
/gsa/tlbgsa/home/j/t/jtony/workitems/123373 -ferror-limit 19 -fmessage-length
135 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -o rr.o -x c++ rr.cpp
clang -cc1 version 3.6.1 based upon LLVM 3.6.1 default target
powerpc64le-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/ppc64le-redhat-linux/4.8.3/../../../../include/c++/4.8.3

/usr/lib/gcc/ppc64le-redhat-linux/4.8.3/../../../../include/c++/4.8.3/ppc64le-redhat-linux
 /usr/lib/gcc/ppc64le-redhat-linux/4.8.3/../../../../include/c++/4.8.3/backward
 /usr/local/include

/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/../lib/clang/3.6.1/include
 /usr/include
End of search list.
rr.cpp:19:10: warning: generalized initializer lists are a C++11 extension
[-Wc++11-extensions]
  return {};
         ^~
#0 0x120b8c1c llvm::sys::PrintStackTrace(_IO_FILE*)
(/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/clang+0x120b8c1c)
#1 0x120b8ea4
(/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/clang+0x120b8ea4)
#2 0x120b6724
(/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/clang+0x120b6724)
#3 0x10006e887b3
0  clang     0x00000000120b8c1c llvm::sys::PrintStackTrace(_IO_FILE*) + 92
1  clang     0x00000000120b8ea4
2  clang     0x00000000120b6724
3            0x00003fff7dec0478 __kernel_sigtramp_rt64 + 0
4            0x0000010006e887b3 __kernel_sigtramp_rt64 + 2298250043
5  clang     0x000000001061db18
clang::CodeGen::CodeGenFunction::GetVTTParameter(clang::GlobalDecl, bool, bool)
+ 88
6  clang     0x00000000105b5298
7  clang     0x0000000010619844
clang::CodeGen::CodeGenFunction::EmitCXXDestructorCall(clang::CXXDestructorDecl
const*, clang::CXXDtorType, bool, bool, llvm::Value*) + 100
8  clang     0x0000000010619994
clang::CodeGen::CodeGenFunction::destroyCXXObject(clang::CodeGen::CodeGenFunction&,
llvm::Value*, clang::QualType) + 100
9  clang     0x000000001062cbd8
clang::CodeGen::CodeGenFunction::emitDestroy(llvm::Value*, clang::QualType,
void (*)(clang::CodeGen::CodeGenFunction&, llvm::Value*, clang::QualType),
bool) + 792
10 clang     0x000000001062cc7c
11 clang     0x0000000010623c44
12 clang     0x00000000106250a4
clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool) + 2276
13 clang     0x000000001062616c
clang::CodeGen::CodeGenFunction::DeactivateCleanupBlock(clang::CodeGen::EHScopeStack::stable_iterator,
llvm::Instruction*) + 572
14 clang     0x0000000010657da0
15 clang     0x0000000010655ff0
16 clang     0x0000000010656e98
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 152
17 clang     0x000000001053abfc
clang::CodeGen::CodeGenFunction::EmitReturnStmt(clang::ReturnStmt const&) +
1212
18 clang     0x000000001053dad0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 1232
19 clang     0x000000001053de70
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 144
20 clang     0x0000000010556864
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&,
clang::Stmt const*) + 500
21 clang     0x0000000010558e34
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 644
22 clang     0x000000001057cd94
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 532
23 clang     0x000000001057e560
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 480
24 clang     0x0000000010580f78
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1384
25 clang     0x00000000105816f8
26 clang     0x0000000010503ad0
27 clang     0x00000000104f4dac
28 clang     0x00000000106ef314 clang::ParseAST(clang::Sema&, bool, bool) + 404
29 clang     0x00000000103157ec clang::ASTFrontendAction::ExecuteAction() + 124
30 clang     0x00000000104f6a34 clang::CodeGenAction::ExecuteAction() + 36
31 clang     0x00000000103168e8 clang::FrontendAction::Execute() + 232
32 clang     0x00000000102ee818
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 408
33 clang     0x00000000102d2784
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2228
34 clang     0x00000000102cbfa8 cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 1208
35 clang     0x00000000102b0cb4 main + 8468
36 libc.so.6 0x00003fff7d964580
37 libc.so.6 0x00003fff7d964774 __libc_start_main + 196
Stack dump:
0.      Program arguments:
/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/clang
-cc1 -triple powerpc64le-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name rr.cpp -mrelocation-model static
-mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -fuse-init-array -target-cpu ppc64le -target-abi elfv2
-target-linker-version 2.23.52.0.1 -v -dwarf-column-info -coverage-file
/gsa/tlbgsa/home/j/t/jtony/workitems/123373/rr.cpp -resource-dir
/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/../lib/clang/3.6.1
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.3/../../../../include/c++/4.8.3
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.3/../../../../include/c++/4.8.3/ppc64le-redhat-linux
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.3/../../../../include/c++/4.8.3/backward
-internal-isystem /usr/local/include -internal-isystem
/gsa/tlbgsa-p1/08/xlcmpbld/run/clang/3.6.1/linux_leppc/daily/pure_clang_ga/bin/../lib/clang/3.6.1/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir
/gsa/tlbgsa/home/j/t/jtony/workitems/123373 -ferror-limit 19 -fmessage-length
135 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -o rr.o -x c++ rr.cpp
1.      <eof> parser at end of file
2.      rr.cpp:18:15: LLVM IR generation of declaration 'getRandomEntry'
3.      rr.cpp:18:15: Generating code for declaration 'getRandomEntry'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.1 (tags/RELEASE_361/final)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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/rr-1c4a3f.cpp
clang: note: diagnostic msg: /tmp/rr-1c4a3f.sh
clang: note: diagnostic msg:

********************
-bash-4.2$</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>