[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Java Problems



Hi.  This post follows on from:
http://lists.xensource.com/archives/html/xen-devel/2005-04/msg00185.html

And is possibly related to the bug referenced here:
http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4335360

In summary: Java processes are doing odd things.

1) It appears that number values are mysteriously changing. e.g. if you look at the Hashtable error there is no way the IllegalArgumentException could be thrown, unless the float value passed into a function is being corrupted somehow on the stack.

2) I'm seeing JVM crashes (e.g. the ColorModel crash below). I'm seeing other crashes inside native code methods in other apps I'm running.

I've tried this with/without /lib/tls. And on a RHEL4 and Debian Sarge DomU.

I don't see either problem when the same app runs on a non-Xen server.

Guesswork: I notice that SSE comes up in related to other reports of this bug (http://www.tommesani.com/SSE.html, http://bugs.sun.com/bugdatabase/view_bug.do;:YfiG?bug_id=4948500). Perhaps there is some kind of register corruption going on? Or something that could corrupt float arguments on the stack? And if that's the case then this could be something with wider implications than just Java processes.

Does anyone have any ideas what it might be? If you're interested in tracking it down, the following test case may help.

Regards, Peter
http://rimuhosting.com - Xen VPS Hosting


# prerequisite you'll need to install a 1.5 JDK from sun
# host is Xen 2.0.6
# uname -r
2.6.11.10-xenU-rimu1
#  wget http://downloads.rimuhosting.com/FillTest.java
# javac -target 1.4 -source 1.4 FillTest.java; while true; do java -client -Djava.awt.headless=true FillTest; ret=$?; if [ $? -ne 0 ]; then echo ret=$ret; break; fi; done
iteration 1
iteration 100001
iteration 200001
Exception in thread "main" java.lang.IllegalArgumentException: Width (7) and height (-2147483648) cannot be <= 0 at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:314)
        at FillTest.test(FillTest.java:19)
        at FillTest.main(FillTest.java:11)
iteration 1
iteration 100001
iteration 1500001
Exception in thread "main" java.lang.IllegalArgumentException: Illegal Load: NaN
        at java.util.Hashtable.<init>(Hashtable.java:160)
        at java.util.Hashtable.<init>(Hashtable.java:186)
at sun.awt.image.CachingSurfaceManager.<init>(CachingSurfaceManager.java:163) at sun.awt.motif.X11CachingSurfaceManager.<init>(X11CachingSurfaceManager.java:57) at sun.java2d.SurfaceManagerFactory.createCachingManager(SurfaceManagerFactory.java:38)
        at sun.awt.image.SurfaceManager.getManager(SurfaceManager.java:69)
        at sun.awt.image.SurfaceManager.getManager(SurfaceManager.java:45)
        at sun.java2d.SurfaceData.getDestSurfaceData(SurfaceData.java:113)
at sun.java2d.SunGraphicsEnvironment.createGraphics(SunGraphicsEnvironment.java:337) at sun.java2d.HeadlessGraphicsEnvironment.createGraphics(HeadlessGraphicsEnvironment.java:77) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1143)
        at FillTest.test(FillTest.java:20)
        at FillTest.main(FillTest.java:11)
iteration 1
iteration 100001
iteration 1200001
iteration 1300001
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x439437dd, pid=20786, tid=16384
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode, sharing)
# Problematic frame:
# J  java.awt.image.ColorModel.<init>(I[ILjava/awt/color/ColorSpace;ZZII)V
#
# An error report file with more information is saved as hs_err_pid20786.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
iteration 1
iteration 100001
iteration 200001
iteration 300001
iteration 700001
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x439437dd, pid=22123, tid=16384
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode, sharing)
# Problematic frame:
# J  java.awt.image.ColorModel.<init>(I[ILjava/awt/color/ColorSpace;ZZII)V
#
# An error report file with more information is saved as hs_err_pid22123.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
iteration 1
iteration 100001
iteration 200001
iteration 1100001
iteration 1200001
Exception in thread "main" java.lang.IllegalArgumentException: Illegal Load: NaN
        at java.util.Hashtable.<init>(Hashtable.java:160)
        at java.util.Hashtable.<init>(Hashtable.java:186)
at sun.awt.image.CachingSurfaceManager.<init>(CachingSurfaceManager.java:163) at sun.awt.motif.X11CachingSurfaceManager.<init>(X11CachingSurfaceManager.java:57) at sun.java2d.SurfaceManagerFactory.createCachingManager(SurfaceManagerFactory.java:38)
        at sun.awt.image.SurfaceManager.getManager(SurfaceManager.java:69)
        at sun.awt.image.SurfaceManager.getManager(SurfaceManager.java:45)
        at sun.java2d.SurfaceData.getDestSurfaceData(SurfaceData.java:113)
at sun.java2d.SunGraphicsEnvironment.createGraphics(SunGraphicsEnvironment.java:337) at sun.java2d.HeadlessGraphicsEnvironment.createGraphics(HeadlessGraphicsEnvironment.java:77) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1143)
        at FillTest.test(FillTest.java:20)
        at FillTest.main(FillTest.java:11)
iteration 1
iteration 100001





iteration 400001
iteration 500001
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x43adbbdd, pid=26268, tid=16384
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_04-b05 mixed mode)
# Problematic frame:
# j  java.awt.image.SinglePixelPackedSampleModel.<init>(IIII[I)V+62
#
# An error report file with more information is saved as hs_err_pid26268.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#


iteration 500001
Exception in thread "main" java.lang.IllegalArgumentException: Dimensions (width=1 height=7) are too large
        at java.awt.image.SampleModel.<init>(SampleModel.java:112)
at java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSampleModel.java:124)
        at java.awt.image.Raster.createPackedRaster(Raster.java:770)
        at java.awt.image.Raster.createPackedRaster(Raster.java:466)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
        at java.awt.image.BufferedImage.<init>(BufferedImage.java:314)
        at FillTest.test(FillTest.java:19)
        at FillTest.main(FillTest.java:11)
iteration 1
iteration 100001

iteration 400001
iteration 500001
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x43adbbdd, pid=24844, tid=16384
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_04-b05 mixed mode)
# Problematic frame:
# j java.awt.image.ColorModel.<init>(I[ILjava/awt/color/ColorSpace;ZZII)V+221
#
# An error report file with more information is saved as hs_err_pid24844.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted


iteration 1100001
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x43adbbdd, pid=24479, tid=16384
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_04-b05 mixed mode)
# Problematic frame:
# j java.awt.image.ColorModel.<init>(I[ILjava/awt/color/ColorSpace;ZZII)V+221
#
# An error report file with more information is saved as hs_err_pid24479.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.