MantisBT - VCMI
View Issue Details
0001928VCMIMechanics - Battlespublic2014-11-05 14:462014-12-20 11:08
SXX 
AVS 
normalcrashalways
closedfixed 
PCLinux Kubuntu14.04
0.97 
0.97b 
0001928: vcmiserver crash when Master Genie cast one of spells on allied creature
I'm new here so I'm sorry if this report made wrong way. First of all this one is looks exactly as 0001015, but it's closed and there is no option to ask for reopening.

I'm successfully reproduced this behaviour multiple times on same map, but probably will work with other maps too.

PS: I do understand it's likely only one cast cause crash. I do checked TODO and it's looks like there shouldn't be anything that cause crash in this situation, but I'm not someone who play's HoMM3 24/7 so I can be wrong. Sorry then. :-)
  - Start new game with "Tower" on "Reclamation (Allied)" map. Hero can be random.
  - Use cheat "vcmiarmenelos" on town to get Master Genie.
  - Now get some Master Genie and other army to hero.
  - Use cheat "vcminahar" on hero to get more turns for testing.
  - Go into find with random enemies and use Genie cast on ally creatures again and again.
  - Repeat until you get a crash on one of casts, of course you might need several battles due to genie cast limit.
I'm actually running version called 0.97b (0.96+git20141105.3769~ubuntu14.10.1) from this PPA:
https://launchpad.net/~vcmi/+archive/ubuntu/ppa [^]
All mods except "VCMI essential files" are disabled.

As well I'm attach GDB backtrace of "vcmiserver" with debug symbols.
No tags attached.
duplicate of 0001377closed Warmonger Unreproducible crash on genie spellcasting 
txt vcmiserver_gdb_backtrace.txt (2,997) 2014-11-05 14:46
https://bugs.vcmi.eu/file_download.php?file_id=1946&type=bug
? crash_test_genie.vcgm1 (3,548,495) 2014-11-05 14:47
https://bugs.vcmi.eu/file_download.php?file_id=1947&type=bug
? crash_test_genie.vsgm1 (3,539,488) 2014-11-05 14:47
https://bugs.vcmi.eu/file_download.php?file_id=1948&type=bug
txt server_log.txt (2,024) 2014-11-05 14:47
https://bugs.vcmi.eu/file_download.php?file_id=1949&type=bug
txt VCMI_Client_log.txt (112,968) 2014-11-05 14:47
https://bugs.vcmi.eu/file_download.php?file_id=1950&type=bug
txt VCMI_Launcher_log.txt (5,377) 2014-11-05 14:48
https://bugs.vcmi.eu/file_download.php?file_id=1951&type=bug
txt VCMI_Server_log.txt (84,213) 2014-11-05 14:48
https://bugs.vcmi.eu/file_download.php?file_id=1952&type=bug
Issue History
2014-11-05 14:46SXXNew Issue
2014-11-05 14:46SXXFile Added: vcmiserver_gdb_backtrace.txt
2014-11-05 14:47SXXFile Added: crash_test_genie.vcgm1
2014-11-05 14:47SXXFile Added: crash_test_genie.vsgm1
2014-11-05 14:47SXXFile Added: server_log.txt
2014-11-05 14:47SXXFile Added: VCMI_Client_log.txt
2014-11-05 14:48SXXFile Added: VCMI_Launcher_log.txt
2014-11-05 14:48SXXFile Added: VCMI_Server_log.txt
2014-11-05 14:58SXXNote Added: 0005066
2014-11-06 05:48WarmongerAssigned To => Warmonger
2014-11-06 05:48WarmongerStatusnew => assigned
2014-11-06 06:03WarmongerNote Added: 0005067
2014-11-06 06:03WarmongerNote Edited: 0005067bug_revision_view_page.php?bugnote_id=5067#r2668
2014-11-28 17:46AVSNote Added: 0005195
2014-11-28 17:46AVSStatusassigned => resolved
2014-11-28 17:46AVSFixed in Version => 0.97b
2014-11-28 17:46AVSResolutionopen => fixed
2014-11-28 17:46AVSAssigned ToWarmonger => AVS
2014-11-28 19:06SXXNote Added: 0005196
2014-11-28 19:17SXXStatusresolved => closed
2014-12-20 11:08WarmongerRelationship addedduplicate of 0001377

Notes
(0005066)
SXX   
2014-11-05 14:58   
And yeah about my save. This give 100% reproduction of crash with first cast.
I suppose random number generator included within save so it's just crash every time.
(0005067)
Warmonger   
2014-11-06 06:03   
Now THAT's a bug report! People should learn from this example ;)

(0005195)
AVS   
2014-11-28 17:46   
fixed in https://github.com/vcmi/vcmi/commit/e583f4e44daf014b97e357629a9d99f5c2444914 [^]
(0005196)
SXX   
2014-11-28 19:06   
Tested in 499a281dfec58f4d5b2180ef1c4d703cb1a37c40 (+1 commit after named before) and crash if fixed.