[MacPorts] #59498: openssh @8.1p1_2: __NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug

MacPorts noreply at macports.org
Sun Oct 27 22:40:33 UTC 2019


#59498: openssh @8.1p1_2: __NSCFString autoreleased with no pool in place - just
leaking - break on objc_autoreleaseNoPool() to debug
----------------------+----------------------
  Reporter:  iEFdev   |      Owner:  Ionic
      Type:  defect   |     Status:  accepted
  Priority:  Low      |  Milestone:
 Component:  ports    |    Version:  2.6.2
Resolution:           |   Keywords:
      Port:  openssh  |
----------------------+----------------------
Changes (by Ionic):

 * priority:  Normal => Low
 * status:  new => accepted
 * cc: Ionic (removed)
 * owner:  (none) => Ionic


Comment:

 Should be just noise, I guess.

 In essence, `libobjc` complains about autorelease being used (typically
 after something goes out of scope) without an autorelease pool being
 available. Normally the ownership is transferred to that pool and the
 garbage collector clears it out periodically (that might not hold for ARC
 code, but 10.6 doesn't have ARC).

 The weird part is that Cocoa itself is supposed to install an autorelease
 pool in the main (but not other) threads and as far as I know `ssh-add`
 isn't even multi-threaded.

 We also don't link against Cocoa, so there's that.

 Maybe I'll just need to add an autorelease pool for older systems (10.7
 and below?), even though 10.7 should have full ARC support already...

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


More information about the macports-tickets mailing list