Changes between Initial Version and Version 1 of Ticket #1238


Ignore:
Timestamp:
04/06/17 17:18:25 (7 years ago)
Author:
Maxim Dounin
Comment:

Thanks, certainly bad things will happen when trying to use standard variables as a destination variable of map. I can reproduce this with nginx 1.11.13 as well. It would be good to properly address this, probably by rejecting such configurations as invalid.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1238

    • Property Status newaccepted
  • Ticket #1238 – Description

    initial v1  
    11This is a minimal server configuration used to reproduce the problem (only the map & server section, the rest is the default configuration from nginx.org centos 7 nginx-1.10.3 package).
    22
     3{{{
    34map $arg_test $limit_rate {
    45        default 128k;
     
    1314        }
    1415}
     16}}}
    1517
    1618If a request to an affected location is made, nginx crashes with the following stack.
    1719
     20{{{
    1821Program terminated with signal 7, Bus error.
    1922#0  ngx_http_variable_request_set_size (r=0x7fb5c2761650, v=<optimized out>, data=140418628385320) at src/http/ngx_http_variables.c:730
     
    3841#12 0x00007fb5c1295283 in ngx_master_process_cycle (cycle=cycle@entry=0x7fb5c2745930) at src/os/unix/ngx_process_cycle.c:130
    3942#13 0x00007fb5c127039d in main (argc=<optimized out>, argv=<optimized out>) at src/core/nginx.c:367
     43}}}