[MacPorts] #74304: php83-fpm: Crash with CCRandomGenerateBytes on ElCapitano
MacPorts
noreply at macports.org
Tue Aug 18 15:08:01 UTC 2026
#74304: php83-fpm: Crash with CCRandomGenerateBytes on ElCapitano
------------------------+------------------------
Reporter: quwax | Owner: BjarneDMat
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: ElCapitan
Port: php83-fpm |
------------------------+------------------------
Comment (by quwax):
Hello again.
This patch here:
{{{
--- a/ext/random/csprng.c
+++ b/ext/random/csprng.c
@@ -50,8 +50,8 @@
# include <sys/random.h>
# endif
#endif
-
-#if HAVE_COMMONCRYPTO_COMMONRANDOM_H
+/*darwin cut commencrypto */
+#if 0
# include <CommonCrypto/CommonCryptoError.h>
# include <CommonCrypto/CommonRandom.h>
#endif
@@ -70,7 +70,8 @@
}
return FAILURE;
}
-#elif HAVE_COMMONCRYPTO_COMMONRANDOM_H
+/*darwin cut commencrypto */
+#elif 0
}}}
solved my problem.
So, no, the problem isn't sitting in front of the screen ;-)
It's commonCrypto which is crashing when the process is forked. Without
forking it works.
That's the difference between php and php-fpm.
cheers and thanks for your work
Matthias
--
Ticket URL: <https://trac.macports.org/ticket/74304#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list