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

ThinLTO for libstd breaks the leak sanitizer #46126

Closed
alexcrichton opened this issue Nov 20, 2017 · 2 comments
Closed

ThinLTO for libstd breaks the leak sanitizer #46126

alexcrichton opened this issue Nov 20, 2017 · 2 comments
Labels
C-bug Category: This is a bug.

Comments

@alexcrichton
Copy link
Member

Discovered in #46008 apparently building libstd with ThinLTO causes the proof-of-concept test of the leak sanitizer to test. The test exits successfully and doesn't print out anything about leaks. I'm going to turn the test off for now as the sanitizers are all unstable.

@hanna-kruppe
Copy link
Contributor

cc #45220, could be the same issue. (since #45810 was merged, the assertion failure reported in #45220 has been replaced with silent out-of-bounds indexing, which could have arbitraily weird consequences)

@TimNN TimNN added the C-bug Category: This is a bug. label Nov 21, 2017
kennytm added a commit to kennytm/rust that referenced this issue Nov 28, 2017
Introduced a new src/etc/cat-and-grep.sh script (called in run-make as
$(CGREP)), which prints the input and do a grep simultaneously. This is
mainly used to debug spurious failures in run-make, such as the sanitizer
error in rust-lang#45810, as well as real errors such as rust-lang#46126.
bors added a commit that referenced this issue Nov 28, 2017
Replace most call to grep in run-make by a script that cat the input.

Introduced a new `src/etc/cat-and-grep.sh` script (called in run-make as `$(CGREP)`), which prints the input and do a grep simultaneously. This is mainly used to debug spurious failures in run-make, such as the spurious error in #45810, as well as real errors such as #46126.

(cc #40713)

Some `grep` still remains, mainly the `grep -c` calls that count the number of matches and print the result to stdout.
@tmiasko
Copy link
Contributor

tmiasko commented Aug 29, 2020

This issue should be closed. The test case had been rewritten and there haven't been any new failures (previously optimizations enabled by ThinLTO removed memory allocations that were supposed to be leaked).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

5 participants