bugGlobulation 2 - Bugs: bug #17382, nicowar crashes...

 
 

bug #17382: nicowar crashes (SIGFPE,adjustAlliances)

Submitted by:  Leo Wandersleb <giszmo>
Submitted on:  Tue 08 Aug 2006 11:38:00 PM UTC  
 
Severity: 3 - NormalStatus: Invalid
Assigned to: Bradley Arsenault <genixpro>Open/Closed: Closed
Release: NoneOperating System: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 29 Mar 2008 04:15:43 AM UTC, comment #4:

There has been 10001 changes (not literally but you get the idea) to the code since Sep 2006, including rewrites to parts of Nicowar, so this bug would no longer be valid (its not in any of the 2000 games I've run via the new -test-games-nox feature anyway ;) )

Kieran <k776>
Project Administrator
Sat 23 Sep 2006 11:58:50 AM UTC, comment #3:

now as i got the crash again i checked for unit counts: no team in the provided second save game has close to 0 units.

Leo Wandersleb <giszmo>
Project Member
Wed 09 Aug 2006 07:54:09 AM UTC, comment #2:

I've just had a look at it: division by zero can occur either if team or enemy has no unit. Bradley, can you fix that, thanks

Steph

Stephane Magnenat <nct>
Project Administrator
Tue 08 Aug 2006 11:45:23 PM UTC, comment #1:

with this bug in, nicowar is experimental as it can not be avoided.

Leo Wandersleb <giszmo>
Project Member
Tue 08 Aug 2006 11:38:00 PM UTC, original submission:

(gdb) run
Starting program: /home/leo/globulation/y/glob2/src/glob2
[Thread debugging using libthread_db enabled]
[New Thread -1218528960 (LWP 6437)]
[New Thread -1218978896 (LWP 6442)]
SoundMixer : No volume, audio has been disabled !
[New Thread -1404015696 (LWP 6443)]

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1218528960 (LWP 6437)]
0x080548ed in Nicowar::HappinessHandler::adjustAlliances ()
(gdb) bt
#0 0x080548ed in Nicowar::HappinessHandler::adjustAlliances ()
#1 0x08067615 in Nicowar::HappinessHandler::perform ()
#2 0x0805bcee in Nicowar::AINicowar::getOrder ()
#3 0x080b0e73 in Engine::run () at /usr/include/SDL/SDL_endian.h:59
#4 0x080e2908 in Glob2::run () at /usr/include/SDL/SDL_endian.h:59
#5 0x080e3335 in main () at /usr/include/SDL/SDL_endian.h:59
(gdb)

Leo Wandersleb <giszmo>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #10826:  Auto_save.game.tar.gz added by giszmo (51KiB - application/gzip - also causes crash)
file #10500:  Auto_save77.game.tar.gz added by giszmo (63KiB - application/x-gzip - 4s before crash. no need to do anything.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by k776 (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 29 Mar 2008 04:15:43 AM UTCk776StatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sat 23 Sep 2006 11:58:50 AM UTCgiszmoAttached File-=>Added Auto_save.game.tar.gz, #10826
    Tue 08 Aug 2006 11:45:23 PM UTCgiszmoSeverity2 - Minor=>3 - Normal
      Attached File-=>Added Auto_save77.game.tar.gz, #10500

    Back to the top


    Powered by Savane 3.1-cleanup1