Segmentation fault in fc-cache after build on Mac M1 based MacOS system
I downloaded and built fontconfig 2.13.1, and during "make install" it calls fc-cache which crashes almost immediately /bin/sh: line 1: 4756 Segmentation fault: 11 fc-cache/fc-cache -s -f -v I'll include the build log (with a ton of warnings) in a comment.
bash-3.2$ lldb fc-cache
(lldb) target create "fc-cache"
Current executable set to 'fc-cache' (arm64).
(lldb) run
Process 4790 launched: '/Users/ccox/libraries/install/bin/fc-cache' (arm64)
Process 4790 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x607d58)
frame #0: 0x000000010013d614 libfontconfig.1.dylib`FcObjectLookupOtherTypeById + 44
libfontconfig.1.dylib`FcObjectLookupOtherTypeById:
-> 0x10013d614 <+44>: ldr w8, [x8, #0x18]
0x10013d618 <+48>: ldur w9, [x29, #-0xc]
0x10013d61c <+52>: subs w8, w8, w9
0x10013d620 <+56>: b.ne 0x10013d634 ; <+76>
Target 0: (fc-cache) stopped.
(lldb)