-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected Nil pointers on code that doesn't even have the potential to read Nil? #268
Comments
I'm unsure what's causing the errors but I can try to help guide you in a direction to hopefully make debugging easier. In your trace, the last calls were to futexes and Can you run the same kind of code natively and have it running? Generally, if it won't run successfully on native then it won't run on the JVM either. Otherwise I'd try to have all the code running on one |
even if it all works on one thread, im running a server and it has to be on a separate thread to be asynchronous |
If it works on one thread then there may be some interaction between the calls you want to make and the way the JVM handles threads and locking. That isn't to say it can't use threads, but there could be some hidden interactions (e.g. lazy initialization, internal resource locking, ...) that would need to be considered before starting the threads. Would it be possible for you to create a small example repository that gives us an easy way to reproduce? I don't see anything obvious from your example code (or at least nothing that would point to a bug in jnr-ffi) so we need a little more help finding your issue. |
I've attached the full Strace of the execution encase my code isn't the culprit, but im confident it is.
the code i was running is...
and the java code:
and the libclass code
I suspect im doing something wrong and my loading function is too simple. Any insight would be useful.
trace.txt
The text was updated successfully, but these errors were encountered: