Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging a Java bus error



Bill Janssen wrote:

Current thread (0x01001370): JavaThread "main" [_thread_in_native, id=-1333784576]
Stack: [0xb0001000,0xb0801000)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J sun.awt.image.ImagingLib._transformBI(Ljava/awt/image/ BufferedImage;Ljava/awt/image/BufferedImage;[DI)I
J sun.awt.image.ImagingLib.filter(Ljava/awt/image/ BufferedImageOp;Ljava/awt/image/BufferedImage;Ljava/awt/image/ BufferedImage;)Ljava/awt/image/BufferedImage;
J java.awt.image.AffineTransformOp.filter(Ljava/awt/image/ BufferedImage;Ljava/awt/image/BufferedImage;)Ljava/awt/image/ BufferedImage;

If I read that correctly, it shows the bus error occurring in JIT- compiled code for the _transformBI method. That sounds like a JVM bug to me, specifically, in the code generated by the JIT compiler. You should file this at Apple's bug-reporter.


  http://developer.apple.com/bugreporter

Two possible ideas for followup testing.

1. Use the server VM instead of client VM. It might make a difference. Or not.

2. Use the -Xint VM option, which will disable the JIT-compiler and run everything purely interpreted. It will take 10x longer to run, but it should not trigger the bus error because there should be no "J=compiled Java code" anywhere. If it does trigger the bus error, then it's not just a JITC problem.

You might also set a debugger breakpoint on the _transformBI method and see if you can trace it before it triggers the bus error. Or at least pause it at that point and use the debugger to see what the process's memory usage and address-space look like.

  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.