#46528: dirmngr: prevent crash --------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: dirmngr | --------------------------+-------------------------------- Comment (by rjvbertin@…): No, and checking just now I see that this particular issue isn't patched by Debian/Ubuntu either. Really, my patch is probably just a workaround for an underlying issue I'm not really interested to hunt down. If you look at dirmngr.c:667, {{{ /* Libgcrypt requires us to register the threading model first. Note that this will also do the pth_init. */ /* Init Libgcrypt. */ rc = gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pth); }}} that would suggest that gcry_control doesn't call pth_init() properly. Or some other later call undoes that, for whatever reason. An extra pth_init() that is redundant (does nothing) in the cases where the crash did not occur protects against such events. As I said, I'm not interested in hunting this down properly if this workaround is enough to prevent a crash report window from popping up for certain messages. I thought initially that that crash might be OS X specific, but it seems I don't get them on my Linux rig because kmail doesn't attempt certificate verification (despite being configured to do so). -- Ticket URL: <https://trac.macports.org/ticket/46528#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X