masterzen / nginx-upload-progress-module

Nginx module implementing an upload progress system, that monitors RFC1867 POST uploads as they are transmitted to upstream servers.
http://wiki.codemongers.com/NginxHttpUploadProgressModule
Other
432 stars 101 forks source link

nginx_upload_progress release 0.9.3 won't compile with nginx-1.27.0 and --with-debug option #61

Open MMFuba opened 3 months ago

MMFuba commented 3 months ago

Hi, when compiling nginx-1.27.0 with nginx_upload_progress release 0.9.3 and --with-debug option gcc aborts with an error. Without the debug option compiling works fine.

How to reproduce: ./configure --prefix=/some/pref/nginxWB/build --add-module=/some/pref/nginxWB/nginx-upload-progress-module-master --with-debug

make

I get this error: In function ‘ngx_http_uploadprogress_event_handler’: src/core/ngx_log.h:93:9: error: pointer ‘dst’ may be used after ‘free’ [-Werror=use-after-free] 93 | ngx_log_error_core(NGX_LOG_DEBUG, log, __VA_ARGS__)

wsl:~/nginxWB/nginx-1.27.0> cc --version cc (SUSE Linux) 13.3.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Best regards

MM