ID:2148512
 
Resolved
BYOND Version:511.1355
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Chrome 52.0.2743.116
Applies to:Dream Daemon
Status: Resolved (515.1614)

This issue has been resolved.
Code Snippet (if applicable) to Reproduce Problem:

testobj
proc/static
Herp()
world.log << "herp"

mob
Login()
..()
spawn(10)
var/testobj/t
t:Herp()


Error details:

Log Name:      Application
Source:        Application Error
Date:          9/16/2016 6:01:46 PM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Overlord-Redux
Description:
Faulting application name: dreamseeker.exe, version: 5.0.511.1355, time stamp: 0x57c9cce0
Faulting module name: byondcore.dll, version: 5.0.511.1355, time stamp: 0x57c9cbe9
Exception code: 0xc0000005
Fault offset: 0x000aabd3
Faulting process id: 0x8a0
Faulting application start time: 0x01d21065e9ef65cc
Faulting application path: C:\Program Files (x86)\BYOND\bin\dreamseeker.exe
Faulting module path: C:\Program Files (x86)\BYOND\bin\byondcore.dll
Report Id: 286bf6d2-7c59-11e6-bd28-002421e58df6
I'm sure I made a bug report for this a while ago.

edit: https://secure.byond.com/forum/?post=2067218
This bug is nasty. It's happening in the compiler, where apparently it's saving a var index incorrectly because of the fact that it's both a proc and marked as global.

I can't get the test case to crash, but it is producing a runtime error about proc stack underflow.
Lummox JR resolved issue