<html>
    <head>
      <base href="http://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 --- - Segfault using -fsanitize=address,undefined"
   href="http://llvm.org/bugs/show_bug.cgi?id=19768">19768</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segfault using -fsanitize=address,undefined
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>alexanderm.08@googlemail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12521" name="attach_12521" title="preprocessed source">attachment 12521</a> <a href="attachment.cgi?id=12521&action=edit" title="preprocessed source">[details]</a></span>
preprocessed source

There is a reproducible segfault upon compiling a project with clang head. I
think it's linked to using -fsanitize=address,undefined together, but did not
do a full analysis...

0  clang           0x0000000001c28545 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  clang           0x0000000001c28d33
2  libpthread.so.0 0x00007f72b44911f0
3  clang           0x0000000001bdaeea
llvm::CompositeType::getTypeAtIndex(llvm::Value const*) + 26
4  clang           0x00000000018d6c63
5  clang           0x00000000018dc85e
6  clang           0x00000000018dcf7e
7  clang           0x0000000001bc97fb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 507
8  clang           0x0000000001bc99db
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
9  clang           0x0000000001bc9e2b
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 843
10 clang           0x0000000000836e93
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
6787
11 clang           0x0000000000834877
12 clang           0x00000000009ca5a3 clang::ParseAST(clang::Sema&, bool, bool)
+ 515
13 clang           0x00000000006929d9 clang::FrontendAction::Execute() + 57
14 clang           0x000000000066c98d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 813
15 clang           0x0000000000654310
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3056
16 clang           0x000000000064c5ab cc1_main(char const**, char const**, char
const*, void*) + 539
17 clang           0x0000000000652467 main + 8487
18 libc.so.6       0x00007f72b326ba15 __libc_start_main + 245
19 clang           0x000000000064c2cd
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name tinyxml2.cpp -mrelocation-model static -mdisable-fp-elim
-mdisable-tail-calls -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 12.3
-momit-leaf-frame-pointer -g -coverage-file
/home/jenkins_home/machine/jobs/cppcheck-head-clang++/workspace/externals/tinyxml/tinyxml2.o
-resource-dir /usr/local/bin/../lib/clang/3.5.0 -I lib -I externals/tinyxml
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/x86_64-suse-linux
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/c++/4.7/backward
-internal-isystem
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../include/x86_64-suse-linux/c++/4.7
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.5.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O1 -Wall -Weverything -Wno-c++98-compat
-Wno-c++98-compat-pedantic -Wno-exit-time-destructors -Wno-global-constructors
-Wno-old-style-cast -Wno-sign-conversion -Wno-padded -Wno-weak-vtables
-std=c++0x -fdeprecated-macro -fdebug-compilation-dir
/home/jenkins_home/machine/jobs/cppcheck-head-clang++/workspace -ferror-limit
19 -fmessage-length 0
-fsanitize=address,init-order,use-after-return,alignment,array-bounds,bool,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,null,object-size,return,shift,signed-integer-overflow,unreachable,vla-bound,vptr
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -o externals/tinyxml/tinyxml2.o -x c++
externals/tinyxml/tinyxml2.cpp 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'Function Pass Manager' on module
'externals/tinyxml/tinyxml2.cpp'.
4.    Running pass 'Combine redundant instructions' on function
'@_ZN8tinyxml210XMLPrinter11PrintStringEPKcb'
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.5.0 (trunk 209066)
Target: x86_64-unknown-linux-gnu
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>