bugGlobulation 2 - Bugs: bug #21908, glob2 load game crash

 
 

bug #21908: glob2 load game crash

Submitted by:  None
Submitted on:  Sun 30 Dec 2007 07:46:11 AM UTC  
 
Severity: 5 - BlockerStatus: Fixed
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 15 Mar 2008 12:10:11 PM UTC, comment #4:

I have fixed the bug regarding AIEcho loading. It was caused by Echo reading one byte too short when loading serialized orders.

Bradley Arsenault <genixpro>
Project AdministratorIn charge of this item.
Fri 14 Mar 2008 08:56:29 PM UTC, comment #3:

Sorry, marked wrong bug. Reopening >.<

Kieran <k776>
Project Administrator
Sat 08 Mar 2008 05:50:03 PM UTC, comment #2:

this bug still exists in hg version. if the initial bug that caused the game to run into this broken state has been resolved please close this bug.

#0 0x00002b1852e6e025 in raise () from /lib/libc.so.6
#1 0x00002b1852e6fa80 in abort () from /lib/libc.so.6
#2 0x00002b1852e6742f in __assert_fail () from /lib/libc.so.6
#3 0x000000000042ee7e in AIEcho::signature_check (stream=0x2aaab1224790, player=0x2aaab2584740, versionMinor=59) at src/AIEcho.cpp:62
#4 0x000000000042f082 in AIEcho::Echo::load (this=0x2aaab2583700, stream=0x2aaab1224790, player=0x2aaab2584740, versionMinor=59) at src/AIEcho.cpp:4610
#5 0x0000000000416348 in AI::load (this=0x2aaab2583640, stream=0x2aaab1224790, versionMinor=59) at src/AI.cpp:149
#6 0x00000000005be12a in Player::load (this=0x2aaab2584740, stream=0x2aaab1224790, teams=0x7fff59ca0aa0, versionMinor=59) at src/Player.cpp:161
#7 0x00000000005be77b in Player (this=0x2aaab2584740, stream=0x2aaab1224790, teams=0x7fff59ca0aa0, versionMinor=59) at src/Player.cpp:43
#8 0x00000000004a874f in Game::load (this=0x7fff59c92c50, stream=0x2aaab1224790) at src/Game.cpp:929
#9 0x00000000004cb223 in GameGUI::load (this=0x7fff59c92c20, stream=0x2aaab1224790, ignoreGUIData=false) at src/GameGUI.cpp:3785
#10 0x00000000004cb85e in GameGUI::loadFromHeaders (this=0x7fff59c92c20, mapHeader=@0x7fff59c65780, gameHeader=@0x7fff59c72ca0, setGameHeader=false, ignoreGUIData=false) at src/GameGUI.cpp:3767
#11 0x00000000004986ab in Engine::initGame (this=0x7fff59c92c20, mapHeader=@0x7fff59c65780, gameHeader=@0x7fff59c72ca0, setGameHeader=false, ignoreGUIData=false) at src/Engine.cpp:440
#12 0x0000000000498f45 in Engine::initCustom (this=0x7fff59c92c20, gameName=@0x7fff59c81520) at src/Engine.cpp:133
#13 0x0000000000499f59 in Engine::initLoadGame (this=0x7fff59c92c20) at src/Engine.cpp:154
#14 0x00000000004e748f in Glob2::run (this=0x7fff59cb229f, argc=1, argv=0x7fff59cb2388) at src/Glob2.cpp:307
#15 0x00000000004e7d21 in main (argc=1, argv=0x7fff59cb2388) at src/Glob2.cpp:488

Leo Wandersleb <giszmo>
Project Member
Thu 24 Jan 2008 12:26:56 AM UTC, comment #1:

Thanx for reporting this bug. I can reproduce it and we will investigate soon.

