[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dumping Core on Purpose



In article <[🔎] 19980716162516.E22672@mgh.harvard.edu>,
Stephen J. Carpenter <sjc@delphi.com> wrote:
>On Thu, Jul 16, 1998 at 12:13:44PM -0400, Brian White wrote:
>> > Yes. use CTRL-\
>> 
>> I've never heard of that.
>
>neither have I....I just tried it...it makes programs exit fast but
>I have yet to produce a core dump with it

CTRL-\ lets the keyboard driver send a SIGQUIT to the running process(group).
Normally, that produces a coredump.

However, coredumps default to "off" in Linux (the corelimit size is
set to 0 by default for all processes). Try this:

$ ulimit -c unlimited
$ sleep 60
CTRL-\
zsh: quit (core dumped)  sleep 60
$ ls -l core
-rw-------   1 miquels  staff      262144 Jul 17 00:42 core

Mike.
-- 
 Miquel van Smoorenburg | Our vision is to speed up time,
    miquels@cistron.nl  |   eventually eliminating it.


--  
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


Reply to: