From owner-freebsd-ports Wed Jul 7 3:49:30 1999 Delivered-To: freebsd-ports@freebsd.org Received: from ns.ups.kiev.ua (hq.ups.kiev.ua [193.125.78.249]) by hub.freebsd.org (Postfix) with ESMTP id 855C414F62 for ; Wed, 7 Jul 1999 03:48:11 -0700 (PDT) (envelope-from xot@ns.ups.kiev.ua) Received: from localhost (xot@localhost) by ns.ups.kiev.ua (8.9.1/8.9.1) with ESMTP id NAA20205 for ; Wed, 7 Jul 1999 13:59:10 +0300 (EEST) Date: Wed, 7 Jul 1999 13:59:09 +0300 (EEST) From: Nickolay Khotyaintsev X-Sender: xot@ns.ups.kiev.ua To: freebsd-ports@freebsd.org Subject: Porting Java side VTK to FreeBSD Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 //#include //mutex_t vtkGlobalMutex; //#define VTK_GET_MUTEX() mutex_lock(&vtkGlobalMutex) //#define VTK_RELEASE_MUTEX() mutex_unlock(&vtkGlobalMutex) // for FreeBSD #include 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@28645110/28695DA0: Waiting to be notified: "AWT-Motif" (0x294a7f00) (0x29423f00): Waiting to be notified: "Async Garbage Collector" (0x29423f00) java.awt.EventQueue@286450D8/28695EA8: Waiting to be notified: "AWT-EventQueue-0" (0x29465f00) sun.awt.ScreenUpdater@28646E38/286A1940: Waiting to be notified: "Screen Updater" (0x29fd8f00) Registered Monitor Dump: Thread queue lock: Waiting to be notified: "main" (0x8113a00) Name and type hash table lock: String intern lock: JNI pinning lock: JNI global reference lock: BinClass lock: Class loading lock: Java stack lock: Code rewrite lock: Heap lock: Has finalization queue lock: Finalize me queue lock: Waiting to be notified: "Finalizer thread" (0x29444f00) Monitor IO lock: Child death monitor: Event monitor: I/O monitor: Waiting to be notified: "AWT-Input" (0x29486f00) Alarm monitor: Waiting to be notified: "Clock" (0x293e1f00) Memory allocation lock: 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message