Changes between Initial Version and Version 2 of Ticket #600


Ignore:
Timestamp:
08/08/14 19:13:08 (10 years ago)
Author:
Maxim Dounin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #600

    • Property Owner set to Valentin V. Bartenev
    • Property Status newassigned
  • Ticket #600 – Description

    initial v2  
    22
    331. nginx configure:
    4 
     4{{{
    55        location / {
    66            set $sent_http_foo "bar";
     
    88            root   html;
    99        }
     10}}}
    10112. The content of html/index.html is '<!--#echo var="sent_http_foo" -->'
    11123. Requesting uri /index.html will trigger the segfault
     
    1314coredump backtrace:
    1415
     16{{{
    1517(gdb) bt
    1618#0  0x0000000000000000 in ?? ()
     
    2628(gdb) print v->get_handler
    2729$8 = (ngx_http_get_variable_pt) 0                     <<< v->get_handler is NULL
    28 
     30}}}
    2931
    3032Another module ngx.lua (https://github.com/openresty/lua-nginx-module), using ngx_http_get_variable() api, will trigger this segfault too.
     
    3234See configure as following, requesting uri / will trigger the segfault.
    3335
     36{{{
    3437        location / {
    3538            set $http_foo "bar";
    3639            content_by_lua "ngx.say(ngx.var.http_foo)";
    3740        }
     41}}}