Hi,
I've tracked a bug in the Harmony code, the problem goes like this:
1) we run a JNI_OnLoad from hyarchive that creates some data structures
2) a separate JNI call initializes the data structures
3) we load an unrelated library with no JNI_OnLoad symbol
4) we look for the JNI_OnLoad symbol and grab the one from hyarchive
5) we overwrite the data structures created at stage 2
I've tried changing the RTLD_GLOBAL flag to RTLD_LOCAL, for the dlopen
call, but to no avail. We need someway to restrict the result of dlsym
or some hack to work around this problem. One way would be record
JNI_OnLoad addresses and reject those we've seen before. Does anyone
know a better way around this problem?
Thanks,
Ian
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php_______________________________________________
Jikesrvm-core mailing list
Jikesrvm-core@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-core