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 false positive with -static-libstdc++ and exceptions #147

Closed
ramosian-glider opened this issue Aug 31, 2015 · 3 comments
Closed

asan false positive with -static-libstdc++ and exceptions #147

ramosian-glider opened this issue Aug 31, 2015 · 3 comments

Comments

@ramosian-glider
Copy link
Member

Originally reported on Google Code with ID 147


% clang++ -O -fsanitize=address small_throw_test.cc -static-libstdc++  ; 
./a.out

==5551== ERROR: AddressSanitizer: stack-buffer-underflow ... 

The problem is that when we are linking libstdc++ statically, 
the interceptor for __cxa_throw does not kick in.
In most cases it is not a problem because we also instrument all calls to __cxa_throw
at compile time, but if such a call was not instrumented
(as in this test), we get a false report. 

One solution would be to reimplement __cxa_throw in asan instead of 
wrapping the standard implementation, but that sounds too messy.

I am not going to act on this bug, unless we find a clean solution. 

Reported by konstantin.s.serebryany on 2013-01-29 09:08:04


- _Attachment: [small_throw_test.cc](https://storage.googleapis.com/google-code-attachments/address-sanitizer/issue-147/comment-0/small_throw_test.cc)_
@morehouse
Copy link
Contributor

@kcc: This doesn't reproduce for me anymore. Can we close this?

@kcc
Copy link
Contributor

kcc commented Jun 5, 2018

I don't remember fixing it, but probably something else has changed.
Let's close -- we don't have plans to work on it anyway

@kcc kcc closed this as completed Jun 5, 2018
@vitalybuka
Copy link
Contributor

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

No branches or pull requests

4 participants