aaronblanchard / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

call to get_feature_array_at(0) crashes java vm #116

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I have built from libkml-1.0.1.tar.gz and from the source in subversion. 
Both versions give the same problem on my system.  Everything builds fine
and I'm able to build CreateFolder.java from the examples.  When I try to
run CreateFolder I get a SIGSEGV in
Java_com_googlecode_libkml_kmldomJNI_Container_1get_1feature_1array_1at+0x35

In gdb a backtrace gives me this just before the signalHandler is called:
Java_com_googlecode_libkml_kmldomJNI_Container_1get_1feature_1array_1at
(jenv=0x56d7c1c0, jcls=0x40209a80, 
    jarg1=46914800575264, jarg1_=<value optimized out>, jarg2=0)
    at ../../../third_party/boost_1_34_1/boost/intrusive_ptr.hpp:76

In Container.java I was able to put a System.err.println before and after
the call to
long cPtr = kmldomJNI.Container_get_feature_array_at(swigCPtr, this, index);
in the method get_feature_array_at(long index)
The first print statement occurs but the one after the call does not.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
I'm running libkml-1.0.1 on a 64 bit centos5 machine.

Did you run the unit test suite that comes with the project? Did all tests
pass?
The unit tests all passed

Please provide any additional information below.

Original issue reported on code.google.com by willpu...@gmail.com on 20 Aug 2009 at 6:34