MantisBT - Zandronum
View Issue Details
0002152Zandronum[All Projects] Bugpublic2015-04-01 00:512018-09-30 21:37
Untitled 
Torr Samaho 
normalcrashalways
closedfixed 
MicrosoftWindowsXP/Vista/7
2.0 
2.12.1 
0002152: gl_cachenodes 1 causes servers to crash (includes crashlog)
So basically I tried to host samsarahold and the server crashed completely and utterly.

I don't know what went wrong, so if this is my fault I'd like to know (it might well be my fault).

I know it's kind of silly saying "ok completely arbituary crash oh god help" on the tracker but I want to know what to do to stop this one.
'https://zandronum.com/forum/showthread.php?tid=3053 [^]'

This has a server setup I use to host samsaraHold.

So steps:

1. Host Samsarahold using #bestever, preferably using that setup.
2. Set up your RCON
3. Changemap MAP99
4. Watch your server explode.
Also, as I've tested, MAP99 seems to be where it blows - I had a server (not this one, as I don't have the crash log for my other ones) which blew up at zero seconds when I used a config to start at MAP99.
No tags attached.
txt FatalErrorCrash.txt (9,749) 2015-04-01 00:51
/tracker/file_download.php?file_id=1442&type=bug
txt watastronghold.cfg.txt (1,303) 2015-04-04 15:26
/tracker/file_download.php?file_id=1446&type=bug
txt AnotherFatalErrorSignal11.txt (29,088) 2015-04-04 22:35
/tracker/file_download.php?file_id=1450&type=bug
Issue History
2015-04-01 00:51UntitledNew Issue
2015-04-01 00:51UntitledFile Added: FatalErrorCrash.txt
2015-04-01 02:34WatermelonNote Added: 0011955
2015-04-01 02:34WatermelonStatusnew => feedback
2015-04-01 02:35UntitledNote Added: 0011956
2015-04-01 02:35UntitledStatusfeedback => new
2015-04-01 03:54WatermelonNote Added: 0011963
2015-04-01 03:54WatermelonStatusnew => feedback
2015-04-01 10:56UntitledNote Added: 0011967
2015-04-01 10:56UntitledStatusfeedback => new
2015-04-01 10:57UntitledNote Edited: 0011967bug_revision_view_page.php?bugnote_id=11967#r6878
2015-04-01 16:19WatermelonNote Added: 0011969
2015-04-01 16:20WatermelonAssigned To => Watermelon
2015-04-01 16:20WatermelonStatusnew => assigned
2015-04-03 10:25Torr SamahoNote Added: 0012000
2015-04-03 22:50UntitledNote Added: 0012014
2015-04-04 09:27Torr SamahoNote Added: 0012016
2015-04-04 15:26ArcoFile Added: watastronghold.cfg.txt
2015-04-04 18:14UntitledNote Added: 0012025
2015-04-04 19:37Edward-sanNote Added: 0012028
2015-04-04 19:38Torr SamahoNote Added: 0012029
2015-04-04 19:40Edward-sanNote Edited: 0012028bug_revision_view_page.php?bugnote_id=12028#r6913
2015-04-04 22:35UntitledNote Added: 0012032
2015-04-04 22:35UntitledFile Added: AnotherFatalErrorSignal11.txt
2015-04-04 22:45Konar6Note Added: 0012033
2015-04-04 23:26Edward-sanNote Added: 0012034
2015-04-04 23:29Edward-sanNote Edited: 0012034bug_revision_view_page.php?bugnote_id=12034#r6915
2015-04-05 00:25UntitledNote Added: 0012035
2015-04-05 00:28ArcoSummaryServer Crash (includes crashlog) => gl_cachenodes 1 causes servers to crash (includes crashlog)
2015-04-05 18:41WatermelonNote Added: 0012052
2015-04-05 18:41WatermelonNote Edited: 0012052bug_revision_view_page.php?bugnote_id=12052#r6917
2015-04-06 09:22Edward-sanNote Added: 0012061
2015-04-06 17:52Torr SamahoNote Added: 0012064
2015-04-08 21:03DuskAssigned ToWatermelon => Torr Samaho
2015-05-31 17:27Torr SamahoNote Added: 0012476
2015-05-31 17:27Torr SamahoStatusassigned => needs testing
2015-05-31 17:27Torr SamahoTarget Version => 2.1
2015-05-31 17:30cobaltNote Added: 0012477
2015-06-24 22:45DuskStatusneeds testing => resolved
2015-06-24 22:45DuskFixed in Version => 2.2
2015-06-24 22:45DuskResolutionopen => fixed
2015-06-24 22:47DuskFixed in Version2.2 => 2.1
2018-09-30 21:37Blzut3Statusresolved => closed

