It is currently Tue, 07 Dec 2021 03:35:06 GMT



 
Author Message
 setrlimit (ulimit) bug? Cannot ulimit -c!
Hi,

I just noticed that after a ulimit -c 0 (bash), it is no longer possible
to *raise* the limit as a normal user. Kernel 2.0.35 (SuSE 5.3). Tcsh
exhibits the same behaviour, so I guess it's the kernel denying the
request.

The setrlimit() manpage talks about hard and soft-limits, but doesn't
elaborate.  Does ulimit -c 0 incorrectly set the hard limit?

It's a bit uncomfortable if you have ulimit -c 0 in ~/.bashrc and
incidentally want a core because you get infrequent crashes on some
application ...

        Regards --- Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jan Wielemaker                Author of SWI-Prolog and the XPCE GUI library
SWI, University of Amsterdam   http://www.**-**.com/
E-mail: j...@swi.psy.uva.nl     http://www.**-**.com/



 Mon, 16 Apr 2001 03:00:00 GMT   
 setrlimit (ulimit) bug? Cannot ulimit -c!

 > Hi,
 > I just noticed that after a ulimit -c 0 (bash), it is no longer possible
 > to *raise* the limit as a normal user. Kernel 2.0.35 (SuSE 5.3). Tcsh
 > exhibits the same behaviour, so I guess it's the kernel denying the
 > request.
Read the man page of bash.  You can either set only the hard or only
the soft limit if you use -S/-H but if supply neither both limits are
set.

 > The setrlimit() manpage talks about hard and soft-limits, but doesn't
 > elaborate.  Does ulimit -c 0 incorrectly set the hard limit?
It sets as documented both hard and softlimit.
 > It's a bit uncomfortable if you have ulimit -c 0 in ~/.bashrc and
 > incidentally want a core because you get infrequent crashes on some
 > application ...
Try ulimit -S -c 0

Andreas
--
 Andreas Jaeger   a...@arthur.rhein-neckar.de    jae...@informatik.uni-kl.de
  for pgp-key finger ajae...@aixd1.rhrk.uni-kl.de



 Mon, 16 Apr 2001 03:00:00 GMT   
 
   [ 2 post ] 

Similar Threads

1. bash ulimit and fct C setrlimit

2. No core files on my Debian (ulimit+setrlimit question)

3. ulimit/setrlimit

4. ulimit cannot modify

5. A file cannot be larger than the value set by ulimit

6. debian 3.0 screwey ulimits

7. setting ulimit for non-interactive user

8. ulimit error

9. ulimit error


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software