--wpredis causes nginx segfault
@VirtuBox is already working on this.
Since Sep 20, 2026.
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
After running some updates last week nginx started to crash making it show connection reset style errors, updating nginx / wo did not help.
I tracked the problem down to sites using --wpredis as the caching layer. running a wo update site.tld --wp fixed the problem as did using fastcgi or other caching methods.
Redis itself seems to be fine, it works well for object caching without issue, the problem seems to be when using it for the page cache.
I had this happen on multiple installs across both Ubuntu 22.04 and 24.04
System information:
-
[]
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 24.04.4 LTS / Ubuntu 22.04 LTS
Release: 24.04 / 22.04
Codename: noble / jammy -
wo info
NGINX (1.30.4 ):
user www-data
worker_processes auto
worker_connections 50000
keepalive_timeout 8
fastcgi_read_timeout 300
client_max_body_size 100m
allow 127.0.0.1 ::1
PHP 7.4 is not installed
PHP 8.0 is not installed
PHP 8.1 is not installed
PHP 8.2 is not installed
PHP 8.3 is not installed
PHP (8.4.23):
user
expose_php Off
memory_limit 128M
post_max_size 100M
upload_max_filesize 100M
max_execution_time 300
Information about www.conf
ping.path /ping
pm.status_path /status
process_manager ondemand
pm.max_requests 1500
pm.max_children 50
pm.start_servers 10
pm.min_spare_servers 5
pm.max_spare_servers 15
request_terminate_timeout 300
xdebug.profiler_enable_trigger off
listen php84-fpm.sock
Information about debug.conf
ping.path /ping
pm.status_path /status
process_manager ondemand
pm.max_requests 1500
pm.max_children 50
pm.start_servers 10
pm.min_spare_servers 5
pm.max_spare_servers 15
request_terminate_timeout 300
xdebug.profiler_enable_trigger on
listen 127.0.0.1:9184
MySQL (15.2) on localhost:
port 3306
wait_timeout 60
interactive_timeout 28800
max_used_connections
datadir /var/lib/mysql/
socket /var/run/mysqld/mysqld.sock
my.cnf [PATH] /etc/mysql/conf.d/my.cnf
-
nginx -V
nginx version: nginx/1.30.4 (WordOps Nginx-wo)
built by gcc 13.3.0 (Ubuntu 13.3.0-6ubuntu224.04.1)stable~bpo24.04.1 -fPIC -flto -ffat-lto-objects -Wdate-time -D_FORTIFY_SOURCE=3' --with-ld-opt='-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -fPIC -flto -ffat-lto-objects' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --build='WordOps Nginx-wo' --with-debug --with-pcre-jit --with-file-aio --with-threads --with-http_ssl_module --with-http_v2_module --with-http_v3_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-openssl-opt='zlib enable-ec_nistp_64_gcc_128 enable-tls1_3 no-ssl3-method -fPIC' --with-http_addition_module --with-http_geoip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_sub_module --with-http_xslt_module --without-http_memcached_module --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/headers-more-nginx-module --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/nginx-auth-pam --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/nginx-cache-purge --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/nginx-echo --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/nginx-upstream-fair --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/ngx_http_substitutions_filter_module --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/memc-nginx-module --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/srcache-nginx-module --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/HttpRedisModule --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/redis2-nginx-module --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/ngx_devel_kit --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/set-misc-nginx-module --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/nginx-module-vts --add-module=/build/nginx-4LSsdi/nginx-1.30.4/debian/modules/ngx_brotli
built with OpenSSL 3.0.13 30 Jan 2024
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/build/nginx-4LSsdi/nginx-1.30.4=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/build/nginx-4LSsdi/nginx-1.30.4=/usr/src/nginx-1.30.4-1ppa
-
wo -v -
WordOps v3.22.0
Copyright (c) 2024 WordOps. -
wp cli info --allow-root
OS: Linux 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64
Shell: /bin/bash
PHP binary: /usr/bin/php8.4
PHP version: 8.4.23
php.ini used: /etc/php/8.4/cli/php.ini
MySQL binary: /usr/bin/mariadb
MySQL version: mariadb from 11.4.12-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using EditLine wrapper
SQL modes: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: phar:///usr/local/bin/wp
WP-CLI packages dir:
WP-CLI cache dir: /root/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.12.0
Additional context
Note that info was taken after running wo site update site.tld --wp to fix the issue. running wo site update site.tld --wpredis makes the issue happen again.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.