#0 0x001699d9 in gc_traverse_thread (th=<optimized out>, g=<optimized out>) at lj_gc.c:287
#6 0x00177ea6 in lua_pushcclosure (L=0xaf51a3a8, f=0x80f131a <ngx_http_lua_socket_receiveuntil_iterator>, n=3) at lj_api.c:626
#7 0x080ef0be in ngx_http_lua_socket_tcp_receiveuntil (L=0xaf51a3a8) at ../ngx_lua-0.8.2/src/ngx_http_lua_socket_tcp.c:2530
#10 0x080e5933 in ngx_http_lua_run_thread (L=0xaff4a1c0, r=0x83ae518, ctx=0x83a720c, nrets=3)
#11 0x080ee9e8 in ngx_http_lua_socket_tcp_resume (r=0x83ae518) at ../ngx_lua-0.8.2/src/ngx_http_lua_socket_tcp.c:4000
#12 0x080e8c9d in ngx_http_lua_content_wev_handler (r=0x8) at ../ngx_lua-0.8.2/src/ngx_http_lua_contentby.c:131
#13 0x080edb10 in ngx_http_lua_socket_handle_error (r=0x83ae518, u=0xaf5275d8, ft_type=2)
#15 0x080eeb3c in ngx_http_lua_socket_tcp_handler (ev=0xaf7dd55c) at ../ngx_lua-0.8.2/src/ngx_http_lua_socket_tcp.c:1968
#17 0x080702b6 in ngx_process_events_and_timers (cycle=0x83ba388) at src/event/ngx_event.c:263
#18 0x080778a0 in ngx_worker_process_cycle (cycle=0x83ba388, data="" at src/os/unix/ngx_process_cycle.c:813
#19 0x08075f51 in ngx_spawn_process (cycle=0x83ba388, proc=0x80777c2 <ngx_worker_process_cycle>, data="">
#0 0x00169d80 in gc_finalize (L=0xaf414118) at lj_gc.c:491
#1 0x0016a0cb in gc_onestep (L=0xaf414118) at lj_gc.c:650
#2 0x0016a777 in lj_gc_step (L=0xaf414118) at lj_gc.c:676
#3 0x00177889 in lua_createtable (L=0xaf414118, narray=0, nrec=1) at lj_api.c:653
#4 0x080eee88 in ngx_http_lua_socket_tcp_receiveuntil (L=0xaf414118) at ../ngx_lua-0.8.2/src/ngx_http_lua_socket_tcp.c:2512
#5 0x001667b7 in lj_BC_FUNCC () from /usr/local/luajit/lib/libluajit-5.1.so.2
#6 0x00174e9e in lua_resume (L=0xaf414118, nargs=3) at lj_api.c:1134
#7 0x080e5933 in ngx_http_lua_run_thread (L=0xaff4a1c0, r=0x846b728, ctx=0x83bf95c, nrets=3)
at ../ngx_lua-0.8.2/src/ngx_http_lua_util.c:1032
#8 0x080ee9e8 in ngx_http_lua_socket_tcp_resume (r=0x846b728) at ../ngx_lua-0.8.2/src/ngx_http_lua_socket_tcp.c:4000
#9 0x080e8c9d in ngx_http_lua_content_wev_handler (r=0xaff4a1f0) at ../ngx_lua-0.8.2/src/ngx_http_lua_contentby.c:131
#10 0x080edb10 in ngx_http_lua_socket_handle_error (r=0x846b728, u=0xaf496ca8, ft_type=2)
at ../ngx_lua-0.8.2/src/ngx_http_lua_socket_tcp.c:2216
#11 0x080f1796 in ngx_http_lua_socket_read_handler (r=0x846b728, u=0xaf496ca8)
at ../ngx_lua-0.8.2/src/ngx_http_lua_socket_tcp.c:2003
#12 0x080eeb3c in ngx_http_lua_socket_tcp_handler (ev=0xaf7dd9a0) at ../ngx_lua-0.8.2/src/ngx_http_lua_socket_tcp.c:1968
#13 0x080703fc in ngx_event_expire_timers () at src/event/ngx_event_timer.c:151
#14 0x080702b6 in ngx_process_events_and_timers (cycle=0x83ba388) at src/event/ngx_event.c:263
#15 0x080778a0 in ngx_worker_process_cycle (cycle=0x83ba388, data="" at src/os/unix/ngx_process_cycle.c:813
#16 0x08075f51 in ngx_spawn_process (cycle=0x83ba388, proc=0x80777c2 <ngx_worker_process_cycle>, data="">
name=0x8111e7a "worker process", respawn=-4) at src/os/unix/ngx_process.c:198
#17 0x08076d9b in ngx_start_worker_processes (cycle=0x83ba388, n=4, type=-4) at src/os/unix/ngx_process_cycle.c:364
#18 0x0807886d in ngx_master_process_cycle (cycle=0x83ba388) at src/os/unix/ngx_process_cycle.c:249
#19 0x0805a7e1 in main (argc=1, argv=0xbfe5abf4) at src/core/nginx.c:412
pstack 调试进程会有以下信息
#0 0x001bd8e4 in lj_alloc_f () from /usr/local/luajit/lib/libluajit-5.1.so.2
#1 0x001687f3 in lj_mem_newgco () from /usr/local/luajit/lib/libluajit-5.1.so.2
#2 0x0016de11 in lj_func_newC () from /usr/local/luajit/lib/libluajit-5.1.so.2
#3 0x00177d3b in lua_pushcclosure () from /usr/local/luajit/lib/libluajit-5.1.so.2
#4 0x080ef0be in ngx_http_lua_socket_tcp_receiveuntil ()
#5 0x001667b7 in lj_BC_FUNCC () from /usr/local/luajit/lib/libluajit-5.1.so.2
#6 0x00174e9e in lua_resume () from /usr/local/luajit/lib/libluajit-5.1.so.2
#7 0x080e5933 in ngx_http_lua_run_thread ()
#8 0x080ee9e8 in ngx_http_lua_socket_tcp_resume ()
#9 0x080e8c9d in ngx_http_lua_content_wev_handler ()
#10 0x080edb10 in ngx_http_lua_socket_handle_error ()
#11 0x080f1796 in ngx_http_lua_socket_read_handler ()
#12 0x080eeb3c in ngx_http_lua_socket_tcp_handler ()
#13 0x080703fc in ngx_event_expire_timers ()
#14 0x080702b6 in ngx_process_events_and_timers ()
#15 0x080778a0 in ngx_worker_process_cycle ()
#16 0x08075f51 in ngx_spawn_process ()
#17 0x08076d9b in ngx_start_worker_processes ()
#18 0x0807886d in ngx_master_process_cycle ()
#19 0x0805a7e1 in main ()
#0 0x0016888f in lj_mem_realloc () from /usr/local/luajit/lib/libluajit-5.1.so.2
#1 0x0016e39c in lj_udata_new () from /usr/local/luajit/lib/libluajit-5.1.so.2
#2 0x00175be4 in lua_newuserdata () from /usr/local/luajit/lib/libluajit-5.1.so.2
#3 0x080eee4e in ngx_http_lua_socket_tcp_receiveuntil ()
#4 0x001667b7 in lj_BC_FUNCC () from /usr/local/luajit/lib/libluajit-5.1.so.2
#5 0x00174e9e in lua_resume () from /usr/local/luajit/lib/libluajit-5.1.so.2
#6 0x080e5933 in ngx_http_lua_run_thread ()
#7 0x080ee9e8 in ngx_http_lua_socket_tcp_resume ()
#8 0x080e8c9d in ngx_http_lua_content_wev_handler ()
#9 0x080edb10 in ngx_http_lua_socket_handle_error ()
#10 0x080f1796 in ngx_http_lua_socket_read_handler ()
#11 0x080eeb3c in ngx_http_lua_socket_tcp_handler ()
#12 0x080703fc in ngx_event_expire_timers ()
#13 0x080702b6 in ngx_process_events_and_timers ()
#14 0x080778a0 in ngx_worker_process_cycle ()
#15 0x08075f51 in ngx_spawn_process ()
#16 0x08076d9b in ngx_start_worker_processes ()
#17 0x0807886d in ngx_master_process_cycle ()
#18 0x0805a7e1 in main ()
#0 0x0016c81e in lj_tab_getstr () from /usr/local/luajit/lib/libluajit-5.1.so.2
#1 0x0016ed2a in lj_meta_cache () from /usr/local/luajit/lib/libluajit-5.1.so.2
#2 0x00169332 in lj_gc_separateudata () from /usr/local/luajit/lib/libluajit-5.1.so.2
#3 0x0016a371 in gc_onestep () from /usr/local/luajit/lib/libluajit-5.1.so.2
#4 0x0016a777 in lj_gc_step () from /usr/local/luajit/lib/libluajit-5.1.so.2
#5 0x001784d1 in lua_pushlstring () from /usr/local/luajit/lib/libluajit-5.1.so.2
#6 0x080f13ea in ngx_http_lua_socket_receiveuntil_iterator ()
#7 0x001667b7 in lj_BC_FUNCC () from /usr/local/luajit/lib/libluajit-5.1.so.2
#8 0x00174e9e in lua_resume () from /usr/local/luajit/lib/libluajit-5.1.so.2
#9 0x080e5933 in ngx_http_lua_run_thread ()
#10 0x080ee9e8 in ngx_http_lua_socket_tcp_resume ()
#11 0x080e8c9d in ngx_http_lua_content_wev_handler ()
#12 0x080edb10 in ngx_http_lua_socket_handle_error ()
#13 0x080f1796 in ngx_http_lua_socket_read_handler ()
#14 0x080eeb3c in ngx_http_lua_socket_tcp_handler ()
#15 0x080703fc in ngx_event_expire_timers ()
#16 0x080702b6 in ngx_process_events_and_timers ()
#17 0x080778a0 in ngx_worker_process_cycle ()
#18 0x08075f51 in ngx_spawn_process ()
#19 0x08076d9b in ngx_start_worker_processes ()
#20 0x0807886d in ngx_master_process_cycle ()
#21 0x0805a7e1 in main ()
============================================
nginx version: ngx_openresty/1.2.8.6
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-54)
TLS SNI support disabled
configure arguments: --prefix=/usr/local/nginx --with-debug --add-module=../ngx_devel_kit-0.2.18 --add-module=../echo-nginx-module-0.45 --add-module=../xss-nginx-module-0.03rc9 --add-module=../ngx_coolkit-0.2rc1 --add-module=../set-misc-nginx-module-0.22rc8 --add-module=../form-input-nginx-module-0.07 --add-module=../encrypted-session-nginx-module-0.03 --add-module=../srcache-nginx-module-0.21 --add-module=../ngx_lua-0.8.2 --add-module=../headers-more-nginx-module-0.20 --add-module=../array-var-nginx-module-0.03rc1 --add-module=../memc-nginx-module-0.13rc3 --add-module=../redis2-nginx-module-0.10 --add-module=../redis-nginx-module-0.3.6 --add-module=../auth-request-nginx-module-0.2 --add-module=../rds-json-nginx-module-0.12rc10 --add-module=../rds-csv-nginx-module-0.05rc2 --with-ld-opt=-Wl,-rpath,/usr/local/luajit/lib --with-http_stub_status_module --with-google_perftools_module --with-http_ssl_module
=============================================
error.log中会有以下错误 应该是验证代理失败的记录
[error] 30086#0: *821262 connect() failed (111: Connection refused),
[error] 30086#0: *824643 connect() failed (113: No route to host),
==============================================
各位能否帮忙看看问题出在哪里,排查很久也没能找出来