All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter <p.spamcatcher@rimuhosting.com>
To: xen-devel@lists.xensource.com
Cc: xen@gones.org
Subject: Java Problems
Date: Fri, 12 Aug 2005 15:03:14 +1200	[thread overview]
Message-ID: <42FC1172.8030209@rimuhosting.com> (raw)

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

             reply	other threads:[~2005-08-12  3:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-12  3:03 Peter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-12  8:16 Java Problems Ian Pratt
2005-08-12  9:35 ` Peter
2005-08-12 10:12 Ian Pratt
2005-08-12 13:31 David_Wolinsky
     [not found] <OF8DAF4393.0622A224-ON8525705B.004B18C0-8525705B.004B6D78@us.ibm.com>
2005-08-12 20:17 ` Peter
2005-08-12 21:29   ` Peter
2005-08-13 11:57     ` Keir Fraser
2005-08-14  0:29       ` Peter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42FC1172.8030209@rimuhosting.com \
    --to=p.spamcatcher@rimuhosting.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen@gones.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.