in latest hg version i get this in gdb:
leo@Nemo:~/globulation/glob2-master$ gdb src/glob2
GNU gdb 6.6.90.20070912-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/leo/globulation/glob2-master/src/glob2
[Thread debugging using libthread_db enabled]
[New Thread 0x2aead64acf40 (LWP 5091)]
[New Thread 0x40802950 (LWP 5094)]
SoundMixer : No volume, audio has been disabled !
[New Thread 0x41077950 (LWP 5095)]
Bad packet recieved in Order.cpp (14)
Signature match failed. Expected "EchoSig", recieved ""
glob2: src/AIEcho.cpp:61: void AIEcho::signature_check(GAGCore::InputStream, Player, Sint32): Assertion `false' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x2aead64acf40 (LWP 5091)]
0x00002aead351cfd5 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00002aead351cfd5 in raise () from /lib/libc.so.6
#1 0x00002aead351ea30 in abort () from /lib/libc.so.6
#2 0x00002aead35163df in __assert_fail () from /lib/libc.so.6
#3 0x000000000042e45a in AIEcho::signature_check (stream=0xa41d70, player=0xaac1d0, versionMinor=59) at src/AIEcho.cpp:61
#4 0x000000000042e65e in AIEcho::Echo::load (this=0x9e1c80, stream=0xa41d70, player=0xaac1d0, versionMinor=59) at src/AIEcho.cpp:4572
#5 0x0000000000415bc8 in AI::load (this=0xaac250, stream=0xa41d70, versionMinor=59) at src/AI.cpp:149
#6 0x000000000059e5ac in Player::load (this=0xaac1d0, stream=0xa41d70, teams=0x7fffd95e6438, versionMinor=59) at src/Player.cpp:279
#7 0x000000000059ecdd in Player (this=0xaac1d0, stream=0xa41d70, teams=0x7fffd95e6438, versionMinor=59) at src/Player.cpp:161
#8 0x000000000049f43b in Game::load (this=0x7fffd95d85f0, stream=0xa41d70) at src/Game.cpp:876
#9 0x00000000004c1823 in GameGUI::load (this=0x7fffd95d85c0, stream=0xa41d70) at src/GameGUI.cpp:3758
#10 0x00000000004c1d6f in GameGUI::loadFromHeaders (this=0x7fffd95d85c0, mapHeader=@0x7fffd95ab150, gameHeader=@0x7fffd95b8670, setGameHeader=false) at src/GameGUI.cpp:3740
#11 0x00000000004956c2 in Engine::initGame (this=0x7fffd95d85c0, mapHeader=@0x7fffd95ab150, gameHeader=@0x7fffd95b8670, setGameHeader=false) at src/Engine.cpp:419
#12 0x0000000000495d37 in Engine::initCustom (this=0x7fffd95d85c0, gameName=@0x7fffd95c6ec0) at src/Engine.cpp:130
#13 0x0000000000496e52 in Engine::initLoadGame (this=0x7fffd95d85c0) at src/Engine.cpp:147
#14 0x00000000004da677 in Glob2::run (this=0x7fffd95f7bcf, argc=1, argv=0x7fffd95f7cb8) at src/Glob2.cpp:375
#15 0x00000000004dae4f in main (argc=1, argv=0x7fffd95f7cb8) at src/Glob2.cpp:526

Leo Wandersleb <giszmo>
Project Member
Sun 30 Dec 2007 07:46:11 AM UTC, original submission:

Glob2 -version (FC7 repos):
Globulation 2 - 0.9.1

Compiled on Sep 15 2007 at 20:59:13

Compiled with SDL version 1.2.11
Linked with SDL version 1.2.12

Game always crashes on attempting to load a saved game. log file dir is empty.

Ouput of glob2 2> errors > stdouts

"errors" file contents:
Signature match failed. Expected "EchoSig", recieved "�M�"
glob2: src/AIEcho.cpp:60: void AIEcho::signature_check(GAGCore::InputStream, Player, Sint32): Assertion `false' failed.

"stdouts" file contents:
Bad packet recieved in Order.cpp (14)

Command line contents:
Aborted

File size of saver

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #14723:  Centerfolds_2.game.bz2 added by None (51KiB - application/x-redhat-package-manager - Saved game)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by genixpro (Posted a comment)
  • -unavailable- added by k776 (Updated the item)
  • -unavailable- added by giszmo (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 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 15 Mar 2008 12:10:11 PM UTCgenixproStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Fri 14 Mar 2008 08:56:29 PM UTCk776StatusFixed=>Confirmed
      Open/ClosedClosed=>Open
      Release0.9.3 (Beta 3)=>None
    Fri 14 Mar 2008 08:55:59 PM UTCk776StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
      ReleaseNone=>0.9.3 (Beta 3)
    Sat 08 Mar 2008 05:59:12 PM UTCgiszmoAssigned toNone=>genixpro
    Thu 24 Jan 2008 12:26:56 AM UTCgiszmoStatusNone=>Confirmed
    Thu 24 Jan 2008 12:26:55 AM UTCgiszmoSeverity3 - Normal=>5 - Blocker
    Sun 30 Dec 2007 07:46:11 AM UTCNoneAttached File-=>Added Centerfolds_2.game.bz2, #14723

    Back to the top


    Powered by Savane 3.1-cleanup1