Author Topic: Overflow crash  (Read 4695 times)

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Overflow crash
« on: December 08, 2006, 02:52:05 PM »
I'm quite impressed on how stable the latest version is.  I've been running it for millions of cycles without crashes.  Just got my first random crash with "overflow".  I tried to attach the sim to this post, but it does not work - I get timeout errors.  So I put them on the server.  I had an autosave and saved every hour - the previous two saves are also messed up and give me overflow within 5-10 minutes after loading.

The links are:

http://www.darwinbots.com/shvarz/error.sim
http://www.darwinbots.com/shvarz/zerobot3.sim
http://www.darwinbots.com/shvarz/zerobot4.sim

Hope you can figure out what went wrong.
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Overflow crash
« Reply #1 on: December 08, 2006, 03:13:43 PM »
Found it.  A bot is trying to make a huge amount of poison and the poison cost is very small.  The code performs an unprotected assignment of nrg/cost to a mem location, overflowing the integer based mem array.  This bug is duplicated in the routines for making venom and other substances.  

You have found a whole new pile of bugs!  I'll be fixing the lot in 2.42.9L which I will release in an hour or so so you can continue with your sim.  

Hope that makes up for making negative memory values work and killing your other bot...
Many beers....

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Overflow crash
« Reply #2 on: December 08, 2006, 04:30:59 PM »
Try this

2.42.9L Buddy Drop Download

and tell me if your sim works okay.  Thanks.
Many beers....

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
Overflow crash
« Reply #3 on: December 09, 2006, 09:12:10 AM »
Maybe that's what I got too right now. I've been running version 2.43.9j on my old computer, very stable, but now it crashed. So maybe this drop is worth a try. I'll be back.  
The internet is corrupt and controlled by criminally minded people.