View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002575||Multi Theft Auto : San Andreas||GUI / Menus / Console||public||2007-10-04 09:22||2007-11-11 16:59|
|Target Version||Fixed in Version||mtasadm_v1.0-dp1|
|Summary||0002575: Using a table with self-references as element data or a call() parameter causes a crash|
If you pass a table that contains a reference to itself to setElementData or call, the client or server crashes.
Probably due to a deep copy algorithm that doesn't take this into account and goes into an infinite loop. If that's the case it could be replaced with something like this: http://lua-users.org/wiki/CopyTable
Execute this code client side and do /crashtest. (The frgui resource has this code in it, so you can just /start frgui and /crashtest)
|Tags||No tags attached.|
This is also the case when the table with autoreferences is passed through call() as a function parameter (tested serverside).
EDIT: I suppose it'll happen when returning this kind of table from a HTTP exported function too, haven't tested yet.