[Moonlight-list] Moonlight 2 In Second Life

Byron Linden byron at lindenlab.com
Wed Mar 3 11:13:09 EST 2010


On 3 March 2010 00:42, Lucas Meijer <lucas at lucasmeijer.com> wrote:
> Hey Byron,
>

Lucas,

Thanks for your reply. I think we are already doing everything you
describe in your mail correctly, including calling
mono_security_set_core_clr_platform_callback and writing a callback to
identify platform assemblies.

Sebastien and Lucas,

We are running into some problems still, and it looks possible that we
have hit a bug in the mono runtime libraries.

When the Second Life simulator creates a new scripted object, it uses
some managed helper code in a class called DomainCreator which we have
discussed with the mono developer community before, but I attach below
for reference. This code is failing, throwing an exception with a
backtrace I attach. This code works correctly with the CoreCLR
enabled.

Can you see any explanation why we are seeing this exception? Is it
possible we are triggering a bug in runtime code which should work
correctly in this scenario?

We are also interested to know whether it is now possible to create a
Domain from unmanaged code now. If we can stop using the call to
managed code to create domains, that would help us get past this
hurdle.

Al
-------------- next part --------------
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Security.Policy.PolicyLevel.Resolve (System.Security.Policy.Evidence evidence) [0x00000] in <filename unknown>:0 
  at System.Security.SecurityManager.ResolvePolicyLevel (System.Security.PermissionSet& ps, System.Security.Policy.PolicyLevel pl, System.Security.Policy.Evidence evidence) [0x00000] in <filename unknown>:0 
  at System.Security.SecurityManager.ResolvePolicy (System.Security.Policy.Evidence evidence) [0x00000] in <filename unknown>:0 
  at System.Security.SecurityManager.ResolvePolicy (System.Security.Policy.Evidence evidence, System.Security.PermissionSet reqdPset, System.Security.PermissionSet optPset, System.Security.PermissionSet denyPset, System.Security.PermissionSet& denied) [0x
00000] in <filename unknown>:0 
  at System.Reflection.Assembly.Resolve () [0x00000] in <filename unknown>:0 
  at System.Reflection.Assembly.get_GrantedPermissionSet () [0x00000] in <filename unknown>:0 
  at System.Security.SecurityManager.IsGranted (System.Reflection.Assembly a, IPermission perm) [0x00000] in <filename unknown>:0 
  at System.Security.SecurityManager.CheckPermissionSet (System.Reflection.Assembly a, System.Security.PermissionSet ps, Boolean noncas) [0x00000] in <filename unknown>:0 
  at System.Security.PermissionSet.CheckAssembly (System.Reflection.Assembly a, SecurityFrame frame) [0x00000] in <filename unknown>:0 
  at System.Security.PermissionSet.ProcessFrame (SecurityFrame frame, System.Reflection.Assembly& current, System.AppDomain& domain) [0x00000] in <filename unknown>:0 
  at System.Security.PermissionSet.CasOnlyDemand (Int32 skip) [0x00000] in <filename unknown>:0 
  at System.Security.CodeAccessPermission.Demand () [0x00000] in <filename unknown>:0 
  at System.IO.Path.GetFullPath (System.String path) [0x00000] in <filename unknown>:0 
  at System.AppDomainSetup.GetAppBase (System.String appBase) [0x00000] in <filename unknown>:0 
  at System.AppDomainSetup.get_ApplicationBase () [0x00000] in <filename unknown>:0 
  at System.AppDomain.CreateDomain (System.String friendlyName, System.Security.Policy.Evidence securityInfo, System.AppDomainSetup info) [0x00000] in <filename unknown>:0 
  at System.AppDomain.CreateDomain (System.String friendlyName) [0x00000] in <filename unknown>:0 
  at LindenLab.SecondLife.DomainCreator.CreateDomain (System.Object o) [0x00000] in <filename unknown>:0 
  at LindenLab.SecondLife.DomainCreator.Main (System.String[] args) [0x00000] in <filename unknown>:0 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DomainCreator.cs
Type: application/octet-stream
Size: 1753 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/moonlight-list/attachments/20100303/6e6762b0/attachment-0001.obj 


More information about the Moonlight-list mailing list