[Ironpython-users] IronPython, Daily Digest 2/19/2013

CodePlex no_reply at codeplex.com
Wed Feb 20 10:15:39 CET 2013


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New comment] PythonSocket -- unhandled exception in Finalize() in restricted AppDomain

----------------------------------------------

ISSUES

1. [New comment] PythonSocket -- unhandled exception in Finalize() in restricted AppDomain
http://ironpython.codeplex.com/workitem/33779
User KeithJRome has commented on the issue:

"Most likely has something to do with the fact that the finalization queue is run on the finalizer thread. The finalizer calls _close(), which in turn tries to delist the socket from the static dictionary _handleToSocket. But to get the key used in that dictionary, it uses the Handle property, which makes a CAS demand on SecurityPermissionFlag.UnmanagedCode. And I guess the finalizer thread is not endowed with that permission.

Seems like the least nasty fix might be to change how _close() searches for the socket in that dictionary... doing a brute-force lookup by value instead of by key and removing it that way? This would avoid any attempts to dereference the Handle property of the Socket during finalization."
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20130220/b0b479ad/attachment.html>


More information about the Ironpython-users mailing list