-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
[BUG] Segfault on combo of global ctors, ostream, wasi #33175
Comments
Backtrace, note that the same code works for other wasi runtime.
|
Using I’ve attached |
Should be fixed by #33184. Please reopen if this persists. |
This is an issue for node's WASI integration with emscripten.
both global ctors need to be called, and ostream being used in the WASM standalone mode (emsdk latest upstream).
I have a case where I need to call the global static initializers(need to call _start before running other functions), but also have ostream in the code.
What was happening is that when ostream is being used in the code and it somehow triggers certain things to be added to global ctors, and then calling global ctors resulted in a segfault. So far I only get this error on node14, and I am not sure if it is related to the use of WASI.
C++
NodeJS
Relevant issue in the emscripten emscripten-core/emscripten#11001
The text was updated successfully, but these errors were encountered: