Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 572 Bytes

Debug.md

File metadata and controls

18 lines (13 loc) · 572 Bytes

Debug Pitfalls

As described in this issue, Java VM take it as normal to signal SIGSEGV null reference access in Java code during startup, which is converted to a NullPointerException and then caught and handled by Java code to adjust and continue. Yet, it still imposes troubles while debugging JNI native code. The following command help suppress and ignore such signals:

  • Clang LLDB:
    process handle SIGSEGV --notify true --pass true --stop false
  • GDB
    handle SIGSEGV nostop