emscripten-core / emscripten-core/emscripten

LLVM stack dump during linking.

Open
#19,744 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Hi.

I'm trying to update my project to emscripten 3.1.42.
I have rebuilt third party libraries like opencv, skia and after building project with new libraries I got stack dump.

Screenshot 2023-06-29 at 11 17 19

The compile and link flags are`
-Wl,--wrap=__cxa_throw
-Wl,--fatal-warnings
-lembind
-sMODULARIZE=1
-sEXPORTED_RUNTIME_METHODS=['EGL']
-sEXPORT_NAME=createPIModule
-sWASM=1
-sDEFAULT_TO_CXX=0
-sALLOW_MEMORY_GROWTH=1
-sMAX_WEBGL_VERSION=2
-sFULL_ES3=1
-sLLD_REPORT_UNDEFINED
--no-entry
-sEXIT_RUNTIME=1
-fwasm-exceptions
-Wno-pthreads-mem-growth

When building debug it's ok.
But when building release(adding -flto flag) stack dump occurs.
Without -flto flag also it's ok.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.