Porting Java side VTK to FreeBSD

Nickolay Khotyaintsev xot at ns.ups.kiev.ua
Wed Jul 7 05:05:37 EDT 1999


Hi All!

I have almost finished porting Java side of VTK to FreeBSD.
The test programm works only for the first time. Next time it fails.
The hack of the original code was by changing vtkJavaUtil.cxx:
-------------------------------------------------------------
// for solaris
//#include <thread.h>
//#include <synch.h>
//mutex_t vtkGlobalMutex;
//#define VTK_GET_MUTEX()  mutex_lock(&vtkGlobalMutex)
//#define VTK_RELEASE_MUTEX() mutex_unlock(&vtkGlobalMutex)

// for FreeBSD
#include <pthread.h>
pthread_mutex_t vtkGlobalMutex;
#define VTK_GET_MUTEX()  pthread_mutex_lock(&vtkGlobalMutex)
#define VTK_RELEASE_MUTEX() pthread_mutex_unlock(&vtkGlobalMutex)
-----------------------------------------------------
Also I linked everything with libc_r.

Please help if anyone had success running Java+VTK on FreeBSD.

Here is the result of the second execution of simple test programm.:

SIGBUS    10*  bus error

Full thread dump:
    "Screen Updater" (TID:0x28646e38, sys_thread_t:0x29fd8f00, 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:0x28645050, sys_thread_t:0x294a7f00, state:CW) prio=5
        java.lang.Thread.run(Thread.java)
    "AWT-Input" (TID:0x28645070, sys_thread_t:0x29486f00, state:CW) prio=5
    "AWT-EventQueue-0" (TID:0x28645088, sys_thread_t:0x29465f00, state:CW)
prio=5
        java.lang.Object.wait(Object.java)
        java.awt.EventQueue.getNextEvent(EventQueue.java:126)
        java.awt.EventDispatchThread.run(EventDispatchThread.java:67)
    "Finalizer thread" (TID:0x28640210, sys_thread_t:0x29444f00, state:CW)
prio=1
    "Async Garbage Collector" (TID:0x28640258, sys_thread_t:0x29423f00,
state:CW) prio=1
    "Idle thread" (TID:0x286402a0, sys_thread_t:0x29402f00, state:R)
prio=0 *current thread*
    "Clock" (TID:0x28640088, sys_thread_t:0x293e1f00, state:CW) prio=12
    "main" (TID:0x286400b0, sys_thread_t:0x8113a00, state:CW) prio=5
Monitor Cache Dump:
    sun.awt.motif.MToolkit at 28645110/28695DA0: <unowned>
        Waiting to be notified:
            "AWT-Motif" (0x294a7f00)
    <unknown key> (0x29423f00): <unowned>
        Waiting to be notified:
            "Async Garbage Collector" (0x29423f00)
    java.awt.EventQueue at 286450D8/28695EA8: <unowned>
        Waiting to be notified:
            "AWT-EventQueue-0" (0x29465f00)
    sun.awt.ScreenUpdater at 28646E38/286A1940: <unowned>
        Waiting to be notified:
            "Screen Updater" (0x29fd8f00)
Registered Monitor Dump:
    Thread queue lock: <unowned>
        Waiting to be notified:
            "main" (0x8113a00)
    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" (0x29444f00)
    Monitor IO lock: <unowned>
    Child death monitor: <unowned>
    Event monitor: <unowned>
    I/O monitor: <unowned>
        Waiting to be notified:
            "AWT-Input" (0x29486f00)
    Alarm monitor: <unowned>
        Waiting to be notified:
            "Clock" (0x293e1f00)
    Memory allocation lock: <unowned>
    Monitor registry: owner "Idle thread" (0x29402f00, 1 entry)
Thread Alarm Q:
    sys_thread_t 0x29486f00   [Timeout in 246 ms]
    sys_thread_t 0x29423f00   [Timeout in 700 ms]
Abort trap


Best!

Mykola 



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list