ID:2338657
 
Resolved
Lack of sanity checking in some map handling routines caused the compiler to crash in some rare cases.
BYOND Version:512.1403
Operating System:Windows 10 Pro
Web Browser:Chrome 63.0.3239.132
Applies to:Dream Maker
Status: Resolved (512.1405)

This issue has been resolved.
Descriptive Problem Summary:
dm.exe will silently crash on build and exit with error code 123 with no errors output to the console.
Numbered Steps to Reproduce Problem:
1. Download https://github.com/DamianX/vgstation13/archive/ fc5bd6fb41f995837cde7f07db8a3cf936cc1cca.zip
2. Use dm.exe to build the project.
3. A short time after "loading tgstation.dmm" it will silently crash.
Code Snippet (if applicable) to Reproduce Problem:


Expected Results:
Build.
Actual Results:
Silent crash on build.

This problem occurs on both Linux and Windows.
Linux build via Travis: https://travis-ci.org/vgstation-coders/vgstation13/builds/ 330997771#L742

We have been unable to find a workaround for this, as we cannot even diagnose the problem. It seems to work on at least one of our other maps (test_tiny.dmm).
Could not reproduce on 512.1404 (or 512.1403)

https://gist.github.com/MrStonedOne/ 6995943127dc9cadec117892ba13a6f6

How ever one thing I noticed it is not actually getting to the stage where it loads the map. loading tgstation.dmm never prints but i can confirm the loader for it is checked in the dme.

Were these errors last minute additions from something getting unchecked?

Faulting application name: dm.exe, version: 5.0.512.1404, time stamp: 0x5a6257b2
Faulting module name: byondcore.dll, version: 5.0.512.1404, time stamp: 0x5a6257b2
Exception code: 0xc0000005
Fault offset: 0x0008a8bf
Faulting process id: 0x2e00
Faulting application start time: 0x01d391783a7badf0
Faulting application path: c:\Program Files (x86)\BYOND\bin\dm.exe
Faulting module path: c:\Program Files (x86)\BYOND\bin\byondcore.dll
Any update on this?
When running this through the debugger I found it ran out of memory but didn't throw an exception. I'm adding some sanity checking there but it's possible memory is the issue. The debugger tends to exacerbate such things, though, so I'll keep testing and also try a release mode test.

[edit]
On a subsequent run I got no memory errors, but did get a crash in the map handling. I believe that explains your crash and will have that fixed in the next release.
BTW, the error I get when this is fixed is this:

maps\tgstation.dmm:12900:error: undefined map symbol: "bBC"

Failed to load map file [path]\vgstation13-fc5bd6fb41f995837cde7f07db8a3cf936cc1cca\maps\tgstation.dmm.vgstation13.dmb - 1 error, 0 warnings (1/25/18 4:55 pm)

So there's a problem in your map file, and that's triggering a bug.
Lummox JR resolved issue with message:
Lack of sanity checking in some map handling routines caused the compiler to crash in some rare cases.