Unix Technical Forum

Preventing core dumps

This is a discussion on Preventing core dumps within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Sad Expat <expat@expatsrus.org> wrote: > In my current project, some of the code I've been writing has been > ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-20-2008, 11:44 AM
Henrik Carlqvist
 
Posts: n/a
Default Re: Preventing core dumps

Sad Expat <expat@expatsrus.org> wrote:
> In my current project, some of the code I've been writing has been
> consuming huge amounts of memory before coredumping, and after a few of
> these, the filesystem is full and I have problems clearing it.


> then found the coredump controls, and then intellectual curiosity took
> over me and I started wondering how would it be possible to lock a
> system down so a user could be really controlled.


As you really want to avoid a filled up file system it would probably be
better to use disk usage quotas to control users for this purpose. With
quotas you can be sure that the disks are not filled and users are still
able to get complete small core dumps useful for debugging.

However, ulimit might still be useful for you to kill runaway processes
that consume to much memory.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc7(at)uthyres.com Examples of addresses which go to spammers:
root@variousus.net info@k-soft.se info@k-software.biz root@localhost

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-20-2008, 11:44 AM
Steve Youngs
 
Posts: n/a
Default Re: Preventing core dumps

* Sad Expat <expat@expatsrus.org> writes:

> On 2005-10-25, Steve Youngs <steve@youngs.au.com> wrote:
>> > /etc/profile gets 'ulimit -Hc 0'
>> > That gives me exactly what I want

>>
>> I _have_ to know, it's driving me nuts... why do you want this?


> I am a paranoid and suspicious administrator who wants to control
> my users completely. On the other hand I am my only user.


:-)

> In my current project, some of the code I've been writing has been
> consuming huge amounts of memory before coredumping, and after a few of
> these, the filesystem is full and I have problems clearing it.


As somebody else mentioned, you might benefit from setting disk
quotas. I've never played with those, so can't help there, sorry.

> But now I've learnt something new and I understand the system just a
> little bit better, and I marvel at how vast and complicated a modern
> Unix system is and how much fun it is to work with.


Learning is indeed a wonderful thing. :-)

> Thanks for your help on this.


You're welcome.

--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| Genius - Is the ability to reduce |
| the complicated to the simple |
|----------------------------------<steve@youngs.au.com>---|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-20-2008, 11:44 AM
Steve Youngs
 
Posts: n/a
Default Re: Preventing core dumps

* Felix Rawlings <fraw@yahoo.com> writes:

> On Tue, 25 Oct 2005 01:10:01 +0000, Steve Youngs wrote:
>> * Felix Rawlings <fraw@yahoo.com> writes:
>> > If you don't know the answer to the OP's question,


>> Don't jump to conclusions...


>> `ulimit -Hc 0'


> So, either you knew before, and selfishly kept the info to
> yourself, choosing to demand first why, or you did not, and, out
> of shame, found out only when spurred to do so.


There are other options. One of which might involve you having a
sufficiently meaningless life that devoting time to casting aspersions
is important to you.

Whatever makes you happy.

--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| Genius - Is the ability to reduce |
| the complicated to the simple |
|----------------------------------<steve@youngs.au.com>---|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com