Changes between Initial Version and Version 2 of Ticket #600
- Timestamp:
- 08/08/14 19:13:08 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #600
- Property Owner set to
- Property Status new → assigned
-
Ticket #600 – Description
initial v2 2 2 3 3 1. nginx configure: 4 4 {{{ 5 5 location / { 6 6 set $sent_http_foo "bar"; … … 8 8 root html; 9 9 } 10 }}} 10 11 2. The content of html/index.html is '<!--#echo var="sent_http_foo" -->' 11 12 3. Requesting uri /index.html will trigger the segfault … … 13 14 coredump backtrace: 14 15 16 {{{ 15 17 (gdb) bt 16 18 #0 0x0000000000000000 in ?? () … … 26 28 (gdb) print v->get_handler 27 29 $8 = (ngx_http_get_variable_pt) 0 <<< v->get_handler is NULL 28 30 }}} 29 31 30 32 Another module ngx.lua (https://github.com/openresty/lua-nginx-module), using ngx_http_get_variable() api, will trigger this segfault too. … … 32 34 See configure as following, requesting uri / will trigger the segfault. 33 35 36 {{{ 34 37 location / { 35 38 set $http_foo "bar"; 36 39 content_by_lua "ngx.say(ngx.var.http_foo)"; 37 40 } 41 }}}