Skip to content

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

@MMFuba

Description

@MMFuba

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions