views:

16

answers:

0

i'm using jna to glue fortran and java together, and it works great.

except for one thing.

i have two jvm processes, each of which uses the same shared library. individually, they work fine. calling one, and then the other, also works. but then calling the first one again, segv's. the code doesn't do anything interesting; it copies an array from javaland to fortranland.

my understanding of jna is that it uses dlopen to allocate separate DATA and BSS for each process, so there's no way that global references could somehow leak from one process to the other, yet, perhaps this is what is happening.

what could facilitate one jna process causing a segv in another?