Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

GetContextAsync Exceptions on ARM #126

Closed

Description

@Tratcher

When running on Win 10 IoT with ARM CoreCLR we often get the following error:

error   : [Microsoft.Net.Http.Server.WebListener] GetContextAsync
Microsoft.Net.Http.Server.WebListenerException: Invalid access to memory location
   at Microsoft.Net.Http.Server.WebListener.GetContextAsync()
error   : [Microsoft.AspNet.Server.WebListener.MessagePump] ListenForNextRequestAsync
Microsoft.Net.Http.Server.WebListenerException: Invalid access to memory location
   at Microsoft.Net.Http.Server.WebListener.GetContextAsync()
   at Microsoft.AspNet.Server.WebListener.MessagePump.<ProcessRequestsWorker>d__18.MoveNext()

This looks similar to: http://blogs.msdn.com/b/cie/archive/2013/10/31/compute-emulator-invalid-access-to-memory-location.aspx

Activity

  1. Tratcher commented on Jun 15, 2015

    @Tratcher
    MemberAuthor

    Possibly related: aspnet/dnx#2063

  2. added this to the Backlog milestone on Sep 9, 2015
  3. munyirik commented on Apr 26, 2016

    @munyirik

    Any update on this? I'm trying to use WebListener on my Raspberry Pi 2 and hit this issue.

  4. moozzyk commented on Apr 26, 2016

    @moozzyk
    Contributor

    @muratg - this may need to be retriaged.

  5. modified the milestones: 1.0.0, Backlog on Apr 26, 2016
  6. muratg commented on Apr 26, 2016

    @muratg

    Let's reconsider this in 1.0.0 since UWP apps can now use http.sys to server web requests.

  7. munyirik commented on Apr 26, 2016

    @munyirik

    Thanks. What's the timeline for 1.0.0?

  8. modified the milestones: 1.0.1, 1.0.0 on May 26, 2016
  9. moozzyk commented on Jun 8, 2016

    @moozzyk
    Contributor

    The issue here is that HttpReceiveHttpRequest expects the buffer to be 8-byte aligned but on ARM the buffer is 4-byte aligned and when falls on the 4 byte boundary HttpReceiveHttpRequest returns ERROR_NOACCESS which is then converted to the "Invalid access to memory location" exception.

  10. moozzyk commented on Jun 22, 2016

    @moozzyk
    Contributor

    Fixed in f63e53b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions