pkgsrc-Users archive

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

New pkgsrc openssl -> apache24 crash




To: pkgsrc-users%NetBSD.org@localhost

Subject: New pkgsrc openssl -> apache24 crash

From: Havard Eidnes <he%NetBSD.org@localhost>

Date: Wed, 28 Jan 2026 12:33:02 +0100 (CET)


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




Prev by Date: gnupg1/gnupg2: binary change

Previous by Thread: gnupg1/gnupg2: binary change

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index