the-cold-dark / genesis

The Cold server - This implements a dynamic, object-oriented language on top of an object database, well suited for virtual environments and online servers (like games).
29 stars 7 forks source link

Additional Error handling for Decompile #8

Closed saulren closed 3 years ago

saulren commented 4 years ago

While decompiling from binary, when an object or its contents is out of range per INSTANCE_RECORD, panic("Invalid data type") is thrown and it aborts the decompile. Would there be a way to write some sort of error handling in the coldcc source code to skip over the object during the decompile? Normally this would produce unfavorable results, but I happen to know the object in error and it has no children so removing it from the textdump would be preferable. I am unable to manipulate or read the object from the core in any way. The driver shuts down immediately (but doesn't corrupt the db, oddly.) I'm guessing that there's a bad frob in one of the vars on the object.

saulren commented 3 years ago

After doing some research I found some old replies from Brandon on the mailing list concerning a debug mode after I had recovered from a stable backup.