pkgsrc-Users archive

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

Re: New pkgsrc openssl -> apache24 crash




To: Havard Eidnes <he%netbsd.org@localhost>

Subject: Re: New pkgsrc openssl -> apache24 crash

From: Ryo ONODERA <ryo%tetera.org@localhost>

Date: Wed, 28 Jan 2026 20:44:43 +0900



Hi 

I have same problem with security/sudo and mail/isync.
I have just sent my report to christos@ and source-changes-d mailing list.

Thank you.

--
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


On Wed, Jan 28, 2026, 20:33 Havard Eidnes <he%netbsd.org@localhost> wrote:
Hi,

the most recent pkgsrc openssl upgrade popped up on my radar, and
I proceeded to do

# cd /usr/pkgsrc/security/openssl
# make replace (previous was 3.1.5, now no longer in use, but see below)
# cd /usr/pkgsrc/www/apache24
# make clean
# grep -i openssl /etc/mk.conf
# make apache24 link with pkgsrc openssl:
PREFER_PKGSRC+= openssl
# Prefer over built-in openssl:
PREFER.openssl=         pkgsrc
# make replace

and proceeded to restart apache, but to my surprise:

# sh /etc/rc.d/apache restart
Stopping apache.
Starting apache.
[1]   Segmentation fault (core dumped) RC_PID= _rc_pid= _rc_original_stdout_fd= _rc_o...
#

Wait, what?

# ps ax | grep httpd
17215 pts/2   S+       0:00.00 grep httpd
# dmesg | tail -1
[ 55649911.444576] pid 13420 (httpd), uid 0: exited on signal 11 (core dumped)
#

and I ended up with a httpd.core file in the current directory.
Dissecting a bit what went wrong:

# gdb -q work/.destdir/usr/pkg/sbin/httpd httpd.core
Reading symbols from work/.destdir/usr/pkg/sbin/httpd...
[New process 13420]
Core was generated by `httpd'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007cc29f40d368 in pthread_equal (t1=0xffffffffffffffff, t2=0x7cc2a0f2e800) at /usr/src/lib/libpthread/pthread.c:763

warning: Source file is more recent than executable.
763             pthread__error(0, "Invalid thread",
(gdb) where
#0  0x00007cc29f40d368 in pthread_equal (t1=0xffffffffffffffff, t2=0x7cc2a0f2e800) at /usr/src/lib/libpthread/pthread.c:763
#1  0x00007cc295e1f7e3 in ossl_init_thread () from /usr/pkg/lib/libcrypto.so.3
#2  0x00007cc295e1ebaf in ossl_init_base_ossl_ () from /usr/pkg/lib/libcrypto.so.3
#3  0x00007cc29f407cb7 in pthread_once (_once_control_=0x7cc2963b28c0 <base>, routine=0x7cc295e1eb7c <ossl_init_base_ossl_>)
    at /usr/src/lib/libpthread/pthread_once.c:66
#4  0x00007cc295e2db56 in CRYPTO_THREAD_run_once () from /usr/pkg/lib/libcrypto.so.3
#5  0x00007cc295e1eda3 in OPENSSL_init_crypto () from /usr/pkg/lib/libcrypto.so.3
#6  0x00007cc296435802 in OPENSSL_init_ssl () from /usr/pkg/lib/libssl.so.3
#7  0x00007cc296811d1c in ?? () from /usr/pkg/lib/httpd/mod_ssl.so
#8  0x00000000f185dc2e in ap_run_pre_config ()
#9  0x00000000f187d03c in main ()
(gdb)

So ... where do we put the blame for that?

Did I do something silly?

Regards,

- Håvard



References:

New pkgsrc openssl -> apache24 crash
From: Havard Eidnes




Prev by Date: devel/abseil asks for gcc-12 ((Re: NetBSD/9.4

Previous by Thread: Re: New pkgsrc openssl -> apache24 crash

Next by Thread: devel/abseil asks for gcc-12 ((Re: NetBSD/9.4

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index