<div dir="ltr">Hi,<div><br></div><div style>I am having the problem with core file generation on ubuntu</div><div style><br></div><div style>For some reason the core file is not complete even though ulimit is set to unlimited</div>
<div style><br></div><div style>$ullmit -a</div><div style><br></div><div style><div>core file size          (blocks, -c) unlimited                         <----- Unlimitd</div><div>data seg size           (kbytes, -d) unlimited</div>
<div>scheduling priority             (-e) 0</div><div>file size               (blocks, -f) unlimited</div><div>pending signals                 (-i) 15891</div><div>max locked memory       (kbytes, -l) 64</div><div>max memory size         (kbytes, -m) unlimited</div>
<div>open files                      (-n) 1024</div><div>pipe size            (512 bytes, -p) 8</div><div>POSIX message queues     (bytes, -q) 819200</div><div>real-time priority              (-r) 0</div><div>stack size              (kbytes, -s) 8192</div>
<div>cpu time               (seconds, -t) unlimited</div><div>max user processes              (-u) 15891</div><div>virtual memory          (kbytes, -v) unlimited</div><div>file locks                      (-x) unlimited</div>
<div><br></div><div><br></div><div style>But when core is generated, and I try to open gdb, it is complaining that the core file is smaller</div><div style><br></div><div style>$sudo gdb /usr/local/sbin/kamailio core</div>
<div>GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04</div><div>Copyright (C) 2012 Free Software Foundation, Inc.</div><div>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>></div>
<div>This is free software: you are free to change and redistribute it.</div><div>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"</div><div>and "show warranty" for details.</div>
<div>This GDB was configured as "x86_64-linux-gnu".</div><div>For bug reporting instructions, please see:</div><div><<a href="http://bugs.launchpad.net/gdb-linaro/">http://bugs.launchpad.net/gdb-linaro/</a>>...</div>
<div>Reading symbols from /usr/local/sbin/kamailio...done.</div><div>BFD: Warning: /home/krishna/corefiles/core is truncated: expected core file size >= 2164264960, found: 176357376.</div><div>[New LWP 2547]</div><div>
Cannot access memory at address 0x7fe56e85d2a8</div><div>Cannot access memory at address 0x7fe56e85d2a0</div><div><br></div><div><br></div><div style>What could be going wrong?</div><div style><br></div><div style>Thanks</div>
<div style>Krish Kura</div></div></div>