Re: Crashing MOBProgs... (fwd)

From: Wout Mertens (Wout.Mertens@rug.ac.be)
Date: 10/17/95


I think Greg sent this to me by mistake...

---------- Forwarded message ----------
Date: Tue, 17 Oct 1995 10:31:03 +1000 (EST)
From: Greg Alexander Irvine <s9211947@arcadia.cs.rmit.EDU.AU>
To: Wout Mertens <Wout.Mertens@rug.ac.be>
Subject: Re: Crashing MOBProgs...

> > I've got circlebpl8 set up on a Linux box with mobprograms thrown in, and 
> > I just made some changes to the code to add in two more equipment 
> > locations.  The equipment locations work fine, but now, whenever the 
> > (thankfully) single mob that I have set up to talk says something, the 
> > mud will promptly give me a seg. fault.  I'm new at Linux (or Unix for 
> > that matter), so I have no idea how to make it give me a core dump to 
> > look through.  If anyone can tell me how to set Linux up to give me a 
> > dump when it crashes, or better yet, knows how I might fix the problem 
> > with the mobprograms, I'd be very grateful!

make sure you have coredumps turned on.. (ie. maybe in your defaults shell
rc's you have the line "limit coredumpsize 0", find it and turn it off, or
type unlimit coredumpsize

> Be sure to compile with the flags to create debug info. I /THINK/ it's 

i like to use the -g -Wall options..... 

debug info is in by default... you turn it off with the -s option .

then..

> gdb bin/circle

gdb> run 4000

and when it coredumps do a    l (for line), and a bt  (backtrace)


- Greg



This archive was generated by hypermail 2b30 : 12/07/00 PST