View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0002185 | Spring engine | Linux | public | 2010-10-22 22:30 | 2011-01-01 21:44 | ||||
Reporter | tvo | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | crash | Reproducibility | have not tried | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 0.82.6.1 | ||||||||
Target Version | Fixed in Version | 0.82.7 | |||||||
Summary | 0002185: crash on exit of Spring on Linux in EventBatchHandler.cpp:19 | ||||||||
Description | Program received signal SIGSEGV, Segmentation fault. 0x084f1a5e in EventBatchHandler::UnsyncedProjectileCreatedDestroyedEvent::Add (p=0x11c31350) at /home/tobi/wd/spring/repo-dev/rts/System/EventBatchHandler.cpp:19 19 void EventBatchHandler::UnsyncedProjectileCreatedDestroyedEvent::Add(const CProjectile* p) { projectileDrawer->RenderProjectileCreated(p); } (gdb) p p $1 = (const CProjectile *) 0x11c31350 (gdb) bt #0 0x084f1a5e in EventBatchHandler::UnsyncedProjectileCreatedDestroyedEvent::Add (p=0x11c31350) at /home/tobi/wd/spring/repo-dev/rts/System/EventBatchHandler.cpp:19 #1 0x083f9038 in insert (this=0x1114b680, p=0x11c31350) at /home/tobi/wd/spring/repo-dev/rts/lib/gml/ThreadSafeContainers.h:210 #2 UnsyncedProjectileCreated (this=0x1114b680, p=0x11c31350) at /home/tobi/wd/spring/repo-dev/rts/System/EventHandler.h:745 0000003 CProjectileHandler::AddProjectile (this=0x1114b680, p=0x11c31350) at /home/tobi/wd/spring/repo-dev/rts/Sim/Projectiles/ProjectileHandler.cpp:297 0000004 0x083f70d1 in CProjectile::CProjectile (this=0x11c31350, pos=..., speed=..., owner=0x0, isSynced=false, isWeapon=false, isPiece=false) at /home/tobi/wd/spring/repo-dev/rts/Sim/Projectiles/Projectile.cpp:94 0000005 0x0842e859 in CHeatCloudProjectile::CHeatCloudProjectile (this=0x11c31350, pos=..., speed=..., temperature=30, size=30, owner=0x0) at /home/tobi/wd/spring/repo-dev/rts/Sim/Projectiles/Unsynced/HeatCloudProjectile.cpp:57 #6 0x08477eff in CUnitScript::Explode (this=0x17e970a0, piece=0, flags=288) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/COB/UnitScript.cpp:698 #7 0x08473d72 in CCobThread::Tick (this=0x11a77180, deltaTime=30) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/COB/CobThread.cpp:470 #8 0x0847bb2c in CCobInstance::RealCall (this=0x17e970a0, functionId=11, args=std::vector of length 0, capacity 0, cb=0, p1=0x0, p2=0x0) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/COB/CobInstance.cpp:479 #9 0x0847c12d in CCobInstance::Call (this=0x17e970a0, id=29) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/COB/CobInstance.cpp:541 0000010 0x0847c249 in CCobInstance::StopBuilding (this=0x17e970a0) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/COB/CobInstance.cpp:438 #11 0x084c3128 in CFactory::StopBuild (this=0x18c8d6d8) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/UnitTypes/Factory.cpp:241 0000012 0x084c3242 in CFactory::DependentDied (this=0x18c8d6d8, o=0x184f8650) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/UnitTypes/Factory.cpp:257 0000013 0x085164ea in CObject::~CObject (this=0x184f8650, __in_chrg=<value optimized out>) at /home/tobi/wd/spring/repo-dev/rts/System/Object.cpp:37 0000014 0x083ea28b in CSolidObject::~CSolidObject (this=0x184f8650, __in_chrg=<value optimized out>) at /home/tobi/wd/spring/repo-dev/rts/Sim/Objects/SolidObject.cpp:75 #15 0x08462a0c in CUnit::~CUnit (this=0x184f8650, __in_chrg=<value optimized out>) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/Unit.cpp:307 #16 0x08462ce2 in CUnit::~CUnit (this=0x184f8650, __in_chrg=<value optimized out>) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/Unit.cpp:307 #17 0x08456dc4 in CUnitHandler::~CUnitHandler (this=0x1114b210, __in_chrg=<value optimized out>) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/UnitHandler.cpp:119 #18 0x08456fa2 in CUnitHandler::~CUnitHandler (this=0x1114b210, __in_chrg=<value optimized out>) at /home/tobi/wd/spring/repo-dev/rts/Sim/Units/UnitHandler.cpp:123 #19 0x080e0c4c in SafeDelete<CUnitHandler*> (this=0x8fb6ab8, __in_chrg=<value optimized out>) at /home/tobi/wd/spring/repo-dev/rts/System/Util.h:81 0000020 CGame::~CGame (this=0x8fb6ab8, __in_chrg=<value optimized out>) at /home/tobi/wd/spring/repo-dev/rts/Game/Game.cpp:379 #21 0x080e1472 in CGame::~CGame (this=0x8fb6ab8, __in_chrg=<value optimized out>) at /home/tobi/wd/spring/repo-dev/rts/Game/Game.cpp:427 #22 0x08519ca5 in SpringApp::Shutdown (this=0xbfffec0c) at /home/tobi/wd/spring/repo-dev/rts/System/SpringApp.cpp:1215 #23 0x085209ce in SpringApp::Run (this=0xbfffec0c, argc=2, argv=0xbfffed34) at /home/tobi/wd/spring/repo-dev/rts/System/SpringApp.cpp:1202 0000024 0x0850b893 in Run (argc=2, argv=0xbfffed34) at /home/tobi/wd/spring/repo-dev/rts/System/Main.cpp:55 #25 0x0850be1b in main (argc=2, argv=0xbfffed34) at /home/tobi/wd/spring/repo-dev/rts/System/Main.cpp:90 | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
abma (administrator) 2010-11-27 22:42 |
an other one: (gdb) thread apply all bt #0 0x00007f12542ca48d in __libc_waitpid (pid=6784, stat_loc=<value optimized out>, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:41 #1 0x0000000000db31bd in X_MessageBox (msg=0x7f122b7c9968 "Segmentation fault (SIGSEGV)", caption=0x7f122b666128 "Spring crashed", flags=0) at /home/abma/dev/spring/stable/rts/System/Platform/Linux/X_MessageBox.cpp:86 #2 0x0000000000dab4e2 in ErrorMessageBox (msg=..., caption=..., flags=0) at /home/abma/dev/spring/stable/rts/System/Platform/errorhandler.cpp:58 0000003 0x0000000000db723b in CrashHandler::HandleSignal (signal=11) at /home/abma/dev/spring/stable/rts/System/Platform/Linux/CrashHandler.cpp:415 0000004 <signal handler called> 0000005 0x0000000000d78ef3 in EventBatchHandler::UnsyncedProjectileCreatedDestroyedEvent::Add (p=0x7f122138ec90) at /home/abma/dev/spring/stable/rts/System/EventBatchHandler.cpp:19 #6 0x0000000000c1446f in ThreadListRender<CProjectile const*, std::set<CProjectile const*, std::less<CProjectile const*>, std::allocator<CProjectile const*> >, CProjectile const*, EventBatchHandler::UnsyncedProjectileCreatedDestroyedEvent>::insert (this=0x14283a0, x=@0x7fffbe1ed020) at /home/abma/dev/spring/stable/rts/lib/gml/ThreadSafeContainers.h:210 #7 0x0000000000c13d4f in CEventHandler::UnsyncedProjectileCreated (this=0x14288a0, proj=0x7f122138ec90) at /home/abma/dev/spring/stable/rts/System/EventHandler.h:745 #8 0x0000000000c126a5 in CProjectileHandler::AddProjectile (this=0x7f123026c850, p=0x7f122138ec90) at /home/abma/dev/spring/stable/rts/Sim/Projectiles/ProjectileHandler.cpp:297 #9 0x0000000000c1cd37 in CProjectile (this=0x7f122138ec90, pos=..., speed=..., owner=0x0, isSynced=false, isWeapon=false, isPiece=false) at /home/abma/dev/spring/stable/rts/Sim/Projectiles/Projectile.cpp:94 0000010 0x0000000000c55e27 in CHeatCloudProjectile (this=0x7f122138ec90, pos=..., speed=..., temperature=30, size=30, owner=0x0) at /home/abma/dev/spring/stable/rts/Sim/Projectiles/Unsynced/HeatCloudProjectile.cpp:57 #11 0x0000000000cce106 in CUnitScript::Explode (this=0x7f1221262560, piece=0, flags=288) at /home/abma/dev/spring/stable/rts/Sim/Units/COB/UnitScript.cpp:698 0000012 0x0000000000cc211d in CCobThread::Tick (this=0x7f12212e8f20, deltaTime=30) at /home/abma/dev/spring/stable/rts/Sim/Units/COB/CobThread.cpp:470 0000013 0x0000000000cda9ec in CCobInstance::RealCall (this=0x7f1221262560, functionId=11, args=..., cb=0, p1=0x0, p2=0x0) at /home/abma/dev/spring/stable/rts/Sim/Units/COB/CobInstance.cpp:479 0000014 0x0000000000cdae8a in CCobInstance::Call (this=0x7f1221262560, id=29, args=..., cb=0, p1=0x0, p2=0x0) at /home/abma/dev/spring/stable/rts/Sim/Units/COB/CobInstance.cpp:561 #15 0x0000000000cdad1c in CCobInstance::Call (this=0x7f1221262560, id=29) at /home/abma/dev/spring/stable/rts/Sim/Units/COB/CobInstance.cpp:541 #16 0x0000000000cda821 in CCobInstance::StopBuilding (this=0x7f1221262560) at /home/abma/dev/spring/stable/rts/Sim/Units/COB/CobInstance.cpp:438 #17 0x0000000000d1c050 in CFactory::StopBuild (this=0x7f1221370b70) at /home/abma/dev/spring/stable/rts/Sim/Units/UnitTypes/Factory.cpp:241 #18 0x0000000000d1c16c in CFactory::DependentDied (this=0x7f1221370b70, o=0x7f1224231ad0) at /home/abma/dev/spring/stable/rts/Sim/Units/UnitTypes/Factory.cpp:257 #19 0x0000000000da67a5 in ~CObject (this=0x7f1224231ad0, __in_chrg=<value optimized out>) at /home/abma/dev/spring/stable/rts/System/Object.cpp:37 0000020 0x0000000000be3dcb in ~CWorldObject (this=0x7f1224231ad0, __in_chrg=<value optimized out>) at /home/abma/dev/spring/stable/rts/Sim/Objects/WorldObject.cpp:23 #21 0x0000000000be2a23 in ~CSolidObject (this=0x7f1224231ad0, __in_chrg=<value optimized out>) at /home/abma/dev/spring/stable/rts/Sim/Objects/SolidObject.cpp:75 #22 0x0000000000ca1284 in ~CUnit (this=0x7f1224231ad0, __in_chrg=<value optimized out>) at /home/abma/dev/spring/stable/rts/Sim/Units/Unit.cpp:307 #23 0x0000000000c6e634 in ~CUnitHandler (this=0x7f123026c790, __in_chrg=<value optimized out>) at /home/abma/dev/spring/stable/rts/Sim/Units/UnitHandler.cpp:119 0000024 0x00000000007e7076 in SafeDelete<CUnitHandler*> (a=@0x141a3c0) at /home/abma/dev/spring/stable/rts/System/Util.h:81 #25 0x00000000007c61c2 in ~CGame (this=0x7f1240171120, __in_chrg=<value optimized out>) at /home/abma/dev/spring/stable/rts/Game/Game.cpp:379 0000026 0x0000000000d81701 in SpringApp::Shutdown (this=0x7fffbe1ed990) at /home/abma/dev/spring/stable/rts/System/SpringApp.cpp:1215 0000027 0x0000000000d81682 in SpringApp::Run (this=0x7fffbe1ed990, argc=2, argv=0x7fffbe1edb08) at /home/abma/dev/spring/stable/rts/System/SpringApp.cpp:1202 #28 0x0000000000d85dbf in Run (argc=2, argv=0x7fffbe1edb08) at /home/abma/dev/spring/stable/rts/System/Main.cpp:55 0000029 0x0000000000d85f17 in main (argc=2, argv=0x7fffbe1edb08) at /home/abma/dev/spring/stable/rts/System/Main.cpp:90 |
abma (administrator) 2010-11-27 22:46 |
after playing demo it seems to crash every time... |
jK (developer) 2011-01-01 05:14 |
related to boost::thread'ing the mainthread? |
Kloot (developer) 2011-01-01 13:12 |
no, just an order-of-deletion problem |
abma (administrator) 2011-01-01 21:44 |
fixed in master: https://github.com/spring/spring/commit/f629b6421c50732aa9d0b49453633f24b1ca75bf thanks kloot! |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2010-10-22 22:30 | tvo | New Issue | |
2010-10-22 22:37 | tvo | Product Version | => 0.82.6.1 |
2010-11-03 23:13 | Kloot | Relationship added | duplicate of 0002202 |
2010-11-22 17:35 | abma | Severity | minor => crash |
2010-11-27 22:42 | abma | Note Added: 0005979 | |
2010-11-27 22:45 | abma | File Added: 20101127_223130_unnamed_0.82.6.sdf | |
2010-11-27 22:46 | abma | Note Added: 0005980 | |
2010-12-06 20:26 | abma | Summary | crash on exit of Spring on Linux => crash on exit of Spring on Linux in EventBatchHandler.cpp:19 |
2010-12-31 01:53 | Kloot | Status | new => assigned |
2010-12-31 01:53 | Kloot | Assigned To | => Kloot |
2011-01-01 05:14 | jK | Note Added: 0006173 | |
2011-01-01 13:12 | Kloot | Note Added: 0006176 | |
2011-01-01 21:44 | abma | Note Added: 0006182 | |
2011-01-01 21:44 | abma | Status | assigned => resolved |
2011-01-01 21:44 | abma | Fixed in Version | => 0.82.6.1+git |
2011-01-01 21:44 | abma | Resolution | open => fixed |