pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: New pkgsrc openssl -> apache24 crash



* On 2026-01-28 at 18:24 GMT, Adam wrote:

I pushed a quick fix for that. I see pthread_self() returns -1 on NetBSD for the main thread. In that case, the logic in crypto/initthread.c -> int ossl_init_thread(void) is incorrect.

I've changed "recursion_guard = (CRYPTO_THREAD_ID)0;"

I'm not sure this is correct, and I'm very concerned this might just end up breaking other systems. As I understand it you'll get -1 from the libc stub, so maybe it's just that libpthread isn't linked?

I think it should at least be limited to __NetBSD__ until it can be properly diagnosed, this could end up breaking thousands of users.

--
Jonathan Perkin                    pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index