On Fri, 2023-02-24 at 05:38 +0100, Daniele Bonini wrote:
> Crystal Kolipe <kolip...@exoticsilicon.com> wrote:
> 
> > > On Mon, Feb 20, 2023 at 05:15:30PM +0100, Daniele Bonini wrote:  
> > > > Is it still possible to disable file .core generation at all?  
> > > > 
> > > > Yes, it is.  
> > > 
> > > ok, thx
> > > 
> > > NB: see /etc/rc.conf.local  
> > 
> > And also /etc/login.conf
> 
> 
> I did set rc.local.conf with the following:
> 
>         savecore_flags=-c /dev/null
> 

This is about kernel panic core dump, not userland core dumps

> And I set login.conf adding the following:
> 
> default:\
>         ..
>         :coredumpsize-max=1M:\
>         :coredumpsize-cur=1M:
> 
> but nothing change after a reboot, I'm always in good company
> of my 1 giga WebKitProcess.core..

Did you call cap_mkdb /etc/login.conf? You also need to login again.

Use ulimit -a to verify that it has been disabled / changed:

$ ulimit -a
-t: cpu time (seconds)              unlimited
-f: file size (blocks)              unlimited
-d: data seg size (kbytes)          1572864
-s: stack size (kbytes)             4096
-c: core file size (blocks)         0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-m: resident set size (kbytes)      1997792
-l: locked-in-memory size (kbytes)  87381
-u: processes                       256
-n: file descriptors                512

-- 
David

Reply via email to