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.
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