<html>
    <head>
      <base href="http://icedtea.classpath.org/bugzilla/" />
    </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 - Crash SIGSEGV in C2 Compilerthread when compiling one specific method"
   href="http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1710">1710</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash SIGSEGV in C2 Compilerthread when compiling one specific method
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>IcedTea
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6-1.13.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>IcedTea
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>gnu.andrew@redhat.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>stefan@huehner.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>unassigned@icedtea.classpath.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Since a openjdk/icedtea update in an ubuntu 10.04 instance from version
6b27-1.12.6-1ubuntu0.10.04.4 to version 6b30-1.13.1-1ubuntu2~0.10.04.1 we are
seeing a jvm crash always when exporting one specific JasperReports report with
some dataset to HTMl.

Attached is a extracted small code which reliably triggers the crash.

The crash can be observed on:
Ubuntu 10.04 (6b30-1.13.1-1ubuntu2~0.10.04.1 )
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.10.04.1)

Ubuntu 12.04
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1ubuntu2~0.12.04.1)

Debian/unstable
OpenJDK Runtime Environment (IcedTea6 1.13.1) (6b30-1.13.1-1)
OpenJDK Runtime Environment (IcedTea 2.4.5) (7u51-2.4.5-2)
Java(TM) SE Runtime Environment (build 1.7.0_51-b13) (oracle binary jdk)

Using the following versions the crash cannot be triggered with the code below:
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.10.04.4)
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)

Also the crash can be worked around by specifying the following extra parameter
for the jvm:
-XX:CompileCommand=exclude,net/sf/jasperreports/engine/export/JRGridLayout,horizontallyMergeEmptyCells

As the jvm internal c++ stacktrace is a bit different in those cases crash logs
of each case are attached below.

How to call reproducer:
java -cp lib/runtime/*:build/classes/ org.openbravo.JasperC2CompilerCrash

The triggering method
net.sf.jasperreports.engine.export.JRGridLayout::horizontallyMergeEmptyCells is
inside the jasperreports library.

The sourcecode for that library (if needed) can be downloaded here:
net.sf.jasperreports.engine.export.JRGridLayout::horizontallyMergeEmptyCells</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>