> I keep getting this message in my shell. No crashes, no core dumps, just a
> Segmentation fault, mud kills, then restarts.
Are you running on Redhat? A couple years ago when I first moved our mud
to Redhat it would no longer dump core. The problem, as it turned out,
was the default system resource limit for core files was set at something
like 2 meg. Our mud tends to dump cores over 10meg, so this prevented it
from making any core files at all.
Here is a snippet that will help you see if that kernel restriction is
stopping core files from being generated.
/* see or change core file sizes */
void do_core( CHAR_DATA *ch, char *argument )
{
struct rlimit limit;
char buf[MAX_STRING_LENGTH];
char arg[MAX_INPUT_LENGTH];
long value;
one_argument( argument, arg );
getrlimit( RLIMIT_CORE, &limit );
if( arg[0] != '\0' )
{
value = atol( arg );
limit.rlim_cur = value;
setrlimit( RLIMIT_CORE, &limit );
}
send_to_char( "The size limit of the core file is:\n\r", ch );
sprintf( buf, "Soft: %lu, Hard:lu\n\r",limit.rlim_cur,limit.rlim_max);
send_to_char( buf, ch );
}
/* crash the mud to test core file creation */
void do_crash( CHAR_DATA *ch, char *argument )
{
char *tmp = NULL;
send_to_char( "Crashing mud.\n\r", ch );
*tmp = 'a';
}
Kahlus
www.lostunicorn.org