Hi thanks for the reply, `-fsanitize=address` printed that I should use `-s ALLOW_MEMORY_GROWTH=1`, which looked like it cleared all the issues.
However when I called my function `decodeOggPage`, this is printed in the console: Assertion failed: Cannot call unknown function decodeOggPage, make sure it is exported So I added `-s EXPORTED_FUNCTIONS="['_decodeOggPage']"` as another option, though this caused the compilation to fail with this error: [parse exception: attempted pop from empty stack / beyond block start boundary at 20550 (at 0:20550)] Fatal: error in parsing input emcc: error: '/home/user/emsdk/upstream/bin/wasm-emscripten-finalize --detect-features --global-base=33554432 --check-stack-overflow /tmp/emscripten_temp_ugi93if_/a.out.wasm -o /tmp/emscripten_temp_ugi93if_/a.out.wasm.o.wasm' failed (1) For reference, this is the command I was using for compilation: emcc main.c -Iinclude/opus -lopus -L$HOME/emscripten_opus/lib -s EXTRA_EXPORTED_RUNTIME_METHODS='["cwrap", "ccall"]' -s ALLOW_MEMORY_GROWTH=1 -fsanitize=address -s EXPORTED_FUNCTIONS="['_decodeOggPage']" Additionally it appeared that if I removed `-fsanitize=address`, then the second time I called the following `Module.HEAP8.set(uint8array, uint8array.length)` (in the first time the offset was 0) it appeared to cause a segfault also, is this related? -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/987bf27d-fca9-4ad7-9719-0c193f1d756fo%40googlegroups.com.
