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

support binary offset annotations for custom allocators in third-party modules #1384

Open
derekbruening opened this issue Nov 28, 2014 · 0 comments

Comments

@derekbruening
Copy link
Contributor

From bruen...@google.com on November 15, 2013 11:48:27

For third-party components in applications being tested, it's not possible
to use the typical source annotations to mark custom allocators. This
issue proposes adding some way to specify the module offsets of malloc,
free, etc. Xref the old -libc_offsets option.

Note that we could possibly hack the symcache file to accomplish this.

We may want an option to wrap instead of replacing custom allocators, with
no redzone, for cases where there are assumptions or dependences on
particular properties of the custom allocator, or where there auxiliary
routines we don't have support for (or haven't added options for: size
query, etc.).

We might also want a Dr. Memory mode that tries to identify custom
allocators by monitoring live mmap regions and watching for function return
values that are always in an mmap range or something.

Original issue: http://code.google.com/p/drmemory/issues/detail?id=1384

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

1 participant