Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] No core dump when killed with ABRT, SEGV, etc.
@ 2013-03-26 16:25 Grant Edwards
  2013-03-26 16:50 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Edwards @ 2013-03-26 16:25 UTC (permalink / raw)
  To: buildroot

I get a proper core dump if a program actually causes a segfault, but
I can't figure out how to force a coredump by killing a running
process.

On my desktop machines with glibc, this generates a core dump:

tty1:

   $ ulimit -c 9999999
   $ <start program>

tty2:    
   $ kill -ABRT <pid>
 
On my buildroot system, there's no core dump.  The program is aborted
as expected, but it doesn't dump a core file.  If the same program
tries to actually dereference a NULL pointer there is a core dump.

Why doesn't killing a process with SIGABRT or SIGSEGV cause a core
dump?

-- 
Grant Edwards               grant.b.edwards        Yow! I am covered with
                                  at               pure vegetable oil and I am
                              gmail.com            writing a best seller!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-26 17:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 16:25 [Buildroot] No core dump when killed with ABRT, SEGV, etc Grant Edwards
2013-03-26 16:50 ` Peter Korsgaard
2013-03-26 17:01   ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox