I got the prebuilt AWT binaries for jdk117v1a, both native-threads and
green-threads versions, and they work just fine on my Linux Debian 2.0
box.
I then rebuilt, using the combination of
jdk-1.1.7-v1a.diffs.gz
JDK1_1_7K.solwin32.31_Aug_98.zip
lesstif 0.83
libc6 2.0.7t
and found that both green_threads and native_threads had serious
troubles. They both complained about unresolved X-windows symbols.
I first added the extra arguments below after the "-L".
LDFLAGS += -L$(LIBDIR)/$(ARCH)/$(TSOBJDIR) $(MOTIF_DIR)/lib/libXm.a -lXt -lXext
Now green_threads works most of the time (albeit with some
un-reproducible errors).
But native_threads seg-faults. Clearly, I'm doing something wrong,
because native_threads didn't seg-fault before.
In addition, I tried to use gdb to print out the shared-libs which
were mapped in my JDK, and did not find libawt.so (or libawt_g.so)
amongst the list. Nor any of the X-windows shared-libraries.
Weird. Very weird. Has anybody gotten this JDK to work with
native-threads *and* Lesstif?
Thanks,
--chet--
================================================================
SIGSEGV 11* segmentation violation
stackbase=BF9FFE70, stackpointer=BF9FD9F0
Full thread dump:
"AWT-Motif" (TID:0x4051c590, sys_thread_t:0x817be58, state:R, thread_t: t@7175,
sp:0x0 threadID:0x31a1, stack_base:0xbedffe7c, stack_size:0x200000) prio=10
java.lang.Thread.run(Thread.java)
"AWT-Input" (TID:0x4051c5b0, sys_thread_t:0x8177c20, state:R, thread_t: t@6150,
sp:0x0 threadID:0x31a0, stack_base:0xbefffe7c, stack_size:0x200000) prio=5
"AWT-EventQueue-0" (TID:0x4051c5c8, sys_thread_t:0x814c070, state:CW, thread_t:
t@5125, sp:0x0 threadID:0x319f, stack_base:0xbf1ffe7c, stack_size:0x200000) prio=5
java.lang.Object.wait(Object.java)
java.awt.EventQueue.getNextEvent(EventQueue.java:118)
java.awt.EventDispatchThread.run(EventDispatchThread.java:67)
"thread applet-Animator.class" (TID:0x4051bd48, sys_thread_t:0x814efe8, state:CW,
thread_t: t@4100, sp:0x0 threadID:0x319e, stack_base:0xbf3ffe7c, stack_size:0x200000)
prio=4
java.lang.Object.wait(Object.java)
sun.applet.AppletPanel.getNextEvent(AppletPanel.java:214)
sun.applet.AppletPanel.run(AppletPanel.java:238)
java.lang.Thread.run(Thread.java)
"SIGQUIT handler" (TID:0x4050a2a0, sys_thread_t:0x8060ee0, state:R, thread_t:
t@3075, sp:0x0 threadID:0x319d, stack_base:0xbf5ffe7c, stack_size:0x200000) prio=0
"Finalizer thread" (TID:0x4050a088, sys_thread_t:0x8060dd0, state:CW, thread_t:
t@2050, sp:0x0 threadID:0x319c, stack_base:0xbf7ffe7c, stack_size:0x200000) prio=1
"main" (TID:0x4050a0b0, sys_thread_t:0x8055548, state:R, thread_t: t@1025, sp:0x0
threadID:0x319b, stack_base:0xbf9ffe70, stack_size:0x200000) prio=5 *current thread*
sun.awt.motif.MComponentPeer.setFont(MComponentPeer.java:188)
sun.awt.motif.MFramePeer.<init>(MFramePeer.java:73)
sun.awt.motif.MToolkit.createFrame(MToolkit.java:117)
java.awt.Frame.addNotify(Frame.java:203)
java.awt.Window.pack(Window.java:123)
sun.applet.AppletViewer.<init>(AppletViewer.java:194)
sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:79)
sun.applet.AppletViewer.parse(AppletViewer.java:938)
sun.applet.AppletViewer.parse(AppletViewer.java:904)
sun.applet.AppletViewer.main(AppletViewer.java:1081)
Monitor Cache Dump:
sun.applet.AppletViewerPanel@1079097936/1079663816: <unowned>
Waiting to be notified:
"thread applet-Animator.class" (0x814efe8)
java.awt.EventQueue@1079100952/1079681016: <unowned>
Waiting to be notified:
"AWT-EventQueue-0" (0x814c070)
sun.awt.motif.MToolkit@1079101000/1079679872: owner "main" (0x8055548, 1 entry)
java.lang.Object@1079042072/1079415736: owner "main" (0x8055548, 1 entry)
Registered Monitor Dump:
Thread queue lock: <unowned>
Name and type hash table lock: <unowned>
String intern lock: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class loading lock: <unowned>
Java stack lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Has finalization queue lock: <unowned>
Finalize me queue lock: <unowned>
Waiting to be notified:
"Finalizer thread" (0x8060dd0)
Monitor registry: owner "main" (0x8055548, 1 entry)
/a/bismarck/homes/bismarck.2/aix-jdk/jdk117k-linux/build/genunix/demo/applets/Animator/../../../../bin/../bin/i686/native_threads/appletviewer:
line 52: 12697 Aborted `dirname $0`/java$progsuffix $RUNTIME_ARGS
sun.applet.AppletViewer $args