bugPingus - Bugs: bug #603, Crashes on armageddon (sometimes)

 
 

bug #603: Crashes on armageddon (sometimes)

Submitted by:  Ingo Ruhnke <grumbel>
Submitted on:  Fri 14 Jun 2002 08:24:55 AM UTC  
 
Category: Game EngineSeverity: 6 - Security
Item Group: Crash ErrorStatus: Remind
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: None
Operating System: NonePlanned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 14 Jun 2002 10:01:01 AM UTC, comment #1:

Look at line 0 of the gdb output - the error in this case is that the this pointer points to 0xfffffff which is a sure indicator that the Pingu itself has already been deleted.

David Philippi <torangan>
Project Member
Fri 14 Jun 2002 08:24:55 AM UTC, original submission:

When one does press the armageddon button in level3 it segfaults from time to time. Most likly because the armageddon_count iterator gets invalid after some pingus have been removed from the list of active pingus.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 1926)]
0x08059913 in Pingu::set_action(PinguAction*) (this=0xffffffff, act=0x90174e8) at pingu.cxx:108
108 if (status == PS_DEAD)
Current language: auto; currently c++
(gdb) where
#0 0x08059913 in Pingu::set_action(PinguAction*) (this=0xffffffff, act=0x90174e8) at pingu.cxx:108
#1 0x080c2b55 in World::update(float) (this=0x8c487d0, delta=0.0340000018) at /usr/include/g++-v3-3.1/bits/stl_list.h:138
#2 0x08066250 in Client::update(float) (this=0x88fb7f0, delta=0.0340000018) at client.cxx:249
#3 0x08066051 in Client::play_level(PLF*) (this=0x88fb7f0, arg_plf=0x90174e8) at delta_manager.hxx:35
#4 0x080658e4 in Client::display() (this=0x88fb7f0) at client.cxx:93
#5 0x0809bb5e in PingusGameSession::start() (this=0x90174e8) at game_session.cxx:50
#6 0x0811af48 in Pingus::WorldMap::LevelNode::on_click() (this=0x856fee0) at node.cxx:112
#7 0x08113966 in Pingus::WorldMap::WorldMap::on_button_press(CL_InputDevice*, CL_Key const&) (this=0x84d9fe8,
device=0xffffffff, key=@0x3) at ../boost/smart_ptr.hpp:207
#8 0x0811196d in CL_MethodSlot_v2<Pingus::WorldMapManager, CL_InputDevice, CL_Key const&>::call(CL_InputDevice, CL_Key const&) (this=0x8163201, param1=0x816c238, param2=@0xbffff290)
at /home/ingo/projects/pingus/libs/include/ClanLib/Signals/slot_v2.h:62
#9 0x400eb5fa in CL_Mouse_XWin::keep_alive() (this=0x816c238) at Sources/API/Signals/signal_v2.h:81
#10 0x40125a33 in CL_System::keep_alive() () at /usr/include/g++-v3-3.1/bits/stl_list.h:138
#11 0x081110ea in Pingus::WorldMapManager::display() (this=0xbffff410) at manager.cxx:80
#12 0x080a73fe in Story::on_button_press(CL_InputDevice*, CL_Key const&) (this=0xbffff7c8) at story.cxx:126
#13 0x08078d60 in PingusMenuManager::on_button_press(CL_InputDevice*, CL_Key const&) (this=0xbffff6c0, device=0x816c238,
key=@0xbffff560) at pingus_menu_manager.cxx:109
#14 0x08079405 in CL_MethodSlot_v2<PingusMenuManager, CL_InputDevice, CL_Key const&>::call(CL_InputDevice, CL_Key const&) (
this=0x8163201, param1=0x816c238, param2=@0xbffff560)
at /home/ingo/projects/pingus/libs/include/ClanLib/Signals/slot_v2.h:62
#15 0x400eb5fa in CL_Mouse_XWin::keep_alive() (this=0x816c238) at Sources/API/Signals/signal_v2.h:81
#16 0x40125a33 in CL_System::keep_alive() () at /usr/include/g++-v3-3.1/bits/stl_list.h:138
#17 0x08078f2d in PingusMenuManager::display() (this=0xbffff6c0) at pingus_menu_manager.cxx:161
#18 0x0806e1cf in PingusMain::start_game() (this=0x8167fd8) at pingus_main.cxx:838
#19 0x0806eb45 in PingusMain::main(int, char**) (this=0x8167fd8, argc=1, argv=0x8167fd8) at pingus_main.cxx:877
#20 0x0809fe08 in GenericMain::main(int, char**) (this=0x816416c, argc=1, argv=0xbffffa54) at generic_main.cxx:89
#21 0x40107d63 in main (argc=1, argv=0xbffffa54) at Sources/Application/Unix/clanapp.cpp:32
(gdb)

Ingo Ruhnke <grumbel>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 24 Jun 2002 11:24:01 AM UTCtoranganStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
  Closed on-=>-
Sun 16 Jun 2002 08:30:29 PM UTCgrumbelCategoryNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1