{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/931","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/931/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/931/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/931/events","html_url":"https://github.com/dotnet/coreclr/issues/931","id":73416303,"number":931,"title":"Fix the calls to DLLMain across PAL instances","user":{"login":"mikem8361","id":10454379,"avatar_url":"https://avatars.githubusercontent.com/u/10454379?v=3","gravatar_id":"","url":"https://api.github.com/users/mikem8361","html_url":"https://github.com/mikem8361","followers_url":"https://api.github.com/users/mikem8361/followers","following_url":"https://api.github.com/users/mikem8361/following{/other_user}","gists_url":"https://api.github.com/users/mikem8361/gists{/gist_id}","starred_url":"https://api.github.com/users/mikem8361/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikem8361/subscriptions","organizations_url":"https://api.github.com/users/mikem8361/orgs","repos_url":"https://api.github.com/users/mikem8361/repos","events_url":"https://api.github.com/users/mikem8361/events{/privacy}","received_events_url":"https://api.github.com/users/mikem8361/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mikem8361","id":10454379,"avatar_url":"https://avatars.githubusercontent.com/u/10454379?v=3","gravatar_id":"","url":"https://api.github.com/users/mikem8361","html_url":"https://github.com/mikem8361","followers_url":"https://api.github.com/users/mikem8361/followers","following_url":"https://api.github.com/users/mikem8361/following{/other_user}","gists_url":"https://api.github.com/users/mikem8361/gists{/gist_id}","starred_url":"https://api.github.com/users/mikem8361/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikem8361/subscriptions","organizations_url":"https://api.github.com/users/mikem8361/orgs","repos_url":"https://api.github.com/users/mikem8361/repos","events_url":"https://api.github.com/users/mikem8361/events{/privacy}","received_events_url":"https://api.github.com/users/mikem8361/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-05-05T20:00:16Z","updated_at":"2015-06-15T21:19:39Z","closed_at":"2015-06-15T21:19:39Z","body":"When one PAL loads another module containing a PAL it automatically calls DLLMain if it exists but with a HMODULE handle from the calling PAL. This handle won't work with the callee/loaded PAL APIs.\r\n\r\nOne fix I'm looking into is to create/export a PAL API that will create a module handle in the target PAL given the Linux module handle and full path. And then pass that to DLLMain."}}