jni - gdb hanging when attaching to java process -
i'm trying debug jni code. purpose i'm following idea attaching gdb java process running java code. problem when gdb hangs @ pthread_join()
inside libjli.so
, producing following output.
0x7fff59850000 0x00007ffa9fbb8218 in pthread_join () /lib/x86_64-linux-gnu/libpthread.so.0
and can't make java code attend requests (it server).
update: not inside pthread_join()
, after that, when continue execution , make request server. using libzmq.so
communication. don't know if gdb interferes library somehow.
finally found out going on. java uses sigsegv during garbage collector, intercepted gdb causing apparently crash. solve added handle sigsegv pass nostop
~/.gdbinit
file.
Comments
Post a Comment