[MacPorts] #68658: libarchive: bsdtar crashes with dyld missing symbol

MacPorts noreply at macports.org
Thu Jun 12 06:53:50 UTC 2025


#68658: libarchive: bsdtar crashes with dyld missing symbol
-------------------------+--------------------------
  Reporter:  PerMildner  |      Owner:  tobypeterson
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  libarchive  |
-------------------------+--------------------------

Comment (by PerMildner):

 If I understand correctly, the installer tests whether `bsdtar` works
 (with some options). If it crashes (and brings up the crash dialog) the
 installer just treats its as the somewhat expected "does not work", which
 would explain why everything seems to run fine even when the crash dialog
 appears.

 The reason for testing `bsdtar` is "MacPorts base runs bsdtar to see if it
 supports HFS compression. The tar included with old macOS versions does
 not support HFS compression"

 But "old macOS version" would be `/usr/bin/bsdtar`, and could never(?) be
 `/opt/local/bin/bsdtar`, and since `/opt/local/bin/bsdtar` is what
 crashes, it seems the installer tests the wrong `bsdtar`.

 So, hand waving, one theory is that the tests (that uses PATH lookup to
 find `bsdtar`) should either ensure they really test `/usr/bin/bsdtar` (to
 see whether it is old) or use dependency information to ''know'' whether
 `/opt/local/bsdtar` is usable.

 I.e., if the above is correct, the behavior sounds like a bug, and
 fixable. (otherwise it may be possible to suppress the crash dialog by
 running with `lldb --batch --one-line ...` but that seems too brittle).

-- 
Ticket URL: <https://trac.macports.org/ticket/68658#comment:28>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list