Skip to content

[wasm][debugger] Crash/assert when stepping out from an async method #41973

Closed

Description

@radical

I changed aspnetcore's StandaloneApp's Counter.razor to:

@code {
    static HttpClient client = new HttpClient();
    int currentCount = 0;

    async Task IncrementCount()
    {
	        currentCount ++;
                await JustWaitAsync("foobar");
    }

    async Task<HttpStatusCode> JustWaitAsync(string some)
    {
        var resp = await client.GetAsync("http://localhost:8080");
        Console.WriteLine($"resp: {resp}"); /// BP at this line

        return resp.StatusCode;
    }
}

I set a breakpoint at CWL after GetAsync. Once that is hit, then I hit step-over twice, to step over the closing brace for JustWaitAsync, and then I get:
: /Users/radical/dev/runtime/src/mono/mono/mini/mini-wasm-debugger.c:248 <disabled>
.. which corresponds to g_error ("set_set_notification_for_wait_completion_flag");

I'm trying this with my https://github.com/radical/runtime/tree/debugger-5.0-rc2 branch.

Activity

  1. added
    untriaged
    on Sep 8, 2020
  2. added
    arch-wasm
    on Sep 8, 2020
  3. removed
    untriaged
    on Sep 8, 2020
  4. radical commented on Sep 8, 2020

    @radical
    MemberAuthor
  5. self-assigned this
    on Sep 8, 2020
  6. thaystg commented on Sep 8, 2020

    @thaystg
    Member

    Working on it! :)

  7. ghost locked as resolved and limited conversation to collaborators on Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Debugger-mono

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions