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

        <tr>
          <th>Summary</th>
          <td>newgvn miscompilation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>matthias.krueger@famsik.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>test code: <a href="https://github.com/danmar/cppcheck">https://github.com/danmar/cppcheck</a> @
85ae3adeb2d3c79b775181380c9eae43d76c4d63

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.</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>