ID:2340645
 
Resolved
More regular expression trouble was resulting in a crash for certain kinds of expressions.
BYOND Version:512.1405
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Chrome 64.0.3282.119
Applies to:Dream Daemon
Status: Resolved (512.1406)

This issue has been resolved.
Faulting application name: dreamdaemon.exe, version: 5.0.512.1405, time stamp: 0x5a6b84df
Faulting module name: byondcore.dll, version: 5.0.512.1405, time stamp: 0x5a6b846f
Exception code: 0xc0000005
Fault offset: 0x001a5631
Faulting process id: 0x21f0
Faulting application start time: 0x01d396edbddde58d
Faulting application path: C:\Users\kyle\Documents\byond downloads\512.1405_byond\byond\bin\dreamdaemon.exe
Faulting module path: C:\Users\kyle\Documents\byond downloads\512.1405_byond\byond\bin\byondcore.dll
Report Id: 073d3580-02e1-11e8-bcaf-6805ca088e14
Dang it. This appears to be regexes again, which should have been fixed. Can you get me a list of all regexes that are used by /tg, especially at startup?
I have to head out to work soon, here is a quick grep:

https://tgstation13.org/parsed-logs/regex.txt

Edit: I updated it to include line numbers and 1 line of before and after context, here is the revision that's working off of:
https://github.com/tgstation/tgstation/archive/ 7d3fe85f5656fc5fd60cba2865db7e4b9a50e7e3.zip
regex: 'cap(?!tain)'

It triggers on this one.

This is also the first regex to load.

I found this by just adding a output to regex/New()

I reproduced it in my scratch pad project by setting a global var to it.

/var/regex/test = regex(@"cap(?!tain)")


edit, if i comment out that one, the following also triggers.
(?<!security )officer


I'm not even a 1/50 of the way thru our regexes at this point, i don't think it would be likely that any use of non-standard capturing groups would compile.
I confirmed this in my separate regex project, so I can debug from there.

I'm trying to work out a new system for the compilation that should hopefully avoid a lot of confusion and possibly handle expressions in a better way.
Lummox JR resolved issue with message:
More regular expression trouble was resulting in a crash for certain kinds of expressions.