[SUMMARY] Cannot use ulimit/unlimit to enable core dumps (coredumpsize)
2007-12-24 21:39:00
Rebooted the machine, NOW I can get unlimited coredumpsize!
On one particular system I could not enable core dumps. I
tried sh/csh/tcsh shells with the respective ulimit/unlimit commands,
nothing worked:
ulimit -c coredumpsize
unlimit coredumpsize unlimited
I never did get the coredumpsize to change from 0.
Albert and Arlynn reminded me that 'coreadm' manages core dump configuration,
see config file /etc/coreadm.conf. This was configured correctly,
with the same params as all my other systems where core dumps were
working fine.
Thanks to:
Riddoch, John E
Albert White
Arlynn Eftefield
>
> Platform: SunOS donor 5.8 Generic_108528-10 sun4u sparc SUNW,Ultra-80
>
> On one particular system I cannot enable core dumps. I've
> tried sh/csh/tcsh shells with the respective ulimit/unlimit commands,
> nothing works. Using tcsh:
>
> $ limit
> cputime unlimited
> filesize unlimited
> datasize unlimited
> stacksize 8192 kbytes
> coredumpsize 0 kbytes
> vmemoryuse unlimited
> descriptors 256
>
> $ unlimit coredumpsize
>
> $ limit
> cputime unlimited
> filesize unlimited
> datasize unlimited
> stacksize 8192 kbytes
> coredumpsize 0 kbytes
> vmemoryuse unlimited
> descriptors 256
>
> Using 'limit coredumpsize unlim' does the same thing (nothing!).
>
> According to 'sysdef' the soft and hard limits are both Infinity:
>
> $ sysdef | grep core
> Infinity:Infinity core file size
>
> What gives? The shell binaries are the same as on my other systems
> where this works, and AFAIK the system settings are the same.
>
> I have plenty of swap space:
>
> $ swap -l
> swapfile dev swaplo blocks free
> /dev/dsk/c0t0d0s1 32,1 16 8392048 4131616
>
> Dave Foster
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> David Foster National Center for Microscopy and Imaging Research
> Programmer/Analyst University of California, San Diego
> dfoster at ucsd.edu Department of Neuroscience, Mail 0608
> (858) 534-7968 http://ncmir.ucsd.edu/
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> _______________________________________________
> codeprof mailing list
> codeprof at codeprof.com
> http://www.codeprof.com/execute/ask/?codeinfoid=9960
<< All opinions expressed are mine, not the University's >>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
David Foster National Center for Microscopy and Imaging Research
Programmer/Analyst University of California, San Diego
dfoster at ucsd.edu Department of Neuroscience, Mail 0608
(858) 534-7968 http://ncmir.ucsd.edu/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore, all progress
depends on the unreasonable." -- George Bernard Shaw
Comments
Got something to say?
You must be logged in to post a comment.

