首页 > openresty lua操作redis 出现segmentfault

openresty lua操作redis 出现segmentfault

openresty 使用nginx 调用lua 操作redis,运行一段时间 会出现段错误。一下是生成core 打印出的信息:

Core was generated by `nginx: worker'.
Program terminated with signal 11, Segmentation fault.
#0  ngx_http_lua_chain_get_free_buf (log=0xac1fd30, p=0x4fa1d10, free=0xf8, len=57)
    at ../ngx_lua-0.9.16/src/ngx_http_lua_util.c:2703
2703        if (*free) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.149.el6_6.9.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-37.el6_6.x86_64 libcom_err-1.41.12-21.el6.x86_64 libselinux-2.0.94-5.8.el6.x86_64 nss-softokn-freebl-3.14.3-22.el6_6.x86_64 openssl-1.0.1e-30.el6.11.x86_64 pcre-7.8-6.el6.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0  ngx_http_lua_chain_get_free_buf (log=0xac1fd30, p=0x4fa1d10, free=0xf8, len=57)
    at ../ngx_lua-0.9.16/src/ngx_http_lua_util.c:2703
#1  0x00000000004bee34 in ngx_http_lua_socket_tcp_send (L=0x5cd32e0) at ../ngx_lua-0.9.16/src/ngx_http_lua_socket_tcp.c:2371
#2  0x00000000004deef7 in luaD_precall (L=0x5cd32e0, func=0x4f37510, nresults=2) at ldo.c:320
#3  0x00000000004e8329 in luaV_execute (L=<value optimized out>, nexeccalls=2) at lvm.c:591
#4  0x00000000004dea87 in luaD_rawrunprotected (L=0x5cd32e0, f=0x4df170 <resume>, ud=0x4f374e0) at ldo.c:116
#5  0x00000000004dec50 in lua_resume (L=0x5cd32e0, nargs=<value optimized out>) at ldo.c:428
#6  0x00000000004b2520 in ngx_http_lua_run_thread (L=0x2008960, r=0x4fa1d60, ctx=0x1f013c8, nrets=1)
    at ../ngx_lua-0.9.16/src/ngx_http_lua_util.c:1015
#7  0x00000000004ba4d8 in ngx_http_lua_socket_tcp_resume_helper (r=0x4fa1d60, socket_op=<value optimized out>)
    at ../ngx_lua-0.9.16/src/ngx_http_lua_socket_tcp.c:5184
#8  0x00000000004bbecc in ngx_http_lua_socket_handle_read_success (r=0x4fa1d60, u=0xb26ac98)
    at ../ngx_lua-0.9.16/src/ngx_http_lua_socket_tcp.c:2952
#9  ngx_http_lua_socket_tcp_read (r=0x4fa1d60, u=0xb26ac98) at ../ngx_lua-0.9.16/src/ngx_http_lua_socket_tcp.c:2071
#10 0x00000000004ba410 in ngx_http_lua_socket_tcp_handler (ev=<value optimized out>)
    at ../ngx_lua-0.9.16/src/ngx_http_lua_socket_tcp.c:2703
#11 0x0000000000439d35 in ngx_epoll_process_events (cycle=<value optimized out>, timer=<value optimized out>,
    flags=<value optimized out>) at src/event/modules/ngx_epoll_module.c:822
#12 0x0000000000432395 in ngx_process_events_and_timers (cycle=0x1f5f0b0) at src/event/ngx_event.c:242
#13 0x00000000004382c8 in ngx_worker_process_cycle (cycle=0x1f5f0b0, data=<value optimized out>)
    at src/os/unix/ngx_process_cycle.c:769
#14 0x0000000000436857 in ngx_spawn_process (cycle=0x1f5f0b0, proc=0x438200 <ngx_worker_process_cycle>, data=0x16,
    name=0x4f981e "worker process", respawn=47) at src/os/unix/ngx_process.c:198
#15 0x0000000000438eba in ngx_reap_children (cycle=0x1f5f0b0) at src/os/unix/ngx_process_cycle.c:621
#16 ngx_master_process_cycle (cycle=0x1f5f0b0) at src/os/unix/ngx_process_cycle.c:174
#17 0x000000000041ae86 in main (argc=<value optimized out>, argv=<value optimized out>) at src/core/nginx.c:415

有遇到的吗?


用的是稳定版吗

【热门文章】
【热门文章】