printf in ClassLoader constructor causes java.lang.Error: java.lang.IllegalStateException: recursive invocation
Deepak Bhole
dbhole at redhat.com
Wed Mar 23 13:33:11 PDT 2011
* Xerxes Rånby <xerxes at zafena.se> [2011-03-23 16:27]:
> On 2011-03-23 18:42, Deepak Bhole wrote:
> >* Xerxes Rånby<xerxes at zafena.se> [2011-03-23 11:54]:
> >>Hi all, I am observing a spooky issue while working on a small classloader.
> >>In the classloader constructor, im able to use
> >>System.out.println
> >>while
> >>System.out.printf causes an exception
> >>
> >>Is this an OpenJDK library bug or have I forgotten something crucial in my loader?
> >>
> >
> >Which version are you seeing this crash with? I am unable to reproduce
> >this with 1.9.7 or HEAD.
> >
> >Deepak
> >
> Deepak are you testing on Fedora v?
>
I tried with the Fedora 14 rpm and with HEAD:
F14 rpm:
$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (fedora-52.1.9.7.fc14-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
$ java -Djava.system.class.loader=PrintfClassLoader -version
Initializing Printf classloader....
I am the Printf classloader!java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (fedora-52.1.9.7.fc14-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
With HEAD:
$ ./builds/icedtea6/openjdk.build/j2sdk-image/bin/java -version
java version "1.6.0_22" OpenJDK Runtime Environment (IcedTea6 1.11pre+r95b6b42f92c3) (Fedora build 1.6.0_22-b22)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
$ ./builds/icedtea6/openjdk.build/j2sdk-image/bin/java -Djava.system.class.loader=PrintfClassLoader -version
Initializing Printf classloader....
I am the Printf classloader!java version "1.6.0_22" OpenJDK Runtime Environment (IcedTea6 1.11pre+r95b6b42f92c3) (Fedora build 1.6.0_22-b22)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
Cheers,
Deepak
> I have now tested the testcase on several machines:
>
> ### I can reproduce this bug using:
> x86_64 Ubuntu Lucid 10.04
> xranby at hp:~$ ./icedtea6-jamvm/openjdk.build/bin/java -version
> java version "1.6.0_22"
> IcedTea6 Runtime Environment (1.11pre+r1951b44ffa89) (Ubuntu build
> 1.6.0_22-b22)
> JamVM (build 1.6.0-devel, inline-threaded interpreter)
>
> x86_64 Ubuntu Lucid 10.04
> xranby at hp:~$ java -version
> java version "1.6.0_20"
> OpenJDK Runtime Environment (IcedTea6 1.9.2) (6b20-1.9.2-0ubuntu1~10.04.1)
> OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
>
> armv7 Ubuntu Maverick 10.10 running on armv7l hardware
> maverick at babbage:/wd$ java -version
> java version "1.6.0_18"
> OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-2ubuntu2)
> OpenJDK Zero VM (build 14.0-b16, mixed mode)
>
>
>
> ### I fail to reproduce this bug using:
> armv5 Debian Squeeze running on armv7l hardware
> xranby at babbage:~$ java -version
> java version "1.6.0_18"
> OpenJDK Runtime Environment (IcedTea6 1.8.3) (6b18-1.8.3-2+squeeze1)
> JamVM (build 1.6.0-devel, inline-threaded interpreter with stack-caching)
>
> armv5 Debian Squeeze running on armv7l hardware
> java version "1.6.0_18"
> OpenJDK Runtime Environment (IcedTea6 1.8.3) (6b18-1.8.3-2+squeeze1)
> OpenJDK Zero VM (build 14.0-b16, mixed mode)
>
>
>
> So from my experimentation and results obtained, it seems like this
> bug only triggers on Ubuntu systems. odd.
>
> Can other people verify these findings?
> Doko do you have any idea why this might be?
>
> Xerxes
More information about the distro-pkg-dev
mailing list