-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.2.0, 1.2.2
-
sparc
-
solaris_2.6
Name: akC57697 Date: 01/12/99
The JDK1.2.2 java_g dumps core executing JCK swing tests.
The minimal example of the failure is below:
--------------------------------8-<----------------------------------------
import javax.swing.JTextField;
class Test {
public static void main(String[] argv) {
JTextField c = new
JTextField(" Test text. This text should be ignored.");
c.setSelectionStart(1);
c.setSelectionEnd(10);
String selectedText = c.getSelectedText();
c.copy();
System.out.println("OKAY");
System.exit(0);
}
}
--------------------------------8-<----------------------------------------
Output:
(###@###.###): java Test
OKAY
(###@###.###): java_g Test
testing 32 values
/usr/openwin/lib/X11/fonts/TrueType/Arial.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/CourierNew-BoldItalic.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/TimesNewRoman-Bold.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/TimesNewRoman.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/CourierNew-Italic.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/Arial-BoldItalic.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/CourierNew.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/Arial-Italic.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/Arial-Bold.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/TimesNewRoman-Italic.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/TimesNewRoman-BoldItalic.ttf - CMAP 3,1 found at offset 282.
/usr/openwin/lib/X11/fonts/TrueType/CourierNew-Bold.ttf - CMAP 3,1 found at offset 282.
Warning:
Cannot allocate colormap entry for default background
/usr/openwin/lib/X11/fonts/TrueType/Arial.ttf - CMAP 3,1 found at offset 282.
FATAL ERROR in native method: Wrong field ID passed to JNI
at sun.awt.motif.X11Selection.registerTargetForFlavor(Native Method)
at sun.awt.motif.X11Selection.<clinit>(X11Selection.java:49)
at sun.awt.motif.X11Clipboard.<init>(Compiled Code)
at sun.awt.motif.MToolkit.getSystemClipboard(Compiled Code)
at javax.swing.text.JTextComponent.copy(Compiled Code)
at Test.main(Compiled Code)
SIGABRT 6* abort (generated by abort(3) routine)
si_signo [6]: SIGABRT 6* abort (generated by abort(3) routine)
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 244: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 244: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 252: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 244: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 252: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 244: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 252: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 252: assertion failure
si_errno [0]: Error 0
si_code [0]: SI_USER [pid: 27392, uid: 302]
stackpointer=efffb264
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 244: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 252: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 244: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 252: assertion failure
Full thread dump Classic VM (JDK-1.2.2-B, green threads):
"TimerQueue" (TID:0xebcbbec0, sys_thread_t:0x4d4da8, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at javax.swing.TimerQueue.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
"AWT-Motif" (TID:0xebcb4f50, sys_thread_t:0x35d9a0, state:CW) prio=5
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Compiled Code)
"SunToolkit.PostEventQueue-0" (TID:0xebcb5788, sys_thread_t:0x33f210, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Compiled Code)
at sun.awt.PostEventQueue.run(Compiled Code)
"AWT-EventQueue-0" (TID:0xebcb5738, sys_thread_t:0x33f0d8, state:CW) prio=6
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Compiled Code)
at java.awt.EventQueue.getNextEvent(Compiled Code)
at java.awt.EventDispatchThread.pumpOneEvent(Compiled Code)
at java.awt.EventDispatchThread.pumpEvents(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
"Finalizer" (TID:0xebc98328, sys_thread_t:0x6a4c8, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(Compiled Code)
at java.lang.ref.ReferenceQueue.remove(Compiled Code)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0xebc983b8, sys_thread_t:0x66748, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0xebc983e8, sys_thread_t:0x5ee80, state:CW) prio=5
"main" (TID:0xebc981e8, sys_thread_t:0x26778, state:R) prio=5
at sun.awt.motif.X11Selection.registerTargetForFlavor(Native Method)
at sun.awt.motif.X11Selection.<clinit>(X11Selection.java:49)
at sun.awt.motif.X11Clipboard.<init>(Compiled Code)
at sun.awt.motif.MToolkit.getSystemClipboard(Compiled Code)
at javax.swing.text.JTextComponent.copy(Compiled Code)
at Test.main(Compiled Code)
Monitor Cache Dump:
java.lang.Class@EBCA67F8/EBD157C8: owner "main" (0x26778) 1 entry
javax.swing.TimerQueue@EBCBBEE8/EBDEE110: <unowned>
Waiting to be notified:
"TimerQueue" (0x4d4da8)
sun.awt.PostEventQueue@EBCB5788/EBD77F60: <unowned>
Waiting to be notified:
"SunToolkit.PostEventQueue-0" (0x33f210)
java.awt.EventQueue@EBCB5B80/EBD77C98: <unowned>
Waiting to be notified:
"AWT-EventQueue-0" (0x33f0d8)
java.lang.ref.ReferenceQueue$Lock@EBC98340/EBCCE188: <unowned>
Waiting to be notified:
"Finalizer" (0x6a4c8)
java.lang.ref.Reference$Lock@EBC983C8/EBCCDC58: <unowned>
Waiting to be notified:
"Reference Handler" (0x66748)
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 "main" (0x26778) 1 entry
Dynamic loading lock: <unowned>
Monitor IO lock: <unowned>
User signal monitor: <unowned>
Waiting to be notified:
"Signal dispatcher" (0x5ee80)
Child death monitor: <unowned>
I/O monitor: <unowned>
Waiting to be notified:
"AWT-Motif" (0x35d9a0)
Alarm monitor: <unowned>
Waiting to be notified:
<unknown thread> (0x2ba68)
Thread queue lock: owner "main" (0x26778) 1 entry
Monitor registry: owner "main" (0x26778) 1 entry
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 244: assertion failure
*** panic: "../../../../../src/solaris/hpi/green_threads/src/mutex_md.c", line 252: assertion failure
Abort (core dumped)
(gdb) where
#0 0xef5872e0 in _libc_kill ()
#1 0xef53a558 in abort ()
#2 0xef678c48 in Abort ()
#3 0xef69581c in jni_FatalError ()
#4 0xef6ae7d4 in checked_jni_SetIntField ()
#5 0xeada37c4 in Java_sun_awt_motif_X11Selection_registerTargetForFlavor ()
#6 0xef705544 in args_done ()
#7 0xef6597fc in invokeJNINativeMethod ()
#8 0xef65a14c in invokeLazyNativeMethod ()
#9 0xef689d38 in ExecuteJava_C ()
#10 0xef6756fc in do_execute_java_method_vararg ()
#11 0xef674d64 in do_execute_java_method ()
#12 0xef65b490 in RunStaticInitializers ()
#13 0xef65b888 in InitClass ()
#14 0xef0491f4 in JITPerformDynamicPatch ()
#15 0xef08c200 in JITResolveConstPoolEntry ()
#16 0x4e70c8 in ?? ()
#17 0x4e62b4 in ?? ()
#18 0x4e5f5c in ?? ()
#19 0x176b44 in ?? ()
#20 0xef08c338 in JIT_INVOKER_MARKER ()
#21 0xef045124 in JITInvokeCompiler ()
#22 0xef689d38 in ExecuteJava_C ()
#23 0xef6942ec in jni_Invoke ()
#24 0xef69b970 in jni_CallStaticVoidMethodV ()
#25 0xef6b2b1c in checked_jni_CallStaticVoidMethod ()
#26 0x11a6c in main ()
java full version "JDK-1.2.2-B"
======================================================================
- duplicates
-
JDK-4180145 Incorrect JNI field id used to access DataFlavor.atom in Solaris DnD code
-
- Resolved
-