Preventing Linux from dumping core

Preventing Linux from dumping core

Post by Ryurick M. Hriste » Tue, 01 Oct 1996 04:00:00



Hello,

I've just upgraded to Linux 2.0.0 (Slackware 3.1 aka 96).

Any time when a program seg-fauls Linux is dumping core.

How can I prevent this (such that I will not end by having a core in
every directory ;) ?

TIA

--
______________________________________________________________________
Ryurick M. Hristev            ()..()/^\/^\

______________________________________________________________________

 
 
 

Preventing Linux from dumping core

Post by Richard W. Ko » Wed, 02 Oct 1996 04:00:00


# limit coredumpsize 0     // in the tcsh/csh shells -> .cshrc
# ulimit -c 0   // in bash -> .bashrc

should work...


: Hello,
:
: I've just upgraded to Linux 2.0.0 (Slackware 3.1 aka 96).
:
: Any time when a program seg-fauls Linux is dumping core.
:
: How can I prevent this (such that I will not end by having a core in
: every directory ;) ?
:
: TIA
:
: --
: ______________________________________________________________________
: Ryurick M. Hristev            ()..()/^\/^\

: ______________________________________________________________________

 
 
 

Preventing Linux from dumping core

Post by Andrew E. Miles » Wed, 02 Oct 1996 04:00:00


: I've just upgraded to Linux 2.0.0 (Slackware 3.1 aka 96).
:
: Any time when a program seg-fauls Linux is dumping core.
:
: How can I prevent this (such that I will not end by having a core in
: every directory ;) ?

Try 'man bash', and look at the ulimit option to set core file
length (to 0).

--

Linux Plug-and-Play Kernel Project http://www.redhat.com/linux-info/pnp/
XFree86 Matrox Team http://www.bf.rmit.edu.au/~ajv/xf86-matrox.html
PGP Public keys are available from http://www.redhat.com/~aem/pgp-keys.txt

 
 
 

1. dump core or not dump core

Howdy,

Some of my programs dump core, others don't. I tried
it on RedHat 6.1 and Mandrake 7.0 with kernels 2.2.14
and 2.2.15. I tried tcsh and bash with coredumpsize
set to 1GB. It seems to be application specific.

Is there any other criteria when suppressing apart from
the type of signal and the size limitation?
The application that doesn't dump core contains signal
handlers for some signals, but not for SEGV or ABRT.

Ruppert

 -----------------------------------------------------------------

 Dept of Elec. & Comp. Engr.    http://alpha.ece.ucsb.edu/~ruppert
 University of California       Phone: (805) 893-7788
 Santa Barbara, CA 93106        Fax:   (805) 893-3262
 -----------------------------------------------------------------

2. Not fetchmail!!!

3. core dumps core dumps everywhere...

4. Linux Kernel 2.4 Firewalling Matures: netfilter

5. How Can I Prevent the Core Dump ?

6. overrun

7. Limit/prevent core dump?

8. NSAPI send-cgi error

9. How to prevent a large core-dump

10. HP-UX core dump , how do I prevent/ analyse

11. Get "Segmentation fault (core dumped)" but no core file found

12. Apache problem - core dumps (httpd.core) all over the place

13. XF86_SVGA core dumped, but where is the core file?