[Insight-users] Java troubles

Blezek, Daniel J (Research) blezek at crd.ge.com
Fri Jun 25 11:29:02 EDT 2004


Luis,

  As I mentioned in my original posting, I did a checkout yesterday.
Apparently this has not been fixed?

Brad: can you point me to the fix?

Jim Miller and I have tracked this down to a mismatch between Java's
libstdc++ and the system libstdc++.  When dynamic_cast is called everything
segfaults.  This is a problem in any dlopen() loaded shared library when
using GCC 3.x

Thanks,
-dan

-----Original Message-----
From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
Sent: Friday, June 25, 2004 11:21 AM
To: jarek at ieee.org
Cc: insight-users at itk.org; blezek at crd.ge.com; Brad King; Bill Hoffman
Subject: Re: [Insight-users] Java troubles



Daniel, Jarek,

This bug was fixed last week.
You may want to do a CVS update in your ITK checkout.

The problem was due to the fact that the RTTI tables are
defined locally inside every shared library. Therefore
dynamic casting do not work by default accross different
shared libraries.

Brad corrected this by forcing the loader to merge the
RTTI tables before they are loaded by Java.


Please let us know if you find any further problems,


   Thanks


     Luis


--------------------
Jarek Sacha wrote:

> This seems to be the same Linux bug as #741 reported back in April:
> http://www.vtk.org/Bug/bug.php?op=show&bugid=741
> 
> Jarek
> 
> --- "Blezek, Daniel J (Research)" <blezek at crd.ge.com> wrote:
> 
>>Hi all,
>>
>>  I've been wanting to use ITK inside Java for various reasons.  I did a
>>fresh checkout yesterday, and built with Java wrapping on.  I compiled
>>the
>>cannyEdgeDetectionImageFilter.java class and ran.  The program promptly
>>seg-faulted inside the JNI wrappers (see log below).  I'm running RedHat
>>8.0, GCC 3.2 and Java 1.4.1_02.
>>
>>  This bug was reported as #893
>>(http://www.vtk.org/Bug/bug.php?op=show&bugid=893&pos=8), has anyone
>>made
>>any progress, or could give me some direction?
>>
>>Thanks,
>>-dan
>>
>>
>>{practical:Java}1106:javac -classpath InsightToolkit.jar
>>cannyEdgeDetectionImageFilter.java
>>{practical:Java}1108:java -classpath InsightToolkit.jar:.
>>cannyEdgeDetectionImageFilter
>>
>>An unexpected exception has been detected in native code outside the VM.
>>Unexpected Signal : 11 occurred at PC=0x835CBA3
>>Function=[Unknown.]
>>Library=(N/A)
>>
>>NOTE: We are unable to locate the function name symbol for the error
>>      just occurred. Please refer to release documentation for possible
>>      reason and solutions.
>>
>>
>>Current Java thread:
>>        at
>>
> 
>
InsightToolkit.itkImageFileWriter_2DJNI.itkImageFileWriterUS2_Pointer_Update
> 
>>(Native Method)
>>        at
>>
> 
>
InsightToolkit.itkImageFileWriterUS2_Pointer.Update(itkImageFileWriterUS2_Po
> 
>>inter.java:119)
>>        at
>>
> 
> cannyEdgeDetectionImageFilter.main(cannyEdgeDetectionImageFilter.java:22)
> 
>>--
>>Daniel Blezek, Ph.D.
>>blezek at crd.ge.com
>>Visualization and Computer Vision Lab, Imaging Technologies
>>GE Corporate Research & Development
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
>>
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 




More information about the Insight-users mailing list