<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: segmentation fault"
   href="https://llvm.org/bugs/show_bug.cgi?id=25584">25584</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang: segmentation fault
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.7
          </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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hgrosenick@web.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15318" name="attach_15318" title="Dump from clang">attachment 15318</a> <a href="attachment.cgi?id=15318&action=edit" title="Dump from clang">[details]</a></span>
Dump from clang

Compilation call crashes on OpenSuSE leap (42.1).
Same code compiles well with clang ++ 3.3

clang++ -c -std=c++11 -g  -Wall -Wignored-qualifiers -Wparentheses
-Woverloaded-virtual -Wsign-compare -Werror -I. -I../../src -I../bindings
-I../brickapi -fPIC VisualizationClient.cpp -o
../../obj/Debug/VisualizationClient.o

#0 0x7f75b9a19638 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib64/libLLVMSupport.so.3.7+0xb8638)
#1 0x7f75b9a1a86b (/usr/bin/../lib64/libLLVMSupport.so.3.7+0xb986b)
#2 0x7f75b7d1f200 __restore_rt (/lib64/libc.so.6+0x35200)
#3 0x7f75b40aeabc (/usr/bin/../lib64/../lib64/libclangAST.so.3.7+0x202abc)
#4 0x7f75b8cd5eeb
clang::CodeGen::CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable*,
clang::VarDecl const*) (/usr/bin/../lib64/libclangCodeGen.so.3.7+0xd1eeb)
#5 0x7f75b8d8362b clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt
const&) (/usr/bin/../lib64/libclangCodeGen.so.3.7+0x17f62b)
#6 0x7f75b8d7d6c0 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt
const*) (/usr/bin/../lib64/libclangCodeGen.so.3.7+0x1796c0)
#7 0x7f75b8d7d0f6 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*)
(/usr/bin/../lib64/libclangCodeGen.so.3.7+0x1790f6)
#8 0x7f75b8d83f2c
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot)
(/usr/bin/../lib64/libclangCodeGen.so.3.7+0x17ff2c)
#9 0x7f75b8da49ab
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
(/usr/bin/../lib64/libclangCodeGen.so.3.7+0x1a09ab)
#10 0x7f75b8db16ec
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/bin/../lib64/libclangCodeGen.so.3.7+0x1ad6ec)
#11 0x7f75b8dae707
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) (/usr/bin/../lib64/libclangCodeGen.so.3.7+0x1aa707)
#12 0x7f75b8daa841 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/bin/../lib64/libclangCodeGen.so.3.7+0x1a6841)
#13 0x7f75b8daa869 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/bin/../lib64/libclangCodeGen.so.3.7+0x1a6869)
#14 0x7f75b8daa869 clang::CodeGen::CodeGenModule::EmitDeferred()
(/usr/bin/../lib64/libclangCodeGen.so.3.7+0x1a6869)
#15 0x7f75b8daa303 clang::CodeGen::CodeGenModule::Release()
(/usr/bin/../lib64/libclangCodeGen.so.3.7+0x1a6303)
#16 0x7f75b8d9fac6 (/usr/bin/../lib64/libclangCodeGen.so.3.7+0x19bac6)
#17 0x7f75b2efb393 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/bin/../lib64/../lib64/libclangParse.so.3.7+0x2b393)
#18 0x7f75b86b4e79 clang::FrontendAction::Execute()
(/usr/bin/../lib64/libclangFrontend.so.3.7+0x9ce79)
#19 0x7f75b8680da3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/bin/../lib64/libclangFrontend.so.3.7+0x68da3)
#20 0x7f75b8416073 clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/bin/../lib64/libclangFrontendTool.so.3.7+0x3073)
#21 0x40f9fe cc1_main(llvm::ArrayRef<char const*>, char const*, void*)
(/usr/bin/clang-3.7+0x40f9fe)
#22 0x40eab6 main (/usr/bin/clang-3.7+0x40eab6)
#23 0x7f75b7d0bb05 __libc_start_main (/lib64/libc.so.6+0x21b05)
#24 0x40bf6a _start (/usr/bin/clang-3.7+0x40bf6a)
Stack dump:
0.      Program arguments: /usr/bin/clang-3.7 -cc1 -triple x86_64-suse-linux
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
DeviceBarometer.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -g -dwarf-column-info
-coverage-file
/home/holger/Perforce/HomeStation_dev/HomeStation/src/stubserver/../../obj/Debug/DeviceBarometer.o
-resource-dir /usr/bin/../lib64/clang/3.7.0 -I . -I ../../src -I ../bindings -I
../brickapi -internal-isystem
/usr/bin/../lib64/gcc/x86_64-suse-linux/5/../../../../include/c++/5
-internal-isystem
/usr/bin/../lib64/gcc/x86_64-suse-linux/5/../../../../include/c++/5/x86_64-suse-linux
-internal-isystem
/usr/bin/../lib64/gcc/x86_64-suse-linux/5/../../../../include/c++/5/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib64/clang/3.7.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Wall -Wignored-qualifiers -Wparentheses
-Woverloaded-virtual -Wsign-compare -Werror -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir
/home/holger/Perforce/HomeStation_dev/HomeStation/src/stubserver -ferror-limit
19 -fmessage-length 140 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
../../obj/Debug/DeviceBarometer.o -x c++ DeviceBarometer.cpp 
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      ./DeviceFunctions.h:83:28: Generating code for declaration
'stubserver::buildBytes'
clang-3.7: error: unable to execute command: Segmentation fault
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final 246586)
Target: x86_64-suse-linux
Thread model: posix</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>