[MacPorts] #38082: pdftk encounters fatal malloc problem
MacPorts
noreply at macports.org
Sun Jul 12 17:00:24 UTC 2020
#38082: pdftk encounters fatal malloc problem
------------------------+------------------------
Reporter: bernard@… | Owner: ryandesign
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Resolution: | Keywords:
Port: pdftk |
------------------------+------------------------
Comment (by kencu):
This error is generally caused by a conflict between different versions of
libstdc++.dylib. The one installed by the gcc ports and the one installed
by the system interact in an unfavourable way, where objects are created
by one version and attempt to be released by the other. The fact that it
disappeared later on with gcc changes is more-or-less just luck.
There are two known fixes so far.
1. use {{{DYLD_LIBRARY_PATH}}} set to the macports-installed
libstdc++.dylib location (currently {{{${prefix}/lib/libgcc}}}
2. replace the system's {{{/usr/lib/libstdc++.dylib}}} with the current
one being used, or at least a much newer one.
The first option is obviously much simpler, but relies on setting that env
var all the time, either in binary wrappers or in the {{{.profile}}}.
The second option is tempting -- we are discussing this with the gcc leads
-- but it is bound to cause concerns, and it is difficult to test out
every possible existing executable that is linked to the current version,
so realistically, this is likely to never happen.
--
Ticket URL: <https://trac.macports.org/ticket/38082#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list