I just upgraded to the jdk117_alpha21164a_bin and am having trouble
with some of the demo programs seg faulting or aborting while using
SWiM Motif. 

They all work fine when I set my LD_LIBRARY_PATH to use lesstif 0.87.
So this is not a critical bug.  But it is interesting nonetheless.

An example would be the 
appletviewer GraphicsTest/example1.html

It opens the appletviewer box, then immediately crashes before
displaying anything.

See the end of this message for an error outputs.

I'm using a 533Mhz LX processor.  
Redhat 5.2
kernel 2.0.35
glibc-2.0.7
The SVGA_XF86 driver supporting my Millenium SVGA.
SWiM Motif 1.2.4.

The Afterstep window manager.

JAVA_HOME, CLASSPATH, JDK_HOME are all unset.

I have not applied any of the kernel patches in the appendix yet.

Other AWT things like the MoleculeViewer work fine.  And I haven't had
a problem with any Swing-1.0.2 examples I tried so far.  

But the following demos from the binary distribution all failed.

CardTest
DitherTest
DrawTest
GraphicsTest

I exhaustively tried the other demos and they all worked just
fine. (Good job Mr Gatgul!)


[dump with LD_LIBRARY_PATH set to /usr/X11/lib for SWiM]

java: ../../../../src/genunix/java/green_threads/src/dl-malloc.c:1257: 
do_check_inuse_chunk: Assertion `((((mchunkptr)(((char*)(p))+((p)->size & 
~0x1)))->size) & 0x1)' failed.
SIGABRT   6*   abort (generated by abort(3) routine)

Full thread dump:
    "Screen Updater" (TID:0x15556046b00, sys_thread_t:0x15557a95d98, state:CW) prio=4
        java.lang.Object.wait(Object.java)
        sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:70)
        sun.awt.ScreenUpdater.run(ScreenUpdater.java:90)
    "AWT-Motif" (TID:0x155560428b0, sys_thread_t:0x15557a73d98, state:CW) prio=5
        java.lang.Thread.run(Thread.java)
    "AWT-Input" (TID:0x155560428f0, sys_thread_t:0x15557a51d98, state:R) prio=5
    "AWT-EventQueue-0" (TID:0x15556042920, sys_thread_t:0x15557a2fd98, state:MW) prio=5
        sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:265)
        java.awt.Component.dispatchEventImpl(Component.java:1862)
        java.awt.Container.dispatchEventImpl(Container.java:949)
        java.awt.Component.dispatchEvent(Component.java:1741)
        java.awt.EventDispatchThread.run(EventDispatchThread.java:79)
    "thread applet-GraphicsTest.class" (TID:0x155560411c0, sys_thread_t:0x15555655d98, 
state:R) prio=5 *current thread*
        sun.awt.motif.MComponentPeer.setBounds(MComponentPeer.java:593)
        sun.awt.motif.MComponentPeer.reshape(MComponentPeer.java:631)
        sun.awt.motif.MComponentPeer.initialize(MComponentPeer.java:88)
        sun.awt.motif.MChoicePeer.initialize(MChoicePeer.java:34)
        sun.awt.motif.MComponentPeer.init(MComponentPeer.java:129)
        sun.awt.motif.MComponentPeer.<init>(MComponentPeer.java:133)
        sun.awt.motif.MChoicePeer.<init>(MChoicePeer.java:38)
        sun.awt.motif.MToolkit.createChoice(MToolkit.java:108)
        java.awt.Choice.addNotify(Choice.java:105)
        java.awt.Container.addNotify(Container.java:1175)
        java.awt.Panel.addNotify(Panel.java:78)
        java.awt.Container.addNotify(Container.java:1175)
        java.awt.Panel.addNotify(Panel.java:78)
        java.awt.Container.addImpl(Container.java:306)
        java.awt.Container.add(Container.java:182)
        GraphicsTest.init(GraphicsTest.java:88)
        sun.applet.AppletPanel.run(AppletPanel.java:281)
        java.lang.Thread.run(Thread.java)
    "Finalizer thread" (TID:0x1555601e450, sys_thread_t:0x15555633d98, state:R) prio=1
    "Async Garbage Collector" (TID:0x1555601e5c0, sys_thread_t:0x15555611d98, state:R) 
prio=1
    "Idle thread" (TID:0x1555601e570, sys_thread_t:0x155555efd98, state:R) prio=0
    "Clock" (TID:0x1555601e110, sys_thread_t:0x155555cdd98, state:CW) prio=12
    "main" (TID:0x1555601e160, sys_thread_t:0x12015dbb0, state:CW) prio=5
Monitor Cache Dump:
    java.lang.Object@llector": owner "thread applet-GraphicsTest.class" 
(0x15555655d98, 6 entries)
        Waiting to enter:
            "AWT-EventQueue-0" (0x15557a2fd98)
    [EMAIL PROTECTED]": <unowned>
        Waiting to be notified:
            "Screen Updater" (0x15557a95d98)
    <unknown key> (0x15555804b28): owner "thread applet-GraphicsTest.class" 
(0x15555655d98, 1 entry)
    [EMAIL PROTECTED]": owner "thread applet-GraphicsTest.class" 
(0x15555655d98, 1 entry)
        Waiting to be notified:
            "AWT-Motif" (0x15557a73d98)
Registered Monitor Dump:
    Verifier lock: <unowned>
    Thread queue lock: <unowned>
        Waiting to be notified:
            "main" (0x12015dbb0)
    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>
    Dynamic loading lock: <unowned>
    Monitor IO lock: <unowned>
    Child death monitor: <unowned>
    Event monitor: <unowned>
    I/O monitor: owner "AWT-Input" (0x15557a51d98, 1 entry)
    Alarm monitor: <unowned>
        Waiting to be notified:
            "Clock" (0x155555cdd98)
    Monitor registry: owner "thread applet-GraphicsTest.class" (0x15555655d98, 1 entry)
Thread Alarm Q:
    sys_thread_t 0x15557a73d98   [Timeout in 17 ms]
    sys_thread_t 0x15557a51d98   [Timeout in 166 ms]

Reply via email to