memray icon indicating copy to clipboard operation
memray copied to clipboard

Fix symbol resolution for malloc_type functions on macOS Sequoia

Open pablogsal opened this issue 1 year ago • 1 comments

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 avatar Oct 21 '24 14:10 pablogsal

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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%) :arrow_down:
python_and_cython 92.91% <ø> (-0.06%) :arrow_down:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Oct 21 '24 15:10 codecov-commenter