-
Notifications
You must be signed in to change notification settings - Fork 600
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
rr doesn't get along with address sanitizer #1690
Comments
I don't get this problem with clang 3.7.0 in Fedora 23. I hit a couple of other bugs, but after fixing those on master, I can now record and replay a trivial ASAN program that triggers a stack overflow report. I'll try it on Ubuntu 15.10 later. |
OK, I tried this on up-to-date Ubuntu 15.10 and it worked too. Maybe we need more detailed steps to reproduce your bug? |
Here's my test program FWIW:
|
I tried replicating this same issue with Ubuntu 14.04 with -fsanitizer=address and the above test program, and it did not produce "==20722==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.", it triggered the report as well. |
Yep. I can't reproduce this anymore either. |
This can be reproduced with the following compiler which I think is the default on Ubuntu 15.10:
test.cc is the test program above. |
OK, I think to fix this we just need to ensure libasan is added to Probably the most flexible way to do this would be to add a command-line parameter to recording that allows the user to inject an arbitrary string to be inserted into the tracee It would be more convenient to have rr scan the libraries required by the tracee executable and automatically insert the required |
Then again, if we require a special command line parameter that's not very discoverable :-(. |
OK, I implemented the fully automatic approach in dc23125. |
I just hit this with rr 4.4 on Debian... |
If you run with |
I am encountering this error with
No, I don't 😕 |
This issue is long gone. Please follow #2892 instead. |
STR:
get:
==20722==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
The text was updated successfully, but these errors were encountered: