ID:2875003
 
Resolved
(/datum)::parent_type compiled incorrectly, resulting in runtime errors that could crash the server.
BYOND Version:515.1606
Operating System:Linux
Web Browser:N/A
Applies to:Dream Maker
Status: Resolved (515.1609)

This issue has been resolved.
Descriptive Problem Summary:
Accessing (/datum)::parent_type in any way crashes Dream Daemon.

Numbered Steps to Reproduce Problem:
Compile any of the below snippets.

Code Snippet (if applicable) to Reproduce Problem:
world.log << json_encode((/datum)::parent_type)

OR
world.log << "[(/datum)::parent_type]"

OR
var/variable = (/datum)::parent_type



Expected Results:
The statement producing a runtime/null value

Actual Results:
BUG: Crashing due to an illegal operation!

Does the problem occur:
Every time? Or how often?
Yes.

In other games?
Yes.

In other user accounts?
Yes.

On other computers?
Probably.

When does the problem NOT occur?
When accessing parent_type of any other base type, f.e /atom or /turf

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Haven't checked.

Workarounds:

Instantiate a datum variable, and access parent_type using
datum_var.parent_type
Lummox JR resolved issue with message:
(/datum)::parent_type compiled incorrectly, resulting in runtime errors that could crash the server.