home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.admin:4843 comp.unix.questions:10652 comp.unix.shell:3773
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!sdd.hp.com!wupost!gumby!destroyer!ncar!vexcel!copper!slate!mbarkah
- From: mbarkah@slate.mines.colorado.edu (Ade Barkah)
- Newsgroups: comp.unix.admin,comp.unix.questions,comp.unix.shell
- Subject: Re: How to prevent a large core-dump
- Message-ID: <1992Sep2.155211.10164@slate.mines.colorado.edu>
- Date: 2 Sep 92 15:52:11 GMT
- References: <1992Sep2.94728.26099@ms.uky.edu>
- Distribution: na
- Organization: Colorado School of Mines
- Lines: 25
-
- kherron@ms.uky.edu (Kenneth Herron) writes:
- : msb@sq.sq.com (Mark Brader) writes:
- :
- : >> echo > core
- : >> chmod 0 core
- : >> Then the program will not produce a core, since the file "core" already
- : >> exists, but is unwritable (see signal(2)).
- :
- : >Fine for most purposes, probably including the original query, but wait
- : >until the day that it's a setuid-root program whose core dumps you want
- : >to prevent!
- : > mkdir core
- :
- : You won't get a core dump if the executable is stripped. Am I the only
- : one who's noticed this?
-
- But, but, you can't debug no more when it's stripped... so how's
- one supposed to fix that core dump ? :)
-
- -Ade.
- --
- Internet : mbarkah@slate.mines.colorado.edu (NeXT Mailable)
- CompuServe: 74160,3404
- FIDO_net : Ade Barkah [1:104/108@fido.org]
- SNAIL_net : 1800 West Campus Road, Golden, CO 80401
-