aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/shutdown_commands.txt
diff options
context:
space:
mode:
authorSean Dague2008-11-10 12:42:22 +0000
committerSean Dague2008-11-10 12:42:22 +0000
commitbfc2d8c231234c35ae8134d885c26f0fe14935e2 (patch)
tree8673d0e1cb8947ee96bb2a7a92df7436e8dd3c49 /bin/shutdown_commands.txt
parentThe region proxy for the load balancer module works again. The incoming proxy... (diff)
downloadopensim-SC_OLD-bfc2d8c231234c35ae8134d885c26f0fe14935e2.zip
opensim-SC_OLD-bfc2d8c231234c35ae8134d885c26f0fe14935e2.tar.gz
opensim-SC_OLD-bfc2d8c231234c35ae8134d885c26f0fe14935e2.tar.bz2
opensim-SC_OLD-bfc2d8c231234c35ae8134d885c26f0fe14935e2.tar.xz
From: Christopher Yeoh <cyeoh@au1.ibm.com>
This patch addresses mantis bug 2576. http://opensimulator.org/mantis/view.php?id=2576 Briefly, if you call llDie from many scripts at the same time (say a build is cleaning up excess objects) then OpenSim deadlocks. Avatars are unable to move, and whilst the console is active you can't do much without it also locking up. This only occurs with the XEngine script engine enabled. I have attached a patch which works, but I'm not sure its the right way to address the problem. The fundamental problem is that a lock on a SceneObjectGroup's m_parts is taken when the object is deleted, a callback to the script engine occurs and a fair way down the callchain, potentially there are locks taken on several other SceneObjectGroup's m_parts. Deadlock then occurs if you get unlucky enough to get in the situation where with several llDie's are called and SceneObjectGroups have taken a lock on their own m_parts, and end up waiting on each other's locks to become available. The patch adds a lock at a high level so that that the removal of script instances from an object only occurs once per scene at a time. This avoids the potential of deadlock. Theoretically there could be some performance hit but AFAICT the path taken is not a common occurrence. Would welcome any suggestions for a better solution, otherwise feel free to apply :-) Note this patch was built against the 0.6.0 freeze as trunk was rather broken for me this morning (creating a script killed the client connection).
Diffstat (limited to 'bin/shutdown_commands.txt')
0 files changed, 0 insertions, 0 deletions