SpinTheMic
Pro

Interview practice question

Python service crashes with segmentation faults

Backend Engineering · Language Runtimes · Experienced

Your Python service occasionally crashes with a segmentation fault and no Python traceback. How do you debug it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Crash in native code (C extension).
  • Enable faulthandler for Python stack.
  • Core dumps + gdb.
  • Identify extension; check versions and thread safety.
  • Isolate risky code in subprocess.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics