swarm-support
[Top][All Lists]
Advanced

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

Re: Fine grained actions


From: famasce
Subject: Re: Fine grained actions
Date: Wed, 3 May 2000 18:52:18 +0200

> >>>>> "F" == famasce  <address@hidden> writes:
> 
> F> event raised for error: AlreadyAtEnd
> F> ***function: _i_ListIndex__linked_next(), file:
> 
> F>  for (instant=0;instant<10;instant++)
> F>    [simulationSchedule at: instant createActionTo:
> F>                    [agentsList atOffset: instant]  message:
> M(evalSignals)];
>     
> My guess is that there are less than ten agents in agentList.
> 
To remove any doubt about this I've replaced the previous code with the
following one:
 
  int num_of_agents=[agentsList getCount];

  for (instant=0; instant< num_of_agents ; instant++)
     [simulationSchedule at: instant createActionTo:
             [agentsList atOffset: instant]  message: M(evalSignals)];

but the error doesn't go away. Perhaps could help to know that the event is
raised just after '[[self getActivity] terminate]' in - ckeckToStop method;
here's gdb output:

289 [[self getActivity] terminate];
(gdb)n
291    }
(gdb)n
0x69dc267f in __builtin_avcall ()
(gdb)n
Single stepping until exit from function __builtin_avcall
which has no line number information
***event raised for error: AlreadyAtEnd
***function: _i_ListIndex__linked_next(), file:
/src/Swarm/swarm/src/collections/List_GEN.m, line: 332
*** execution terminating due to error
/src/Swarm/swarm/src/defobj/Symbol.m :173 -[Error(c) _raiseEvent:]
     0 [sig] sim 1391 stackdump: Dumping stack trace to sim.exe.stackdump 

Program received SIGSEV, Segmentation fault.
[Switching to thread 109.0xec]
0x61009bae in _size_of_stack_reserve__ ()
(gdb) bt
#0 0x61009bae in _size_of_stack_reserve__ ()
Cannot access memory at address 0x2000000

I can only make guesses: it seems like the problem resides in [[self
getActivity] terminate].Couldn't that message be referred to the schedule
rather than to the list of agents?

Fabio.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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