MantisBT - VCMI
View Issue Details
0001677VCMICampaignspublic2014-02-01 12:052014-06-02 11:32
Ivan 
Tow 
normalcrashrandom
closedfixed 
 
0.94d 
0001677: Sometimes vcmi crashes during advancing to next scenario
This is very random crash that happens quite rarely when advancing to next scenario in campaign. May be duplicate of some of crashes reported here.

Not sure what's going on so I took two stacktraces from gdb:
gdb-short.txt - just stacktraces from all threads (bt)
gdb-full.txt - full stacktraces including locals (bt full)

Two most "interesting threads are:
1) One that causes crash, failure to unlock a mutex:
5 0x00000000009f3e4b in boost::unique_lock<boost::recursive_mutex>::~unique_lock (this=0x7fffdf065d00, __in_chrg=<optimized out>)
    at /usr/include/boost/thread/lock_types.hpp:329
6 0x0000000000ba4d0f in CPlayerInterface::update (this=0x7fffb9e01f88)
    at code/client/CPlayerInterface.cpp:1615
7 0x0000000000a3933a in CGuiHandler::run (this=0x11d1d20 <GH>)
    at code/client/gui/CGuiHandler.cpp:388

2) Thread that handles connection, currently in middle of de-serialization of campaign state (may be unrelated):
14 0x0000000000b51553 in Bonus::serialize<CISer<CConnection> > (
    this=0x7fffb4d0f580, h=..., version=0)
    at code/lib/HeroBonus.h:330
...
85 0x0000000000b15315 in CGHeroInstance::serialize<CISer<CConnection> > (
    this=0x7fffb57b8220, h=..., version=743)
    at code/lib/CObjectHandler.h:397
...
140 0x00007ffff7392184 in UpdateCampaignState::serialize<CISer<CConnection> >
    (this=0x7fffb5556f90, h=..., version=743)
    at code/lib/NetPacks.h:442
...
148 0x0000000000b74a2a in CClient::run (this=0x7fffb8eb50b0)
    at code/client/Client.cpp:142
No tags attached.
txt gdb-full.txt (92,394) 2014-02-01 12:05
https://bugs.vcmi.eu/file_download.php?file_id=1669&type=bug
txt gdb-short.txt (38,462) 2014-02-01 12:05
https://bugs.vcmi.eu/file_download.php?file_id=1670&type=bug
Issue History
2014-02-01 12:05IvanNew Issue
2014-02-01 12:05IvanFile Added: gdb-full.txt
2014-02-01 12:05IvanFile Added: gdb-short.txt
2014-02-01 12:05IvanDescription Updatedbug_revision_view_page.php?rev_id=2496#r2496
2014-02-01 13:35TowNote Added: 0004360
2014-02-01 13:35TowStatusnew => resolved
2014-02-01 13:35TowFixed in Version => 0.94d
2014-02-01 13:35TowResolutionopen => fixed
2014-02-01 13:35TowAssigned To => Tow
2014-06-02 11:32KantorNote Added: 0004744
2014-06-02 11:32KantorStatusresolved => closed

Notes
(0004360)
Tow   
2014-02-01 13:35   
Should be fixed by r3722.
(0004744)
Kantor   
2014-06-02 11:32   
This one may be closed.