Skip to content

Fix lsan.test_dylink_iostream after #25449#25474

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:fix_lsan_test
Oct 2, 2025
Merged

Fix lsan.test_dylink_iostream after #25449#25474
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:fix_lsan_test

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented Oct 2, 2025

This failure was causing the emscripten-reeleases roller to fail.

The code didn't take into about that system_libs could also contains flags such as --whole-archive.

In this particular test the value of system_libs is:

['-lGL-getprocaddr', '-lal', '-lhtml5', '-lstubs-debug', '-lc-debug', '-ldlmalloc-debug', '-lcompiler_rt', '--whole-archive', '-lc++-debug-noexcept', '--no-whole-archive', '-lc++abi-debug-noexcept', '-lsockets', '--whole-archive', '-llsan_rt', '--no-whole-archive', '-llsan_common_rt', '-lsanitizer_common_rt']

Fixes: #25472

@sbc100 sbc100 requested review from dschuff and juj October 2, 2025 15:48
The code didn't take into about that system_libs could also contains
flags such as `--whole-archive`.

In this particular test the value of `system_libs` is:

```
['-lGL-getprocaddr', '-lal', '-lhtml5', '-lstubs-debug', '-lc-debug', '-ldlmalloc-debug', '-lcompiler_rt', '--whole-archive', '-lc++-debug-noexcept', '--no-whole-archive', '-lc++abi-debug-noexcept', '-lsockets', '--whole-archive', '-llsan_rt', '--no-whole-archive', '-llsan_common_rt', '-lsanitizer_common_rt']
```
@sbc100 sbc100 merged commit 507d31f into emscripten-core:main Oct 2, 2025
32 of 33 checks passed
@sbc100 sbc100 deleted the fix_lsan_test branch October 2, 2025 19:54
inolen pushed a commit to inolen/emscripten that referenced this pull request Feb 13, 2026
…-core#25474)

This failure was causing the emscripten-reeleases roller to fail.

The code didn't take into about that system_libs could also contains
flags such as `--whole-archive`.

In this particular test the value of `system_libs` is:

```
['-lGL-getprocaddr', '-lal', '-lhtml5', '-lstubs-debug', '-lc-debug', '-ldlmalloc-debug', '-lcompiler_rt', '--whole-archive', '-lc++-debug-noexcept', '--no-whole-archive', '-lc++abi-debug-noexcept', '-lsockets', '--whole-archive', '-llsan_rt', '--no-whole-archive', '-llsan_common_rt', '-lsanitizer_common_rt']
```

Fixes: emscripten-core#25472
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

Successfully merging this pull request may close these issues.

lsan.test_dylink_iostream failure

3 participants