Core File Help Please

Posted by Tidus on Wed 15 Oct 2003 08:02 PM — 4 posts, 16,708 views.

#0
I keep getting Segmentation Faults in my ROM2.4b6 based MUD but my MUD isn't making core files. Can anyone offer any help?
USA #1
You probably have a upper file size for the core set to 0.

Type ulimit -a, you should see something like: "core: 0". You should set this to something higher, like 100000 or something by typing: ulimit -c 100000 (I think I got the syntax right... might be something slightly different.)
#2
Thanks for the help but I tried that and it still isn't doing it.
USA #3
Ah... then you may need to edit your bash profile.

Log on to your shell. Type ls -a, and make sure you have a file called:
.bash_profile

Edit that, and add:
ulimit -c 1000000
somewhere in it.

This file is "executed" every time you log on.

Shut down your MUD. Log out of all terminal windows. Log on again, and type ulimit -a to make sure you still have a core limit value set. Now, you can run your MUD and it should generate core files.