Red Hat Interview Question

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