Sample Header Ad - 728x90

Jemalloc Symbolication No Suitable Image Found Error

0 votes
1 answer
133 views
I'm working with a custom built Ruby, compiled and built on a Mac OS command line with standard XCode command line tools. It brings in the jemalloc library for better memory management. Whenever I run this Ruby executable, and try to profile it with vmmap, heap, or leaks, I get an error like this:
ruby -e "puts RUBY_VERSION; puts Process.pid; sleep" &
 59251

❯ 2.7.4
59251
heap 59251 > /dev/null
2022-03-08 17:45:04.966 heap[59276:1918119] *** Symbolication:  Couldn't load /opt/carrier/lib/libjemalloc.2.dylib to introspect target process's malloc zone named jemalloc_zone_0x106ba8a68: dlopen(/opt/carrier/lib/libjemalloc.2.dylib, 261): no suitable image found.  Did find:
  /opt/carrier/lib/libjemalloc.2.dylib: code signature in (/opt/carrier/lib/libjemalloc.2.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
2022-03-08 17:45:04.966 heap[59276:1918119] *** Symbolication:  no introspect structure for malloc zone jemalloc_zone_0x106ba8a68
2022-03-08 17:45:04.974 heap[59276:1918119] *** Symbolication:  no introspect structure for malloc zone jemalloc_zone_0x106ba8a68
Can anyone suggest how to resolve this?
Asked by Keith Bennett (1263 rep)
Mar 12, 2022, 10:50 AM
Last activity: Mar 13, 2022, 01:26 PM