目前发现在调用第三方提供的地址的时候出现死循环(没办法安装满足lbt工具运行的gdb和python[生产环境]),gdb跟踪发现一直在ngx_http_lua_socket_receiveuntil_iterator与ngx_http_lua_socket_tcp_receiveuntil中循环执行,运行1天甚至更多天后会挂死一个进程。
调用了ngx_http_lua_socket_tcp_receiveuntil函数处只有resty.http库,主要用途利用resty.http请求第三方地址。
请求示例如下
local http = require("resty.http")
local hc = http:new()
hc:request {
method = "GET",
url = "">
}
hc:request使用前后都有输出日志,在使用前的日志输出正常,使用后的日志没有输出。
有什么办法可以知道到底是什么导致陷入死循环了么?
对照堆栈看代码也没看出结果来,只知道在ngx_http_lua_socket_tcp.c中每次都是执行在下面两句代码后,开始下一次循环,在resty.http库中也没看出出错的地方。
3612 lua_pushnil(L);
3613 lua_pushliteral(L, "closed");
nginx version: openresty/1.9.3.2
built by gcc 4.1.2 20070115 (SUSE Linux)
built with OpenSSL 1.0.2e 3 Dec 2015
TLS SNI support enabled
configure arguments: --prefix=/usr/local/openresty/nginx --with-debug --with-cc-opt='-DNGX_LUA_USE_ASSERT -DNGX_LUA_ABORT_AT_PANIC -O2' --add-module=../ngx_devel_kit-0.2.19 --add-module=../echo-nginx-module-0.58 --add-module=../xss-nginx-module-0.05 --add-module=../ngx_coolkit-0.2rc3 --add-module=../set-misc-nginx-module-0.29 --add-module=../form-input-nginx-module-0.11 --add-module=../encrypted-session-nginx-module-0.04 --add-module=../srcache-nginx-module-0.30 --add-module=../ngx_lua-0.9.19 --add-module=../ngx_lua_upstream-0.04 --add-module=../headers-more-nginx-module-0.28 --add-module=../array-var-nginx-module-0.04 --add-module=../memc-nginx-module-0.16 --add-module=../redis2-nginx-module-0.12 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.14 --add-module=../rds-csv-nginx-module-0.07 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --with-http_stub_status_module --with-openssl=../third_party_src/ngx_openresty-1.9.3.2/../openssl-1.0.2e --with-http_ssl_module
GNU gdb (GDB) SUSE (7.3-0.6.1)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/openresty/nginx/sbin/nginx...done.
(gdb) attach 3845
Attaching to program: /usr/local/openresty/nginx/sbin/nginx, process 3845
warning: Selected architecture i386:x86-64 is not compatible with reported target architecture i386
warning: Architecture rejected target-supplied description
Reading symbols from /lib64/libpthread.so.0...Missing separate debuginfo for /lib64/libpthread.so.0
Try: zypper install -C "debuginfo(build-id)=09dcc03b39461f2ca413dde34111106b608a4aae"
(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libcrypt.so.1...Missing separate debuginfo for /lib64/libcrypt.so.1
Try: zypper install -C "debuginfo(build-id)=9613183750d11420f653670d56e92f6551559d6d"
(no debugging symbols found)...done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2...done.
Loaded symbols for /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
Reading symbols from /lib64/libm.so.6...Missing separate debuginfo for /lib64/libm.so.6
Try: zypper install -C "debuginfo(build-id)=9adb096ac930482654c1fa9a8ac936ce6d188323"
(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libdl.so.2...Missing separate debuginfo for /lib64/libdl.so.2
Try: zypper install -C "debuginfo(build-id)=fd7cde4334b242886692986487862a868166f7b6"
(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /usr/lib64/libpcre.so.0...Missing separate debuginfo for /usr/lib64/libpcre.so.0
Try: zypper install -C "debuginfo(build-id)=690bc513d49ca57c3d0ea00e5f58578683edec8b"
(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libpcre.so.0
Reading symbols from /lib64/libz.so.1...Missing separate debuginfo for /lib64/libz.so.1
Try: zypper install -C "debuginfo(build-id)=4c05d1eb180f9c02b81a0c559c813dada91e0ca4"
(no debugging symbols found)...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /lib64/libc.so.6...Missing separate debuginfo for /lib64/libc.so.6
Try: zypper install -C "debuginfo(build-id)=26f44b0b2f2a84fd515243322dcca3094c95a8cc"
(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2
Try: zypper install -C "debuginfo(build-id)=79f0ee3f9bc5a881545c7b0c5855c153853114b1"
(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib64/libgcc_s.so.1...Missing separate debuginfo for /lib64/libgcc_s.so.1
Try: zypper install -C "debuginfo(build-id)=fe7c25bfb3e605f9d6c1cb00b3c5f96ed95be6e5"
(no debugging symbols found)...done.
Loaded symbols for /lib64/libgcc_s.so.1
Reading symbols from /usr/local/openresty/lualib/mcrypt.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/openresty/lualib/mcrypt.so
Reading symbols from /lib64/libmcrypt.so.4...done.
Loaded symbols for /lib64/libmcrypt.so.4
Reading symbols from /usr/local/openresty/lualib/hcrypt.so...done.
Loaded symbols for /usr/local/openresty/lualib/hcrypt.so
Reading symbols from /usr/local/openresty/lualib/cjson.so...done.
Loaded symbols for /usr/local/openresty/lualib/cjson.so
Reading symbols from /usr/local/openresty/lualib/stringy.so...done.
Loaded symbols for /usr/local/openresty/lualib/stringy.so
0x00007fee9dd01dc4 in gc_sweep (g=0x41b3a3b8, p=0x416388f0, lim=34) at lj_gc.c:386
386 lj_gc.c: No such file or directory.
in lj_gc.c
(gdb) b ngx_http_lua_socket_tcp_receiveuntil
Breakpoint 1 at 0x4f85a0: file ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c, line 3489. (2 locations)
(gdb) b ngx_http_lua_socket_receiveuntil_iterator
Breakpoint 2 at 0x4fa940: file ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c, line 3580.
(gdb) c
Continuing. Breakpoint 2, ngx_http_lua_socket_receiveuntil_iterator (L=0x41ea3670) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:3580
3580 ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c: No such file or directory.
in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb) bt
#0 ngx_http_lua_socket_receiveuntil_iterator (L=0x41ea3670) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:3580
#1 0x00007fee9dcffbfb in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
#2 0x00000000004ee35f in ngx_http_lua_run_thread (L=0x41b3a378, r=0xc4cff0, ctx=0xc4e390, nrets=1) at ../ngx_lua-0.9.19/src/ngx_http_lua_util.c:1015
#3 0x00000000004f7b3b in ngx_http_lua_socket_tcp_resume_helper (r=0xc4cff0, socket_op=<optimized out>) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:5190
#4 0x00000000004fa605 in ngx_http_lua_socket_handle_read_success (u=<optimized out>, r=<optimized out>) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:2952
#5 ngx_http_lua_socket_tcp_read (r=0xc4cff0, u=0x40b4b018) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:2071
#6 0x00000000004f76e3 in ngx_http_lua_socket_tcp_handler (ev=0x7fee9b618730) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:2703
#7 0x000000000046de3c in ngx_epoll_process_events (cycle=0x892370, timer=<optimized out>, flags=<optimized out>) at src/event/modules/ngx_epoll_module.c:822
#8 0x000000000046562e in ngx_process_events_and_timers (cycle=0x892370) at src/event/ngx_event.c:242
#9 0x000000000046c3a9 in ngx_worker_process_cycle (cycle=0x892370, data="" out>) at src/os/unix/ngx_process_cycle.c:769
#10 0x000000000046a91d in ngx_spawn_process (cycle=0x892370, proc=0x46c2e0 <ngx_worker_process_cycle>, data="" name=0x65fcce "worker process", respawn=-3) at src/os/unix/ngx_process.c:198
#11 0x000000000046b8e1 in ngx_start_worker_processes (cycle=0x892370, n=20, type=-3) at src/os/unix/ngx_process_cycle.c:358
#12 0x000000000046cb28 in ngx_master_process_cycle (cycle=0x892370) at src/os/unix/ngx_process_cycle.c:130
#13 0x000000000044cdf2 in main (argc=1, argv=<optimized out>) at src/core/nginx.c:415
(gdb) p *L
$1 = {nextgc = {gcptr32 = 1092925608}, marked = 1 '\001', gct = 6 '\006', dummy_ffid = 1 '\001', status = 0 '\000', glref = {ptr32 = 1102291896}, gclist = {gcptr32 = 1089061664}, base = 0x412377e0,
top = 0x412377e0, maxstack = {ptr32 = 1092844352}, stack = {ptr32 = 1092842576}, openupval = {gcptr32 = 1074009320}, env = {gcptr32 = 1073987496}, cframe = 0x7fff7c046ad1, stacksize = 228}
(gdb) n
3591 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3592 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3597 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3599 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3607 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3608 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3609 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3608 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3609 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3611 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3612 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3613 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3729 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
0x00007fee9dcffbfb in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
0x00007fee9dcffc9e in lj_vm_returnc () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vm_returnc,
which has no line number information.
0x00007fee9dcff715 in lj_BC_RET () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_RET,
which has no line number information.
0x00007fee9dcfe700 in lj_BC_IST () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_IST,
which has no line number information.
0x00007fee9dcffa66 in lj_BC_ILOOP () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_ILOOP,
which has no line number information.
0x00007fee9dcfe78e in lj_BC_MOV () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_MOV,
which has no line number information.
0x00007fee9dcff007 in lj_BC_TGETS () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_TGETS,
which has no line number information.
0x00007fee9dcffff6 in lj_vmeta_tgets () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vmeta_tgets,
which has no line number information.
0x00007fee9dd00039 in lj_vmeta_tgetv () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vmeta_tgetv,
which has no line number information.
0x00007fee9dd0005e in lj_cont_ra () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_cont_ra,
which has no line number information.
0x00007fee9dcfec36 in lj_BC_KSTR () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_KSTR,
which has no line number information.
0x00007fee9dcff43d in lj_BC_CALL () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_CALL,
which has no line number information.
0x00007fee9dcffbc7 in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
Breakpoint 1, ngx_http_lua_socket_tcp_receiveuntil (L=0x41ea3670) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:3489
3489 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3499 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb) bt
#0 ngx_http_lua_socket_tcp_receiveuntil (L=0x41ea3670) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:3499
#1 0x00007fee9dcffbfb in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
#2 0x00000000004ee35f in ngx_http_lua_run_thread (L=0x41b3a378, r=0xc4cff0, ctx=0xc4e390, nrets=1) at ../ngx_lua-0.9.19/src/ngx_http_lua_util.c:1015
#3 0x00000000004f7b3b in ngx_http_lua_socket_tcp_resume_helper (r=0xc4cff0, socket_op=<optimized out>) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:5190
#4 0x00000000004fa605 in ngx_http_lua_socket_handle_read_success (u=<optimized out>, r=<optimized out>) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:2952
#5 ngx_http_lua_socket_tcp_read (r=0xc4cff0, u=0x40b4b018) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:2071
#6 0x00000000004f76e3 in ngx_http_lua_socket_tcp_handler (ev=0x7fee9b618730) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:2703
#7 0x000000000046de3c in ngx_epoll_process_events (cycle=0x892370, timer=<optimized out>, flags=<optimized out>) at src/event/modules/ngx_epoll_module.c:822
#8 0x000000000046562e in ngx_process_events_and_timers (cycle=0x892370) at src/event/ngx_event.c:242
#9 0x000000000046c3a9 in ngx_worker_process_cycle (cycle=0x892370, data="" out>) at src/os/unix/ngx_process_cycle.c:769
#10 0x000000000046a91d in ngx_spawn_process (cycle=0x892370, proc=0x46c2e0 <ngx_worker_process_cycle>, data="" name=0x65fcce "worker process", respawn=-3) at src/os/unix/ngx_process.c:198
#11 0x000000000046b8e1 in ngx_start_worker_processes (cycle=0x892370, n=20, type=-3) at src/os/unix/ngx_process_cycle.c:358
#12 0x000000000046cb28 in ngx_master_process_cycle (cycle=0x892370) at src/os/unix/ngx_process_cycle.c:130
#13 0x000000000044cdf2 in main (argc=1, argv=<optimized out>) at src/core/nginx.c:415
(gdb) p *L
$2 = {nextgc = {gcptr32 = 1092925608}, marked = 1 '\001', gct = 6 '\006', dummy_ffid = 1 '\001', status = 0 '\000', glref = {ptr32 = 1102291896}, gclist = {gcptr32 = 1089061664}, base = 0x412377d8,
top = 0x412377e8, maxstack = {ptr32 = 1092844352}, stack = {ptr32 = 1092842576}, openupval = {gcptr32 = 1074009320}, env = {gcptr32 = 1073987496}, cframe = 0x7fff7c046ad1, stacksize = 228}
(gdb) n
3500 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3505 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3532 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3533 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3537 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3540 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3542 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3543 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3542 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3543 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3551 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3552 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3551 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3552 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3556 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3557 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3558 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3560 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3562 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3564 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3573 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3575 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
0x00007fee9dcffbfb in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
0x00007fee9dcffc9e in lj_vm_returnc () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vm_returnc,
which has no line number information.
0x00007fee9dcff715 in lj_BC_RET () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_RET,
which has no line number information.
0x00007fee9dcfe78e in lj_BC_MOV () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_MOV,
which has no line number information.
0x00007fee9dcff43d in lj_BC_CALL () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_CALL,
which has no line number information.
0x00007fee9dcffbc7 in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
Breakpoint 2, ngx_http_lua_socket_receiveuntil_iterator (L=0x41ea3670) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:3580
3580 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3591 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3592 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3597 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3599 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3607 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3608 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3609 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3608 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3609 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3611 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3612 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3613 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3729 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
0x00007fee9dcffbfb in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
0x00007fee9dcffc9e in lj_vm_returnc () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vm_returnc,
which has no line number information.
0x00007fee9dcff715 in lj_BC_RET () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_RET,
which has no line number information.
0x00007fee9dcfe700 in lj_BC_IST () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_IST,
which has no line number information.
0x00007fee9dcffa66 in lj_BC_ILOOP () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_ILOOP,
which has no line number information.
0x00007fee9dcfe78e in lj_BC_MOV () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_MOV,
which has no line number information.
0x00007fee9dcff007 in lj_BC_TGETS () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_TGETS,
which has no line number information.
0x00007fee9dcffff6 in lj_vmeta_tgets () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vmeta_tgets,
which has no line number information.
0x00007fee9dd00039 in lj_vmeta_tgetv () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vmeta_tgetv,
which has no line number information.
0x00007fee9dd0005e in lj_cont_ra () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_cont_ra,
which has no line number information.
0x00007fee9dcfec36 in lj_BC_KSTR () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_KSTR,
which has no line number information.
0x00007fee9dcff43d in lj_BC_CALL () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_CALL,
which has no line number information.
0x00007fee9dcffbc7 in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
Breakpoint 1, ngx_http_lua_socket_tcp_receiveuntil (L=0x41ea3670) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:3489
3489 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3499 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3500 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3505 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3532 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3533 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3537 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3540 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3542 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3543 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3542 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3543 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3551 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3552 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3551 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3552 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3556 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3557 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3558 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3560 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3562 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3564 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3573 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3575 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
0x00007fee9dcffbfb in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
0x00007fee9dcffc9e in lj_vm_returnc () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vm_returnc,
which has no line number information.
0x00007fee9dcff715 in lj_BC_RET () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_RET,
which has no line number information.
0x00007fee9dcfe78e in lj_BC_MOV () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_MOV,
which has no line number information.
0x00007fee9dcff43d in lj_BC_CALL () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_CALL,
which has no line number information.
0x00007fee9dcffbc7 in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
Breakpoint 2, ngx_http_lua_socket_receiveuntil_iterator (L=0x41ea3670) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:3580
3580 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3591 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3592 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3597 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3599 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3607 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3608 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3609 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3608 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3609 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3611 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3612 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3613 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
3729 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c
(gdb)
0x00007fee9dcffbfb in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
0x00007fee9dcffc9e in lj_vm_returnc () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vm_returnc,
which has no line number information.
0x00007fee9dcff715 in lj_BC_RET () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_RET,
which has no line number information.
0x00007fee9dcfe700 in lj_BC_IST () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_IST,
which has no line number information.
0x00007fee9dcffa66 in lj_BC_ILOOP () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_ILOOP,
which has no line number information.
0x00007fee9dcfe78e in lj_BC_MOV () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_MOV,
which has no line number information.
0x00007fee9dcff007 in lj_BC_TGETS () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_TGETS,
which has no line number information.
0x00007fee9dcffff6 in lj_vmeta_tgets () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vmeta_tgets,
which has no line number information.
0x00007fee9dd00039 in lj_vmeta_tgetv () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_vmeta_tgetv,
which has no line number information.
0x00007fee9dd0005e in lj_cont_ra () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_cont_ra,
which has no line number information.
0x00007fee9dcfec36 in lj_BC_KSTR () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_KSTR,
which has no line number information.
0x00007fee9dcff43d in lj_BC_CALL () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_CALL,
which has no line number information.
0x00007fee9dcffbc7 in lj_BC_FUNCC () from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
(gdb)
Single stepping until exit from function lj_BC_FUNCC,
which has no line number information.
Breakpoint 1, ngx_http_lua_socket_tcp_receiveuntil (L=0x41ea3670) at ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c:3489
3489 in ../ngx_lua-0.9.19/src/ngx_http_lua_socket_tcp.c