Skip to content
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

[ASAN] Allocator internal check failed #1837

Open
mzukovec opened this issue Jan 9, 2025 · 1 comment
Open

[ASAN] Allocator internal check failed #1837

mzukovec opened this issue Jan 9, 2025 · 1 comment

Comments

@mzukovec
Copy link

mzukovec commented Jan 9, 2025

We use Emscripten to build our project and run it on web (emcc 3.1.73).

There is a weird internal assertion that we're hitting.

AddressSanitizer: CHECK failed: asan_allocator.cpp:601 "((user_end)) <= ((alloc_end))" (0x3288, 0x3286) (tid=783417392)

This assertion does not occur if we extend the stack size to something larger than initial (64KB to 16MB).

I also reported the issue on Emscripten github repo:
emscripten-core/emscripten#23352

Sadly, I can not provide simple reproducible for this one, since the workflow is complicated and I have no idea how such internal assertion could happen. Prior to this assertion, we successfully ran with -fsanitize=address, as we do with larger stack size.

Any ideas what could be happening here? Is there anything else I could provide besides the reproducible to diagnose the issue?
I set verbosity and debug flags, but nothing useful came from that.

@mzukovec
Copy link
Author

mzukovec commented Jan 9, 2025

It was due to the insufficient stack size. Some additional Emscripten flags for such cases identified the issue. You may close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant