JDK1.2.1 build J,
in zh locale,
When draw chinese, jvm crash. reproduce it, run the attached file.
Run the program in JDK 1.2 FCS_V, it is OK!
When crash, give messages as below:
FATAL ERROR in native method: Leaving arrays locked on native method return
at java.lang.System.arraycopy(Native Method)
at sun.io.ByteToCharConverter.setSubstitutionChars(ByteToCharConverter.java, Compiled Code)
at sun.awt.font.NativeFontWrapper.drawStringByteDiscrete(Native Method)
at sun.java2d.loops.drawStringIndexed.DrawString(TextRendering.java, Compiled Code)
at sun.java2d.loops.RasterOutputManager.drawString(RasterOutputManager.java, Compiled Code)
at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java, Compiled Code)
at Draw2DStringCanvas.paint(Draw2DStringCanvas.java, Compiled Code)
at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java, Compiled Code)
SIGABRT 6* abort (generated by abort(3) routine)
si_signo [6]: SIGABRT 6* abort (generated by abort(3) routine)
si_errno [0]: ´íÎó0
si_code [0]: SI_USER [pid: 774, uid: 71599]
stackpointer=fa3011b8
Full thread dump Classic VM (JDK-1.2.1-K, green threads):
"Screen Updater" (TID:0xfb8c6f88, sys_thread_t:0x7f6ea0, state:CW) prio=4
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java, Compiled Code)
at sun.awt.ScreenUpdater.run(ScreenUpdater.java, Compiled Code)
"AWT-Motif" (TID:0xfb8b7d80, sys_thread_t:0x609c68, state:R) prio=5
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Thread.java, Compiled Code)
"SunToolkit.PostEventQueue-0" (TID:0xfb8b8060, sys_thread_t:0x5d25e8, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at sun.awt.PostEventQueue.run(SunToolkit.java, Compiled Code)
"AWT-EventQueue-0" (TID:0xfb8b8478, sys_thread_t:0x5cf730, state:R) prio=6
at java.lang.System.arraycopy(Native Method)
at sun.io.ByteToCharConverter.setSubstitutionChars(ByteToCharConverter.java, Compiled Code)
at sun.awt.font.NativeFontWrapper.drawStringByteDiscrete(Native Method)
at sun.java2d.loops.drawStringIndexed.DrawString(TextRendering.java, Compiled Code)
at sun.java2d.loops.RasterOutputManager.drawString(RasterOutputManager.java, Compiled Code)
at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java, Compiled Code)
at Draw2DStringCanvas.paint(Draw2DStringCanvas.java, Compiled Code)
at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java, Compiled Code)
"Finalizer" (TID:0xfb898320, sys_thread_t:0x69950, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0xfb8983b0, sys_thread_t:0x65d48, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0xfb8983e0, sys_thread_t:0x5e710, state:CW) prio=5
"Thread-0" (TID:0xfb8c6ee0, sys_thread_t:0x269a8, state:CW) prio=5
Monitor Cache Dump:
sun.awt.ScreenUpdater@FB8C6F88/FB9898B0: <unowned>
Waiting to be notified:
"Screen Updater" (0x7f6ea0)
sun.awt.PostEventQueue@FB8B8060/FBA2D758: <unowned>
Waiting to be notified:
"SunToolkit.PostEventQueue-0" (0x5d25e8)
java.lang.Class@FB8AAE40/FB92AB28: owner "AWT-EventQueue-0" (0x5cf730) 2 entries
java.lang.ref.ReferenceQueue$Lock@FB898338/FB8CDD68: <unowned>
Waiting to be notified:
"Finalizer" (0x69950)
java.lang.ref.Reference$Lock@FB8983C0/FB8CD8A8: <unowned>
Waiting to be notified:
"Reference Handler" (0x65d48)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "AWT-EventQueue-0" (0x5cf730) 1 entry
Dynamic loading lock: <unowned>
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x5e710)
Child death monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x2bc98)
Thread queue lock: owner "AWT-EventQueue-0" (0x5cf730) 1 entry
Waiting to be notified:
"Thread-0" (0x269a8)
Monitor registry: owner "AWT-EventQueue-0" (0x5cf730) 1 entry
in zh locale,
When draw chinese, jvm crash. reproduce it, run the attached file.
Run the program in JDK 1.2 FCS_V, it is OK!
When crash, give messages as below:
FATAL ERROR in native method: Leaving arrays locked on native method return
at java.lang.System.arraycopy(Native Method)
at sun.io.ByteToCharConverter.setSubstitutionChars(ByteToCharConverter.java, Compiled Code)
at sun.awt.font.NativeFontWrapper.drawStringByteDiscrete(Native Method)
at sun.java2d.loops.drawStringIndexed.DrawString(TextRendering.java, Compiled Code)
at sun.java2d.loops.RasterOutputManager.drawString(RasterOutputManager.java, Compiled Code)
at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java, Compiled Code)
at Draw2DStringCanvas.paint(Draw2DStringCanvas.java, Compiled Code)
at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java, Compiled Code)
SIGABRT 6* abort (generated by abort(3) routine)
si_signo [6]: SIGABRT 6* abort (generated by abort(3) routine)
si_errno [0]: ´íÎó0
si_code [0]: SI_USER [pid: 774, uid: 71599]
stackpointer=fa3011b8
Full thread dump Classic VM (JDK-1.2.1-K, green threads):
"Screen Updater" (TID:0xfb8c6f88, sys_thread_t:0x7f6ea0, state:CW) prio=4
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java, Compiled Code)
at sun.awt.ScreenUpdater.run(ScreenUpdater.java, Compiled Code)
"AWT-Motif" (TID:0xfb8b7d80, sys_thread_t:0x609c68, state:R) prio=5
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Thread.java, Compiled Code)
"SunToolkit.PostEventQueue-0" (TID:0xfb8b8060, sys_thread_t:0x5d25e8, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at sun.awt.PostEventQueue.run(SunToolkit.java, Compiled Code)
"AWT-EventQueue-0" (TID:0xfb8b8478, sys_thread_t:0x5cf730, state:R) prio=6
at java.lang.System.arraycopy(Native Method)
at sun.io.ByteToCharConverter.setSubstitutionChars(ByteToCharConverter.java, Compiled Code)
at sun.awt.font.NativeFontWrapper.drawStringByteDiscrete(Native Method)
at sun.java2d.loops.drawStringIndexed.DrawString(TextRendering.java, Compiled Code)
at sun.java2d.loops.RasterOutputManager.drawString(RasterOutputManager.java, Compiled Code)
at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java, Compiled Code)
at Draw2DStringCanvas.paint(Draw2DStringCanvas.java, Compiled Code)
at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java, Compiled Code)
at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java, Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java, Compiled Code)
"Finalizer" (TID:0xfb898320, sys_thread_t:0x69950, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0xfb8983b0, sys_thread_t:0x65d48, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java, Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0xfb8983e0, sys_thread_t:0x5e710, state:CW) prio=5
"Thread-0" (TID:0xfb8c6ee0, sys_thread_t:0x269a8, state:CW) prio=5
Monitor Cache Dump:
sun.awt.ScreenUpdater@FB8C6F88/FB9898B0: <unowned>
Waiting to be notified:
"Screen Updater" (0x7f6ea0)
sun.awt.PostEventQueue@FB8B8060/FBA2D758: <unowned>
Waiting to be notified:
"SunToolkit.PostEventQueue-0" (0x5d25e8)
java.lang.Class@FB8AAE40/FB92AB28: owner "AWT-EventQueue-0" (0x5cf730) 2 entries
java.lang.ref.ReferenceQueue$Lock@FB898338/FB8CDD68: <unowned>
Waiting to be notified:
"Finalizer" (0x69950)
java.lang.ref.Reference$Lock@FB8983C0/FB8CD8A8: <unowned>
Waiting to be notified:
"Reference Handler" (0x65d48)
Registered Monitor Dump:
PCMap lock: <unowned>
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class linking lock: <unowned>
System class loader lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor cache lock: owner "AWT-EventQueue-0" (0x5cf730) 1 entry
Dynamic loading lock: <unowned>
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x5e710)
Child death monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x2bc98)
Thread queue lock: owner "AWT-EventQueue-0" (0x5cf730) 1 entry
Waiting to be notified:
"Thread-0" (0x269a8)
Monitor registry: owner "AWT-EventQueue-0" (0x5cf730) 1 entry
- duplicates
-
JDK-4222403 Horizontally display chinese character ,appear garbage.
-
- Closed
-
-
JDK-4227747 2D drawString method causes VM crash on Solaris zh 2/6/2/7
-
- Closed
-