Skip to content

memory64=1/2 and address sanitizer #21029

@warvstar

Description

@warvstar

Please include the following in your bug report:

Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.48-git (054bf30)
clang version 18.0.0 (https://github.com/llvm/llvm-project 7e3d1103e6e7a7fa9b5f50222732e734d171bc86)

Failing command line in full:
emcc memory64_test.cpp -o ./o/memory64_test.html -sMEMORY64=1 -fsanitize=address

Error:
wasm-ld: error: emsdk\upstream\emscripten\cache\sysroot\lib\wasm64-emscripten\libasan_rt.a(asan_allocator.o): undefined symbol: __sanitizer::GetMemoryProfile(void ()(unsigned long, unsigned long, bool, unsigned long), unsigned long*)

This happens regardless of the contents of memory64_test.cpp, ubsan and lsan work fine, issue seems to be limited to asan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions