MantisBT - Zandronum
View Issue Details
0001714Zandronum[All Projects] Bugpublic2014-02-21 16:112015-04-01 19:45
Hypnotoad 
 
normalcrashrandom
closedno change required 
MicrosoftWindowsXP/Vista/7
 
 
0001714: Very fatal error on Zanrun
Occasionally, my zanrun servers crash and I have no idea why. I have attached a crash dump and the pk3. Here also is a link to the pk3 used by the server:'http://static.best-ever.org/wads/zanrunb20.pk3 [^]'
No tags attached.
zip zanrunCTF2.zip (39,169) 2014-02-21 16:11
https://zandronum.com/tracker/file_download.php?file_id=1164&type=bug
Issue History
2014-02-21 16:11HypnotoadNew Issue
2014-02-21 16:11HypnotoadFile Added: zanrunCTF2.zip
2014-02-21 16:43AlienOverlordNote Added: 0008258
2014-02-21 16:46AlienOverlordNote Edited: 0008258bug_revision_view_page.php?bugnote_id=8258#r4506
2014-02-21 16:48AlienOverlordNote Edited: 0008258bug_revision_view_page.php?bugnote_id=8258#r4507
2014-02-21 16:49AlienOverlordNote Edited: 0008258bug_revision_view_page.php?bugnote_id=8258#r4508
2014-02-21 16:57AlienOverlordNote Edited: 0008258bug_revision_view_page.php?bugnote_id=8258#r4509
2014-02-21 16:58AlienOverlordNote Edited: 0008258bug_revision_view_page.php?bugnote_id=8258#r4510
2014-02-21 17:05AlienOverlordNote Added: 0008259
2014-02-21 17:05AlienOverlordNote Edited: 0008259bug_revision_view_page.php?bugnote_id=8259#r4512
2014-02-21 17:22HypnotoadNote Added: 0008260
2014-02-21 18:04AlienOverlordNote Edited: 0008259bug_revision_view_page.php?bugnote_id=8259#r4513
2014-02-22 01:31DuskNote Added: 0008263
2014-02-22 15:04Torr SamahoNote Added: 0008266
2014-06-15 15:28WatermelonNote Added: 0009424
2014-06-15 15:28WatermelonStatusnew => feedback
2015-04-01 19:45DuskStatusfeedback => closed
2015-04-01 19:45DuskResolutionopen => no change required

Notes
(0008258)
AlienOverlord   
2014-02-21 16:43   
(edited on: 2014-02-21 16:58)
p_acs.cpp line 7226

    if (state == SCRIPT_PleaseRemove)
    {
        Unlink ();
        if (controller->RunningScripts[script] == this) // <-- BOOM (script was 1202 somehow)
            controller->RunningScripts[script] = NULL;
    }
    else
    {
        this->pc = pc;
        assert (sp == 0);
    }

.text:0049C8E7 cmp dword ptr [esi+2Ch], 7
.text:0049C8EB jnz short loc_49C910
.text:0049C8ED mov ecx, esi
.text:0049C8EF call sub_4926A0
.text:0049C8F4 mov eax, [esi+1Ch]
.text:0049C8F7 mov ecx, [esp+4184h+var_4100]
.text:0049C8FE cmp [ecx+eax*4+1Ch], esi // <-- BOOM
.text:0049C902 lea eax, [ecx+eax*4+1Ch]
.text:0049C906 jnz short loc_49C913
.text:0049C908 mov dword ptr [eax], 0
.text:0049C90E jmp short loc_49C913
.text:0049C8FE cmp [ecx+eax*4+1Ch], esi

(from crash dump) EAX=000004b2

(0008259)
AlienOverlord   
2014-02-21 17:05   
(edited on: 2014-02-21 18:04)
We've just found 1202nd script in his ACS code. I don't know how did he compile that though, as it should have caused fatal error.

'https://github.com/AlexMax/zanrun/blob/c92e5e211fbf23f70608c0cfed6fd7c9c6755eec/zanrun/scripts/zanrun.acs [^]'

(0008260)
Hypnotoad   
2014-02-21 17:22   
I guess I probably must have compiled it with the zdoom acc by mistake. I guess this can be marked as resolved, unless having script numbers above 999 should still cause a nicer error (e.g. on startup with an explanation) than a very fatal error?
(0008263)
Dusk   
2014-02-22 01:31   
2.0 has a graceful error for those. I don't know whether 1.3 has it too..?
(0008266)
Torr Samaho   
2014-02-22 15:04   
So far only 2.0 has the added error. I didn't expect people to use script numbers bigger than 999 with the ZDoom 2.3.1 code base.
(0009424)
Watermelon   
2014-06-15 15:28   
Can you test in 2.0?