swarm-support
[Top][All Lists]
Advanced

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

Re: Heatbug.java question


From: Marcus G. Daniels
Subject: Re: Heatbug.java question
Date: 18 Jan 2000 16:18:14 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "DS" == David Smith <address@hidden> writes:

DS> OK, here are the diffs:

Ok, the problem is that you've dropped the modulus on bestCell, so
the coordinates go outside of the Discrete2d boundaries and memory
dereferences end up being invalid, and a segfault occurs. 
  
You can see this if you run the model under the debugger:

  $ JAVASWARMGDB=gdb javaswarm StartHeatbugs
  (gdb) run
  (gdb) bt

Btw, it's easier to read and apply patches if you use 
"diff -r -w -c jheatbugs-old jheatbugs-new" instead of doing it
file-by-file "diff ../jheatbugs/Heatbug.java Heatbug.java".
The first command checks all the files, ignoring spaces,
and attaching headers and context for each change.

                  ==================================
   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]