[llvm-bugs] [Bug 25947] New: Segfault when compiling simple C++14 test code

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 27 03:04:16 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25947

            Bug ID: 25947
           Summary: Segfault when compiling simple C++14 test code
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tiago at skewed.de
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15523
  --> https://llvm.org/bugs/attachment.cgi?id=15523&action=edit
Offending test file.

The clang++ compiler version 3.7.0 (on GNU/Linux) segfaults when compiling the
test code attached.

The segmentation fault can be reproduced with the following compilation script:

# Crash reproducer for clang version 3.7.0 (tags/RELEASE_370/final)
# Driver args: "--driver-mode=g++" "--std=c++14" "test.cc"
# Original command:  "/usr/bin/clang-3.7" "-cc1" "-triple"
"x86_64-unknown-linux-gnu" "-emit-obj" "-mrelax-all" "-disable-free"
"-disable-llvm-verifier" "-main-file-name" "test.cc" "-mrelocation-model"
"static" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno"
"-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array"
"-target-cpu" "x86-64" "-dwarf-column-info" "-resource-dir"
"/usr/bin/../lib/clang/3.7.0" "-internal-isystem"
"/sbin/../lib64/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../include/c++/5.3.0"
"-internal-isystem"
"/sbin/../lib64/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../include/c++/5.3.0/x86_64-unknown-linux-gnu"
"-internal-isystem"
"/sbin/../lib64/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../include/c++/5.3.0/backward"
"-internal-isystem" "/usr/local/include" "-internal-isystem"
"/usr/bin/../lib/clang/3.7.0/include" "-internal-externc-isystem" "/include"
"-internal-externc-isystem" "/usr/include" "--std=c++14" "-fdeprecated-macro"
"-fdebug-compilation-dir"
"/home/count0/stuff/workspace/graph-tool/build_clang_py3" "-ferror-limit" "19"
"-fmessage-length" "264" "-mstackrealign" "-fobjc-runtime=gcc"
"-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option"
"-fcolor-diagnostics" "-o" "/tmp/test-b0932d.o" "-x" "c++" "test.cc"
 "/usr/bin/clang-3.7" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj"
"-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-main-file-name"
"test.cc" "-mrelocation-model" "static" "-mthread-model" "posix"
"-mdisable-fp-elim" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases"
"-munwind-tables" "-fuse-init-array" "-target-cpu" "x86-64"
"-dwarf-column-info" "--std=c++14" "-fdeprecated-macro" "-ferror-limit" "19"
"-fmessage-length" "264" "-mstackrealign" "-fobjc-runtime=gcc"
"-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option"
"-fcolor-diagnostics" "-x" "c++" "test-ff3a26.cpp"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151227/18ad7fb3/attachment-0001.html>


More information about the llvm-bugs mailing list