[llvm-bugs] [Bug 31480] New: newgvn miscompilation

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 27 07:06:01 PST 2016


            Bug ID: 31480
           Summary: newgvn miscompilation
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: matthias.krueger at famsik.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

test code: https://github.com/danmar/cppcheck @

llvm @r290606 

compile cppcheck with "-std=c++0x -O2", except for the file
"lib/symboldatabase.cpp" which additionally needs "-mllvm -enable-newgvn".

cppcheck will then crash when selfchecking
./cppcheck .
on the file cli/filelister.cpp with the configuration  _WIN32 
Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (reading at
0x26f6000). Stackoverflow?
*** Error in `./cppcheck': malloc(): memory corruption (fast):
0x00000000025e03e0 ***

which does not happen if symboldatabase.cpp is compiled without newgvn.

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/20161227/9cfb8aba/attachment.html>

More information about the llvm-bugs mailing list