Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garbage Collection throws #32

Open
HermanSchoenfeld opened this issue Apr 24, 2024 · 1 comment
Open

Garbage Collection throws #32

HermanSchoenfeld opened this issue Apr 24, 2024 · 1 comment

Comments

@HermanSchoenfeld
Copy link

HermanSchoenfeld commented Apr 24, 2024

After attempting to figure out why my prototype was throwing, it looks like garbage collection is broken in Wasi.Sdk both when called by the runtime in the oridinary course of execution (what was happening my case) but also when explicitly called (as below code). Can you please fix this ASAP as it's kind of fundamentally important for any use-case?

Error

[wasm_trace_logger] * Assertion at /home/runner/work/dotnet-wasi-sdk/dotnet-wasi-sdk/modules/runtime/src/mono/mono/metadata/sgen-stw.c:77, condition `info->client_info.stack_start >= info->client_info.info.stack_start_limit && info->client_info.stack_start < info->client_info.info.stack_end' not met

Repo
https://github.com/HermanSchoenfeld/WasiSdkBug

Code

namespace ConsoleApp1
{
    internal class Program
    {
        static void Main(string[] args) {
            GC.Collect();
        }
    }
}

Environment
.NET 8, .NET 7
Wasi.Sdk 0.1.4-preview.10020 and 0.1.1
wasmtime-cli 19.0.2 (040ec9209 2024-04-11)

@HermanSchoenfeld
Copy link
Author

I've added a repo to reproduce this bug. It's extremely basic and this should work. I think there's something wrong with the targets definition.

https://github.com/HermanSchoenfeld/WasiSdkBug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant