[MacPorts] #60702: darwintrace's setup is not safe in the presence of other initializers

MacPorts noreply at macports.org
Sun Jun 28 00:38:56 UTC 2020


#60702: darwintrace's setup is not safe in the presence of other initializers
------------------------+-----------------------
  Reporter:  saagarjha  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:
Resolution:             |   Keywords:  tracemode
      Port:             |
------------------------+-----------------------

Comment (by saagarjha):

 Ok, so I wrote a simple little bump allocator for the environment keys…but
 immediately ran into more crashes due to `malloc` being called from the
 rest of setup code. Not completely sure what we should be doing here; I
 think I'll give forcing libmalloc to load and then using dynamic
 interposition a shot and if that doesn't work ask on the mailing list.

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


More information about the macports-tickets mailing list