home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.admin:4824 comp.unix.questions:10624 comp.unix.shell:3747
- Path: sparky!uunet!mcsun!uknet!stl!robobar!ibmpcug!impmh!dsg
- From: dsg@impmh.uucp (Dave Gordon)
- Newsgroups: comp.unix.admin,comp.unix.questions,comp.unix.shell
- Subject: Re: How to prevent a large core-dump
- Message-ID: <1992Sep1.150813.1695@impmh.uucp>
- Date: 1 Sep 92 15:08:13 GMT
- References: <1992Aug25.173056.13401@utwente.nl>
- Organization: Integrated Micro Products Ltd
- Lines: 20
-
- In <1992Aug25.173056.13401@utwente.nl> soos@math.utwente.nl (Adwin Soos) writes:
-
- >A few weeks or even months ago I have read some discussion about the problem
- >of preventing a core-dump. I remember that there were some suggestions on how
- >to prevent that a large core-dump will be made.
- >This problem is now occurring at our place where someone is writing a large
- >program and in some test-cases there is a core dump for more than 60 Mb.
- >This person is not using this core to debug it so maybe we can just stop the
- >creation of this core for this person.
-
- One simple method that should work on all UN*X systems is to create a file
- named "core" in the working directory of the offending program, and give
- it no permissions:
- 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)).
- --
- Dave
- ====
-