Notes
(0011955)
Watermelon   
2015-04-01 02:34   
Can you paste your BE host command here so I can use it?
(0011956)
Untitled   
2015-04-01 02:35   
It's ".host hostname="SamsaraHold 0.12: The Mission Continues!" iwad=doom2.wad wad=strnghld_v1.pk3,strnghld_violence_v4.pk3,StrongHoldEditsNFixesv1.1PatchV4.1.pk3,StrongholdItemsV7.1.pk3,samsaraHold-v0.12-core.pk3,samsaraHold-v0.12-code.pk3 dmflags=16388 dmflags2=336593152 dmflags3=16 gamemode=coop"
(0011963)
Watermelon   
2015-04-01 03:54   
That is a lot more wads than I originally thought.

Do you know if it happens to any particular one? The best thing to do is to let me know how I can minimize this to as small of a wad set as possible to get the bug to happen. If you know what wads I can remove and any other info along with this, it would help me greatly.
(0011967)
Untitled   
2015-04-01 10:56   
(edited on: 2015-04-01 10:57)
.host hostname="Breaking Zandronum" iwad=doom2.wad wad=strnghld_v1.pk3,StrongholdItemsV7.1.pk3 config="watastronghold.cfg" gamemode=coop

(Using watastronghold.cfg starts the map at MAP99, which results in an immediate segfault)

Got it down to two files - strnghld_v1.pk3 doesn't break by itself, actually.

At these two wads, everything crashes. BestEver will say this is a wad error.

But what kind of wad error is "Address not Mapped to Object (Signal 11)"?

(0011969)
Watermelon   
2015-04-01 16:19   
Cool thanks!

Quote
But what kind of wad error is "Address not Mapped to Object (Signal 11)"?

It's a lower level error signal of something going wrong. I don't know if this means some kind of coding error. I'll try to find out why.
(0012000)
Torr Samaho   
2015-04-03 10:25   
Where can I get your watastronghold.cfg?
(0012014)
Untitled   
2015-04-03 22:50   
'http://www.best-ever.org/viewconfig?name=watastronghold.cfg [^]'

All of the contents of the .cfg are here.
(0012016)
Torr Samaho   
2015-04-04 09:27   
It looks like I can't access the file without creating an account. Can you attach the file to this ticket?
(0012025)
Untitled   
2015-04-04 18:14   
I wasn't the one who uploaded it, but it's now uploaded.
(0012028)
Edward-san   
2015-04-04 19:37   
(edited on: 2015-04-04 19:40)
Can you upload the involved file somewhere?

(0012029)
Torr Samaho   
2015-04-04 19:38   

zandronum.exe -file strnghld_v1.pk3 StrongholdItemsV7.1.pk3 -host +exec watastronghold.cfg

doesn't crash for me under Windows. Is it possible that your version of StrongholdItemsV7.1.pk3 is corrupted?
(0012032)
Untitled   
2015-04-04 22:35   
Hmm. Unless BestEver's StrongholdItemsV7.1.pk3 is corrupted, then it should be reproducable.

For me the big problem is this doesn't appear in single player - or using multiplayer emulation in single player - it appears to entirely be a Multiplayer problem, specifically when hosting using #BestEver.

And I can confirm this, because I annihilated another server, with a Crash Log, again.

Posted the Crash Log.
(0012033)
Konar6   
2015-04-04 22:45   
Can you reproduce it on your own server?
(0012034)
Edward-san   
2015-04-04 23:26   
(edited on: 2015-04-04 23:29)
oh, finally a crash log with full debug info! :)

Bad news: it has nothing to do with the archive itself, but with the gl node cache file handling. What happens if you host again with 'gl_cachenodes 0'?

[edit]gl_cachenodes was introduced in 2.0. I guess servers should not enable gl node caching at all, considering that some host services run the same application with different parameters...

(0012035)
Untitled   
2015-04-05 00:25   
That actually worked!

Alright, I'd like to now point out a new bug:

"gl_cachenodes" can crash servers.
(0012052)
Watermelon   
2015-04-05 18:41   
@Torr, since this is likely (G)ZDoom related, do you want me to assign the ticket to you since you did the upgrading?

I don't mind attempting to fix it, though you might know how to fix it already since you did the upgrading.

(0012061)
Edward-san   
2015-04-06 09:22   
I believe this can be fixed by changing the cvar to custom and forcing the cvar to be off for the servers.
(0012064)
Torr Samaho   
2015-04-06 17:52   
I'll take care of this.
Quote from Edward-san

I believe this can be fixed by changing the cvar to custom and forcing the cvar to be off for the servers.

Since it's an archived CVAR, changing it to false on the server would also change it in the ini, affecting clients who share the same ini. I think a better way here is to ignore the value of the cvar on the server. It's only used at a single place, so that requires only one small change.
(0012476)
Torr Samaho   
2015-05-31 17:27   
Hopefully, fixed now. Please check.
(0012477)
cobalt   
2015-05-31 17:30   
Issue addressed by commit c51cf7826429: Fixed: "gl_cachenodes 1" could crash the server (fixes 2152).
Committed by Benjamin Berkels [Torr Samaho] on Sunday 31 May 2015 19:25:40

Changes in files:

 docs/zandronum-history.txt | 1 +
 src/gl/data/gl_nodes.cpp | 3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)