The core file gets truncated to 102400000 bytes(0.1 GB) exactly even though ulimit is unlimited. What other reasons could cause core file truncation?
Am using Solaris 5.10.
Thanks in advance,
Edited by: balaji_ramani on Aug 12, 2009 11:55 PM
I don't know if its still relevant, but there used to be a variable that you could set in /etc/system to define the maximum corefile size globally, if i recall correctly the syntax was:
sys:coredumpsize = <size>
.. so, can you check /etc/system on the affected machine to see if you have anything suspect there?
I forgot a 'set' in my previous post..
Also, if you know what process it came from, and have a new process running, you can examine the new process with 'plimit':
If you are unsure which process that caused the corefile you can also use 'file' to check.
Here is an example where i used 'kill -3' to cause a gnome-terminal to crash (for the record i normally use xterm, but gnome-terminal was a good example since it uses more memory ;-)
berlioz(~):$ pkill -3 gnome-terminal
berlioz(~):$ file core
core: ELF 32-bit LSB core file 80386 Version 1, from 'gnome-terminal'
berlioz(~):$ plimit `pgrep gnome-terminal`
resource current maximum
time(seconds) unlimited unlimited
file(blocks) unlimited unlimited
data(kbytes) unlimited unlimited
stack(kbytes) 8480 130336
coredump(blocks) unlimited unlimited
nofiles(descriptors) 256 65536
vmemory(kbytes) unlimited unlimited
This way you can find out the limits of the running process.