View Issue Details

IDProjectCategoryView StatusLast Update
0002292Spring engineGeneralpublic2011-01-10 00:32
Reporterabma Assigned ToKloot  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.82.7 
Fixed in Version0.82.7+git 
Summary0002292: crash in spring-headless
Descriptionto reproduce:

git clone git://github.com/abma/spring-tester.git
cd spring-tester
make
./spring-tester --spring /path/to/spring-headless
Additional Information bt
#0 0x0000000000af9aa1 in C3DModelLoader::CreateLocalModel (this=0x201b6a0, model=0x7fffe005c3e0)
    at /home/abma/dev/spring/stable/rts/Rendering/Models/IModelParser.cpp:197
#1 0x0000000000af9997 in C3DModelLoader::CreateLocalModel (this=0x201b6a0, unit=0x7f1e5f0)
    at /home/abma/dev/spring/stable/rts/Rendering/Models/IModelParser.cpp:182
#2 0x0000000000c9b9ac in CUnitLoader::LoadUnit (this=0x13e7190, ud=0x4692c70, pos=..., team=0, build=false, facing=0,
    builder=0x0) at /home/abma/dev/spring/stable/rts/Sim/Units/UnitLoader.cpp:331
0000003 0x00000000007c3964 in CGame::ActionReceived (this=0x1b94630, action=..., playernum=0)
    at /home/abma/dev/spring/stable/rts/Game/Game.cpp:2530
0000004 0x00000000007ceb0d in CGame::ClientReadNet (this=0x1b94630) at /home/abma/dev/spring/stable/rts/Game/Game.cpp:4564
0000005 0x00000000007c538a in CGame::Update (this=0x1b94630) at /home/abma/dev/spring/stable/rts/Game/Game.cpp:2832
#6 0x0000000000d66609 in SpringApp::Update (this=0x7fffffffe600)
    at /home/abma/dev/spring/stable/rts/System/SpringApp.cpp:1051
#7 0x0000000000d6695b in SpringApp::Run (this=0x7fffffffe600, argc=2, argv=0x7fffffffe778)
    at /home/abma/dev/spring/stable/rts/System/SpringApp.cpp:1182
#8 0x0000000000d6b28f in Run (argc=2, argv=0x7fffffffe778) at /home/abma/dev/spring/stable/rts/System/Main.cpp:55
#9 0x0000000000d6b3e7 in main (argc=2, argv=0x7fffffffe778) at /home/abma/dev/spring/stable/rts/System/Main.cpp:90
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
infolog-coberrors.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

abma

2011-01-09 22:21

administrator   ~0006230

Last edited: 2011-01-09 22:29

crash is gone after: https://github.com/spring/spring/commit/8d6c06413a24857fc2aa1e727cb30e4d8307f0fc

but there are now many cob-errors now (see attached file) + it hangs...

abma

2011-01-09 23:16

administrator   ~0006231

Last edited: 2011-01-09 23:19

now crashes in https://github.com/spring/spring/blob/master/rts/Rendering/Textures/S3OTextureHandler.cpp#L72

(gdb) thread apply all bt

Thread 5 (Thread 0x2ab333a28700 (LWP 16873)):
#0 0x0000000000ac1116 in CS3OTextureHandler::LoadS3OTextureNow (this=0x68b8220, model=0xa3bd8c0) at /home/abma/dev/spring/master/rts/Rendering/Textures/S3OTextureHandler.cpp:72
#1 0x0000000000ac0f57 in CS3OTextureHandler::LoadS3OTexture (this=0x68b8220, model=0xa3bd8c0) at /home/abma/dev/spring/master/rts/Rendering/Textures/S3OTextureHandler.cpp:45
#2 0x0000000000ae1b57 in COBJParser::Load (this=0x37edea0, modelFileName=...) at /home/abma/dev/spring/master/rts/Rendering/Models/OBJParser.cpp:59
0000003 0x0000000000adb034 in C3DModelLoader::Load3DModel (this=0x5d07cd0, name=..., centerOffset=...) at /home/abma/dev/spring/master/rts/Rendering/Models/IModelParser.cpp:104
0000004 0x0000000000c8092d in UnitDef::LoadModel (this=0x6259370) at /home/abma/dev/spring/master/rts/Sim/Units/UnitDef.cpp:765
0000005 0x0000000000c87ba7 in CUnit::PreInit (this=0x8d040a0, uDef=0x6259370, uTeam=0, facing=0, position=..., build=false) at /home/abma/dev/spring/master/rts/Sim/Units/Unit.cpp:452
#6 0x0000000000d11657 in CBuilding::PreInit (this=0x8d040a0, def=0x6259370, team=0, facing=0, position=..., build=false)
    at /home/abma/dev/spring/master/rts/Sim/Units/UnitTypes/Building.cpp:38
#7 0x0000000000c9baa8 in CUnitLoader::LoadUnit (this=0x62dfe10, ud=0x6259370, pos=..., team=0, build=false, facing=0, builder=0x0)
    at /home/abma/dev/spring/master/rts/Sim/Units/UnitLoader.cpp:110
