CURIOSITATIS CAPTIVUS thesauri sapientiae et quisquiliae


5
May/09
0

Core Dumps in Ubuntu

I resolved this year that I would take time to pursue one of my passions -- computer science. As such, I am learning how to write applications for Linux. I've just spent 30 frustrating minutes trying to figure out why on earth my deliberate segmentation fault in the small C program I have written is not producing a core dump in Ubuntu 9.04. It turns out that Ubuntu disables core dumps in Bash by default. The fix is simple enough -- use the ulimit command to enable core dumps.

bash$ ulimit -c 100

In this case I have enabled core dumps and given them a limit of 100 blocks. Problem solved! Hopefully this makes it into the search engines and helps someone else frustrated by this same issue.

Comments (0) Trackbacks (0)

No comments yet.

Leave a comment


No trackbacks yet.