Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2016 07:51:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 213113] www/nginx: module http_upstream_sticky crashes with SIGSEGV
Message-ID:  <bug-213113-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213113

            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@FreeBSD.org
          Reporter: frank.brendel@eurolog.com
             Flags: maintainer-feedback?(osa@FreeBSD.org)
          Assignee: osa@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 =3D iphp->selected_peer;
                                  ^ ~~~~~~~~~~~~~~~~~~~
This is because the structure of ngx_http_upstream_rr_peer_data_t has chang=
ed
in nginx 1.10.
See
/usr/ports/www/nginx/work/nginx-1.10.1/src/http/ngx_http_upstream_round_rob=
in.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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213113-13>