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: Run with verify_asan_link_order=0. #3491

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bernhardu
Copy link
Contributor

@bernhardu bernhardu commented Apr 11, 2023

Avoids error message:

  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.

Affected tests:

  nested_detach_kill
  nested_detach_kill_stuck
  nested_detach_wait

(These tests may also need the ASan: Copy just used pages from ANONYMOUS|NORESERVE mappings. patch too.)

@Keno
Copy link
Member

Keno commented Apr 11, 2023

I feel like this conflates the issues of rr itself running under asan and rr tracing something running under asan (which itself may be rr). If it's just a matter of fixing the tests, I think this should be in __asan_default_options so it doesn't propagate to children.

@bernhardu
Copy link
Contributor Author

Thanks, let me try how it works when I put it into the default options.

@bernhardu

This comment was marked as outdated.

@bernhardu
Copy link
Contributor Author

I pushed a new version with no longer setting the environment, instead using __asan_default_options.

@bernhardu
Copy link
Contributor Author

Changes:

  • Rebased to current tip.
  • Do not try to add libasan to LD_PRELOAD below ASan-rr.

Avoids error message:
  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.

Affected tests:
  nested_detach
  nested_detach_kill
  nested_detach_kill_stuck
  nested_detach_stop
  nested_detach_wait
@bernhardu
Copy link
Contributor Author

Just a rebase to current tip.

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.

None yet

2 participants