Strange sigsegv while calling java code from c++ through jni

前端 未结 1 1886
半阙折子戏
半阙折子戏 2021-01-07 09:03

Following code is pretty boiler plate code that runs fine as is, but when run in gdb crashes. As such I won\'t care about that, but this is reduced version of my bigger prog

相关标签:
1条回答
  • 2021-01-07 09:45

    This was indeed what technomage had suggested in the comments. The gdb crash was a red herring because of jvm throwing SIGSEGV which was meant to be handled by jvm.

    Once I tell gdb "handle SIGSEGV nostop", it works just fine and I was able to debug my larger program.

    0 讨论(0)
提交回复
热议问题