Segfault on condition.wait

Running into Fatal Python error: Segmentation fault. How do I troubleshoot the segmentation fault issues with my lib? What could be the reason a program to cause this error? Any help would be highly appreciated.

Use a debugger. When Python segfaults, examine the backtrace. I don’t know what compiler you use, but if you use GCC or Clang, you can use GDB or LLDB.