Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Busybox/Linux system where a mystery program is segfaulting rarely. Is there a way to find which program is doing this?

share|improve this question
up vote 4 down vote accepted

If the segmentation fault produces a "core" file, you can run file <core-filename> to identify the executable. You can also use ddd or gdb to debug the core file for more information.

share|improve this answer
I'm not getting core dumps, but I found an article on enabling them – Shawn J. Goff Mar 18 '11 at 17:12

Uh, how do you know about the segfault anyway?

There is a kernel log message at priority info. It shows the executable name without the directory part. On some architectures, the debug.exception-trace sysctl must be set. Some architectures require a compile-time option and kernel command line parameter (e.g. CONFIG_USER_DEBUG and user_debug on arm).

share|improve this answer
On how I knew about the segfault: the console irregularly spat out "Segmentation Fault" with no further information. – Shawn J. Goff Mar 19 '11 at 3:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.