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

Fix symbol resolution for malloc_type functions on macOS Sequoia #693

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

pablogsal
Copy link
Member

This commit addresses an issue with symbol resolution for malloc_type
functions on the latest macOS Sequoia. The problem arises due to changes
in how these functions are named in the dynamic symbol table of the
system libraries that are part of the linker cache like the ones that
contain the C++ runtime.

This fix ensures that Memray correctly intercepts and tracks allocations
made by malloc_type functions, fixing tracking allocations in the C++
runtime and other system libraries on macOS Sequoia.

@pablogsal pablogsal force-pushed the cpp_fix_sequoia branch 3 times, most recently from c2bd704 to 055f3c7 Compare October 21, 2024 14:59
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.91%. Comparing base (df48806) to head (1a8d38d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #693      +/-   ##
==========================================
- Coverage   92.96%   92.91%   -0.06%     
==========================================
  Files          95       95              
  Lines       11655    11655              
  Branches      406      406              
==========================================
- Hits        10835    10829       -6     
- Misses        820      826       +6     
Flag Coverage Δ
cpp 92.91% <ø> (-0.06%) ⬇️
python_and_cython 92.91% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pablogsal pablogsal force-pushed the cpp_fix_sequoia branch 4 times, most recently from c96540e to 529af2a Compare October 23, 2024 16:59
This commit addresses an issue with symbol resolution for malloc_type
functions on the latest macOS Sequoia. The problem arises due to changes
in how these functions are named in the dynamic symbol table of the
system libraries that are part of the linker cache like the ones that
contain the C++ runtime.

This fix ensures that Memray correctly intercepts and tracks allocations
made by malloc_type functions, fixing tracking allocations in the C++
runtime and other system libraries on macOS Sequoia.

Signed-off-by: Pablo Galindo <[email protected]>
@pablogsal pablogsal force-pushed the cpp_fix_sequoia branch 4 times, most recently from f8a39ac to ed8d053 Compare October 23, 2024 17:37
There a bug either in the genhtml utility in Alpine or in coverage.py
that trips over some categories that are in the dump file. We don't use
these files in CI for anything so for now we should skip the html
generation.

Signed-off-by: Pablo Galindo <[email protected]>
Copy link
Contributor

@godlygeek godlygeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pablogsal pablogsal merged commit beea5cd into bloomberg:main Oct 30, 2024
18 checks passed
@pablogsal pablogsal deleted the cpp_fix_sequoia branch October 30, 2024 01:53
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.

3 participants