[Bug 213113] www/nginx: module http_upstream_sticky crashes with SIGSEGV
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Sep 30 07:51:11 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213113
Bug ID: 213113
Summary: www/nginx: module http_upstream_sticky crashes with
SIGSEGV
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: osa at FreeBSD.org
Reporter: frank.brendel at eurolog.com
Flags: maintainer-feedback?(osa at FreeBSD.org)
Assignee: osa at FreeBSD.org
Hi,
the upstream_sticky module don't work with nginx 1.10 anymore. It compiles with
the warning
/usr/ports/www/nginx/work/nginx-goodies-nginx-sticky-module-ng-c825ea7c5c91//ngx_http_sticky_module.c:340:21:
warning: incompatible integer to pointer conversion
assigning to 'ngx_http_upstream_rr_peer_t *' (aka 'struct
ngx_http_upstream_rr_peer_s *') from 'int' [-Wint-conversion]
iphp->rrp.current = iphp->selected_peer;
^ ~~~~~~~~~~~~~~~~~~~
This is because the structure of ngx_http_upstream_rr_peer_data_t has changed
in nginx 1.10.
See
/usr/ports/www/nginx/work/nginx-1.10.1/src/http/ngx_http_upstream_round_robin.h
nginx 1.8
typedef struct {
ngx_http_upstream_rr_peers_t *peers;
ngx_uint_t current;
uintptr_t *tried;
uintptr_t data;
} ngx_http_upstream_rr_peer_data_t;
nginx 1.10
typedef struct {
ngx_http_upstream_rr_peers_t *peers;
ngx_http_upstream_rr_peer_t *current;
uintptr_t *tried;
uintptr_t data;
} ngx_http_upstream_rr_peer_data_t;
Kind regards
Frank
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list