View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000038||LDMud 3.3||Runtime||public||2003-12-21 08:18||2004-05-17 09:27|
|Summary||0000038: function_exists() on destructed object calls fatal|
|Description||this doesn't make sense imho:|
in object.c (731ff 3.3.489)
if (ob->flags & O_DESTRUCTED)
fatal("function_exists() on destructed object\n");
There is no need for the fatal, especially cause its only if the driver is compiled with DEBUG on.
|Tags||No tags attached.|
That piece of code is a sanity check: the internal function_exists() function should never be called with a destructed object, as that object may no longer have the pointers function_exists() requires to do its work.
I added proper checks to both f_function_exists() and f_variable_exists() (the actual efun functions) to throw a runtime error if called for a destructed object.
Fixed in 3.2-dev.624 and 3.3.509.
|2003-12-21 08:18||peng||New Issue|
||Status||new => resolved|
||Resolution||open => fixed|
||Assigned To||=> lars|
||Note Added: 0000044|
||Status||resolved => closed|