#8 0x00000000007868be in CGame::ActionReceived (this=0x2ab3341f6580, action=..., playernum=0) at /home/abma/dev/spring/master/rts/Game/SyncedGameCommands.cpp:230
#9 0x0000000000781280 in CGame::ClientReadNet (this=0x2ab3341f6580) at /home/abma/dev/spring/master/rts/Game/NetCommands.cpp:971
0000010 0x00000000007cef60 in CGame::Update (this=0x2ab3341f6580) at /home/abma/dev/spring/master/rts/Game/Game.cpp:1003
#11 0x0000000000d6b013 in SpringApp::Update (this=0x2ab333a27d10) at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1057
0000012 0x0000000000d6b257 in SpringApp::Run (this=0x2ab333a27d10, argc=2, argv=0x7fffff78ab58) at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1171
0000013 0x0000000000d6f87a in MainFunc (argc=2, argv=0x7fffff78ab58, ret=0x7fffff78aa2c) at /home/abma/dev/spring/master/rts/System/Main.cpp:54
0000014 0x0000000000d7057c in boost::_bi::list3<boost::_bi::value<int>, boost::_bi::value<char**>, boost::_bi::value<int*> >::operator()<void (*)(int, char**, int*), boost::_bi::list0> (
    this=0x3316fd0, f=@0x3316fc8, a=...) at /usr/include/boost/bind/bind.hpp:385
#15 0x0000000000d704ef in boost::_bi::bind_t<void, void (*)(int, char**, int*), boost::_bi::list3<boost::_bi::value<int>, boost::_bi::value<char**>, boost::_bi::value<int*> > >::operator() (this=0x3316fc8) at /usr/include/boost/bind/bind_template.hpp:20
#16 0x0000000000d704ae in boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(int, char**, int*), boost::_bi::list3<boost::_bi::value<int>, boost::_bi::value<char**>, boost::_---Type <return> to continue, or q <return> to quit---
bi::value<int*> > > >::run (this=0x3316ec0) at /usr/include/boost/thread/detail/thread.hpp:56
#17 0x00002ab31f976b70 in thread_proxy () from /usr/lib/libboost_thread.so.1.40.0
#18 0x00002ab320db99ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#19 0x00002ab3210b670d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
0000020 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x2ab333c70700 (LWP 16874)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1 0x00002ab31f97849c in boost::this_thread::sleep(boost::posix_time::ptime const&) () from /usr/lib/libboost_thread.so.1.40.0
#2 0x0000000000e781ac in boost::thread::sleep(boost::posix_time::ptime const&) ()
0000003 0x0000000000e77e57 in stub_sdl_sleepMilliSeconds (milliSeconds=10) at /home/abma/dev/spring/master/rts/lib/headlessStubs/sdlstub_cppbit.cpp:28
0000004 0x0000000000e77bfe in SDL_Delay ()
0000005 0x000000000074f306 in CGameServer::UpdateLoop (this=0x335c9b0) at /home/abma/dev/spring/master/rts/Game/GameServer.cpp:2044
#6 0x000000000077bdf7 in boost::_mfi::mf0<void, CGameServer>::operator()(CGameServer*) const ()
#7 0x000000000077bd54 in void boost::_bi::list1<boost::_bi::value<CGameServer*> >::operator()<boost::_mfi::mf0<void, CGameServer>, boost::_bi::list0>(boost::_bi::type<void>, boost::_mfi::mf0<void, CGameServer>&, boost::_bi::list0&, int) ()
#8 0x000000000077bcb9 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, CGameServer>, boost::_bi::list1<boost::_bi::value<CGameServer*> > >::operator()() ()
#9 0x000000000077ae8e in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, CGameServer>, boost::_bi::list1<boost::_bi::value<CGameServer*> > > >::run() ()
0000010 0x00002ab31f976b70 in thread_proxy () from /usr/lib/libboost_thread.so.1.40.0
#11 0x00002ab320db99ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
0000012 0x00002ab3210b670d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
0000013 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x2ab3239244e0 (LWP 16872)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1 0x00002ab31f977c8b in boost::thread::timed_join(boost::posix_time::ptime const&) () from /usr/lib/libboost_thread.so.1.40.0
#2 0x0000000000d6fede in boost::thread::timed_join<boost::posix_time::seconds> (this=0x3316e80, rel_time=...) at /usr/include/boost/thread/detail/thread.hpp:303
0000003 0x0000000000d6fb8e in Run (argc=2, argv=0x7fffff78ab58) at /home/abma/dev/spring/master/rts/System/Main.cpp:67
0000004 0x0000000000d6fc22 in main (argc=2, argv=0x7fffff78ab58) at /home/abma/dev/spring/master/rts/System/Main.cpp:91

Kloot

2011-01-09 23:31

developer   ~0006232

standby

Kloot

2011-01-09 23:52

developer   ~0006233

should be fixed, please retry :)

abma

2011-01-10 00:00

administrator   ~0006234

[f=0009000] Tests finished after 9000!


works, thanks! :-)

Issue History

Date Modified Username Field Change
2011-01-08 00:04 abma New Issue
2011-01-08 00:05 abma File Added: infolog.txt
2011-01-09 22:21 abma Note Added: 0006230
2011-01-09 22:21 abma Note Edited: 0006230
2011-01-09 22:22 abma File Added: infolog-coberrors.txt
2011-01-09 22:23 abma Note Edited: 0006230
2011-01-09 22:29 abma Note Edited: 0006230
2011-01-09 23:16 abma Note Added: 0006231
2011-01-09 23:19 abma Note Edited: 0006231
2011-01-09 23:28 abma Description Updated
2011-01-09 23:31 Kloot Note Added: 0006232
2011-01-09 23:46 abma Description Updated
2011-01-09 23:52 Kloot Note Added: 0006233
2011-01-10 00:00 abma Note Added: 0006234
2011-01-10 00:00 abma Status new => resolved
2011-01-10 00:00 abma Resolution open => fixed
2011-01-10 00:00 abma Assigned To => abma
2011-01-10 00:00 abma Status resolved => assigned
2011-01-10 00:00 abma Assigned To abma => Kloot
2011-01-10 00:32 Kloot Status assigned => resolved
2011-01-10 00:32 Kloot Fixed in Version => 0.82.7+git