[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-distro-pkg-dev
Subject:    [Bug 2652] New: icedtea/cacao 2.6 fails as a build VM for icedtea
From:       bugzilla-daemon () icedtea ! classpath ! org
Date:       2015-09-28 11:25:58
Message-ID: bug-2652-30 () http ! icedtea ! classpath ! org/bugzilla/
[Download RAW message or body]


--1443439561.FbF2B040.1222
Date: Mon, 28 Sep 2015 11:26:01 +0000
MIME-Version: 1.0
Content-Type: text/plain

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2652

            Bug ID: 2652
           Summary: icedtea/cacao 2.6 fails as a build VM for icedtea
           Product: IcedTea
           Version: 2.6.1
          Hardware: all
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: CACAO
          Assignee: stefan@complang.tuwien.ac.at
          Reporter: stefan@complang.tuwien.ac.at
                CC: unassigned@icedtea.classpath.org, xerxes@zafena.se

What happens is this:

mkdir -p /home/sr/staging/staging-build7-temp/icedtea7/rewriter.build
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/javac -g
-encoding utf-8  -J-Xmx1024m -Xprefer:source -source 7 -target 7 \
         -d /home/sr/staging/staging-build7-temp/icedtea7/rewriter.build
./rewriter/com/redhat/rewriter/ClassRewriter.java
mkdir -p stamps
touch stamps/rewriter.stamp
mkdir -p rhino/rhino.{old,new} && \
        (cd rhino/rhino.old &&
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/jar xf
/usr/share/java/rhino.jar) && \
       
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/java -cp
/home/sr/staging/staging-build7-temp/icedtea7/rewriter.build \
          com.redhat.rewriter.ClassRewriter \
          /home/sr/staging/staging-build7-temp/icedtea7/rhino/rhino.old
/home/sr/staging/staging-build7-temp/icedtea7/rhino/rhino.new \
          org.mozilla sun.org.mozilla && \
        (cd rhino/rhino.old && \
         for files in `find -type f -not -name '*.class'` ; do \
           new_file=../rhino.new/`echo $files|/bin/sed -e 's#org#sun/org#'` ; \
           mkdir -p `dirname $new_file` ; \
           cp -v $files $new_file ; \
           /bin/sed -ie 's#org\.mozilla#sun.org.mozilla#g' $new_file ; \
         done \
        ) && \
        (cd rhino/rhino.new && \
        
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/jar cfm
../rhino.jar META-INF/MANIFEST.MF sun )
Exception in thread "null" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
        at com.redhat.rewriter.ClassRewriter.<clinit>(ClassRewriter.java:52)
make: *** [stamps/rewrite-rhino.stamp] Error 1

very early in the build process.

I know why this happens and have a preliminary patch fixing it.

The real reason is that getPackage returns null because the classLoader field
is not set in java.lang.Class. The JDK code expects the VM to set this now.
This has been changed in OpenJDK with this changeset:
http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jdk/rev/ac93f5941f48

-- 
You are receiving this mail because:
You are on the CC list for the bug.
--1443439561.FbF2B040.1222
Date: Mon, 28 Sep 2015 11:26:01 +0000
MIME-Version: 1.0
Content-Type: text/html

<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 - icedtea/cacao 2.6 fails as a build VM for icedtea"
   href="http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2652">2652</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>icedtea/cacao 2.6 fails as a build VM for icedtea
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>2.6.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>all
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>CACAO
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>stefan&#64;complang.tuwien.ac.at
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>stefan&#64;complang.tuwien.ac.at
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>unassigned&#64;icedtea.classpath.org, xerxes&#64;zafena.se
          </td>
        </tr></table>
      <p>
        <div>
        <pre>What happens is this:

mkdir -p /home/sr/staging/staging-build7-temp/icedtea7/rewriter.build
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/javac -g
-encoding utf-8  -J-Xmx1024m -Xprefer:source -source 7 -target 7 \
         -d /home/sr/staging/staging-build7-temp/icedtea7/rewriter.build
./rewriter/com/redhat/rewriter/ClassRewriter.java
mkdir -p stamps
touch stamps/rewriter.stamp
mkdir -p rhino/rhino.{old,new} &amp;&amp; \
        (cd rhino/rhino.old &amp;&amp;
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/jar xf
/usr/share/java/rhino.jar) &amp;&amp; \
       
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/java -cp
/home/sr/staging/staging-build7-temp/icedtea7/rewriter.build \
          com.redhat.rewriter.ClassRewriter \
          /home/sr/staging/staging-build7-temp/icedtea7/rhino/rhino.old
/home/sr/staging/staging-build7-temp/icedtea7/rhino/rhino.new \
          org.mozilla sun.org.mozilla &amp;&amp; \
        (cd rhino/rhino.old &amp;&amp; \
         for files in `find -type f -not -name '*.class'` ; do \
           new_file=../rhino.new/`echo $files|/bin/sed -e 's#org#sun/org#'` ; \
           mkdir -p `dirname $new_file` ; \
           cp -v $files $new_file ; \
           /bin/sed -ie 's#org\.mozilla#sun.org.mozilla#g' $new_file ; \
         done \
        ) &amp;&amp; \
        (cd rhino/rhino.new &amp;&amp; \
        
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/jar cfm
../rhino.jar META-INF/MANIFEST.MF sun )
Exception in thread &quot;null&quot; java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
        at com.redhat.rewriter.ClassRewriter.&lt;clinit&gt;(ClassRewriter.java:52)
make: *** [stamps/rewrite-rhino.stamp] Error 1

very early in the build process.

I know why this happens and have a preliminary patch fixing it.

The real reason is that getPackage returns null because the classLoader field
is not set in java.lang.Class. The JDK code expects the VM to set this now.
This has been changed in OpenJDK with this changeset:
<a href="http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jdk/rev/ac93f5941 \
f48">http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jdk/rev/ac93f5941f48</a></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>
--1443439561.FbF2B040.1222--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic