Thursday, 12 March 2009

how to get core dump

if on crash your program does not produce a coredump then check if you set up your console to ensure that dumps are created?

The command is ulimit -c 50000 where 50MB is the size in bytes.

- Mihir Patel

1 comment:

  1. Wouldn't that be 50000*1024 or about 50 megabytes?

    ulimit -c xxxx

    Values are in 1024-byte increments
    ulimit -a

    reports the following:

    core file size (blocks, -c) 50000