Red Hat interview question

Describe how you can use strace/ptrace to debug a program that keeps core dumping.