swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Swarm-Support] crash at odd timestep


From: Corinne Coen
Subject: RE: [Swarm-Support] crash at odd timestep
Date: Tue, 12 Feb 2008 17:31:48 -0500

Dear paul,
Your suggestion to use gdb (with a short explanation) was very helpful.
Although I had to use a few commands other commands before I could call bt
(e.g., file ./bug, run, bt), I was able to successful find the list that was
emptying in GUI mode.  Problem fixed.

Unfortunately, I have been unable to do the same for my batch mode.  Despite
going through BatchSwarm.m carefully, I cannot find any list or array that
doesn't function.  I cannot figure out how to use a "batch" command in gdb.
(Gdb does not recognize "batch").

Any suggestions?
Corinne

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf
Of paul box
Sent: Thursday, February 07, 2008 5:20 PM
To: Swarm Support
Subject: Re: [Swarm-Support] crash at odd timestep

Hi Corinne

I get that message when I'm referencing a member of a list that
doesn't exist: for example member 39 of a 38 member list.

To find where that's happening, the best way may be to use gdb.  If
you've never used it before, you can get a simple idea of your problem
by looking at a backtrace:

at your prompt, assuming your application is called "bug":
> gdb bug

.... you get the crash error, 'offset out of range' etc.

> bt

 ... a bunch of lines comes up; two or three lines down, you will see
references to various swarm and objc objects, and a couple of lines
below that, you will see the call to the object that didn't exist.
You will recognize it because it will be a call of something that you
wrote in your program.  That will be the instruction that's
responsible for the crash.

If you need a more detailed example, I'm happy to post one, but this
is the quick answer.

Paul

On Feb 8, 2008 7:31 AM, Corinne Coen <address@hidden> wrote:
>
>
>
>
> Dear Swarm folk
>
>
>
> I am an unsophisticated user of swarm.  I have a model I built several
years
> ago (it uses swarm-2.2).  Although I recall that it worked fine when I
built
> it, now, when I run it in BatchSwarm mode, it crashes at timestep=55.
When
> stopT is equal to any number from 1 through 55, it stops at the indicated
> timestep.  When stopT is set at 56 or above it crashes after timestep 55.
> In contrast, in GUI it also crashes but at timestep 166.  Again with stopT
> set anywhere from 1-165, it stops at the desired step.  With stopT=166 or
> higher, it crashes.  I get the following error message:
>
>
>
> *** event raised for error: OffsetOutOfRange
>
> *** function: indexAtOffset(), file:
>
/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.2/src/collections/Collect
ion.m,
> line: 119
>
> *** execution terminating due to error
>
>
/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.2/src/defobj/Symbol.m:187
> -[Error(c) _raiseEvent:] Aborted
>
>
>
> Can you help me figure out the cause of the crashes?
>
> Best,
>
> Corinne
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support
>
>



-- 
//////////////////////////
// Paul Box
// Alice Springs, NT  Australia
//
_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support






reply via email to

[Prev in Thread] Current Thread [Next in Thread]