I've seen similar issues when separate parts of the code were compiled with
different versions of emscripten.

On Wed, 26 Feb 2020 at 20:17, Walt Tucker <[email protected]> wrote:

> With the llvm-wasm backend, I'm hitting a couple of instances where when
> trying to free some memory with free(), emscripten is aborting at runtime
> saying that dlfree() is undefined. From what I can tell, memory functions
> are transformed to use the dlmalloc implementation that emscripten uses and
> builds. When looking at the compiled library in my .emscripten_cache
> (libdlmalloc-mt-debug.a), I see those functions defined in the text section
> as expected(dlfree, dlmalloc, etc).
> I'm curious when this transformation happens (it's not during
> preprocessing), and if it's missing some other step. The reason I wonder
> about that is because I also see references to emscripten_builtin_malloc
> and emscripten_builtin_free.
>
> The error:
> worker.js onmessage() captured an uncaught exception: RuntimeError:
> abort(undefined) at jsStackTrace
> stackTrace @xxx
> abort @xxx
> _abort @xxx
> dlfree @xxx   (our call to free)
> ........
>
> Has anyone seen this before, and is this something I'm doing wrong when
> compiling/linking? This is using emscripten 1.39.7.
>
> --
> 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/40fe2228-69d1-47a7-94a3-9ddb455e045b%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/40fe2228-69d1-47a7-94a3-9ddb455e045b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CA%2B_KjGb6FSLJBWLydOd-Q1OG8fn2Aj_yokSNC2gVW0o_ayGdvw%40mail.gmail.com.

Reply via email to