We are seeing what looks like the same regression, but with another
dynamic module: ngx_http_uploadprogress_module.

Environment:
- Ubuntu 24.04
- nginx / nginx-extras 1.24.0-2ubuntu7.10
- package/module involved: libnginx-mod-http-uploadprogress / 
ngx_http_uploadprogress_module.so

Symptoms:
- Static video files started to fail during download/playback.
- Firefox reports NS_ERROR_NET_PARTIAL_TRANSFER.
- curl also shows partial transfers / connection reset while downloading the 
same files.
- nginx workers repeatedly crash with signal 11.

Important detail:
The uploadprogress directives were not actually used in our nginx 
configuration. The module was only loaded dynamically from 
/etc/nginx/modules-enabled/.

Backtrace from the nginx worker core dump pointed to
ngx_http_uploadprogress_module.so, with the crash going through
ngx_strncasecmp() and ngx_http_core_rewrite_phase().

Workaround:
Disabling the dynamic module fixed the issue immediately:

  mv /etc/nginx/modules-enabled/50-mod-http-uploadprogress.conf \
     /etc/nginx/modules-enabled/50-mod-http-uploadprogress.conf.disabled

  nginx -t
  systemctl reload nginx

After unloading ngx_http_uploadprogress_module, nginx workers stopped
crashing and video/static file transfers completed normally again.

This suggests that the regression is not limited to the module already
mentioned in this bug. At least ngx_http_uploadprogress_module can also
trigger nginx worker segfaults with nginx/nginx-extras
1.24.0-2ubuntu7.10 on Ubuntu 24.04.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2155992

Title:
  headers-more dynamic module  crash

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/2155992/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to