hello agentzh
今天又发现了一个断言失败的情况
编译选项只有 --with-debug
2014/05/14 17:44:27 [alert] 8112#0: worker process 8619 exited on signal 11 (core dumped)
worker process: lj_debug.c:103: debug_framepc: Assertion `bc_isret(((BCOp)((ins[-1])&0xff)))' failed.
2014/05/14 17:44:29 [alert] 8112#0: worker process 8620 exited on signal 6 (core dumped)
worker process: lj_debug.c:103: debug_framepc: Assertion `bc_isret(((BCOp)((ins[-1])&0xff)))' failed.
问下春哥应该哪里下手找这个问题的原因呢?
bt full
#2 0x0000003717a296e6 in __assert_fail () from /lib64/libc.so.6
No symbol table info available.
#3 0x00002ad5a1cfbceb in debug_framepc (L=0x40efec78, fn=0x40ca1d78, nextframe=0x0)
at lj_debug.c:103
T = 0x40ca5884
ins = 0x40ca58c0
pt = 0x40caa658
pos = 4294962313
__PRETTY_FUNCTION__ = "debug_framepc"
#4 0x00002ad5a1cfbe3b in debug_frameline (L=0x40efec78, fn=0x40ca1d78, nextframe=0x0)
at lj_debug.c:133
pc = 32767
__PRETTY_FUNCTION__ = "debug_frameline"
#5 0x00002ad5a1cfccf6 in lj_debug_addloc (L=0x40efec78,
msg=0x421a52e8 "attempt to index a function value", frame=0x42193508, nextframe=0x0)
at lj_debug.c:356
line = 0
fn = 0x40ca1d78
__PRETTY_FUNCTION__ = "lj_debug_addloc"
#6 0x00002ad5a1cf296e in err_msgv (L=0x40efec78, em=LJ_ERR_BADOPRV) at lj_err.c:579
msg = 0x421a52e8 "attempt to index a function value"
argp = {{gp_offset = 32, fp_offset = 48, overflow_arg_area = 0x7fffe406b850,
reg_save_area = 0x7fffe406b790}}
__PRETTY_FUNCTION__ = "err_msgv"
#7 0x00002ad5a1cf2c21 in lj_err_optype (L=0x40efec78, o=0x42193528, opm=LJ_ERR_OPINDEX)
at lj_err.c:616
tname = 0x2ad5a1db50ca "function"
opname = 0x2ad5a1db3c9b "index"
__PRETTY_FUNCTION__ = "lj_err_optype"
#8 0x00002ad5a1cf95f9 in lj_meta_tget (L=0x40efec78, o=0x42193528, k=0x7fffe406b900)
---Type <return> to continue, or q <return> to quit---
at lj_meta.c:141
mo = 0x40ee5458
loop = 0
__PRETTY_FUNCTION__ = "lj_meta_tget"
#9 0x00002ad5a1cebaf1 in lj_vmeta_tgetv ()
from /usr/home/yaowei2/work/openresty/luajit/lib/libluajit-5.1.so.2
No symbol table info available.
#10 0x00002ad5a1d0e0d3 in lua_resume (L=0x40efec78, nargs=3) at lj_api.c:1123
No locals.
#11 0x0000000000508e18 in ngx_http_lua_run_thread (L=0x40ee5378, r=0xe8bd620, ctx=0xe845b18, nrets=3)
at ../ngx_lua-0.9.7/src/ngx_http_lua_util.c:1105
next_coctx = 0x7fffe406ba30
parent_coctx = 0x7fffe406ba50
orig_coctx = 0xe845cf8
rv = 0
success = 1
next_co = 0x51adc5 <ngx_http_lua_socket_tcp_receive_retval_handler+563>
old_co = 0x40efec78
err = 0xe845b18 ""
msg = 0x3717a8c43d <gettimeofday+13> "=\001\360\377\377s\005H\203\304\b\303H\213\rX[,"
trace = 0x42193570 "\230\326\024B\377\377\377\377\070\002"
rc = 1089465464
old_pool = 0x0
#12 0x000000000051fce4 in ngx_http_lua_socket_tcp_resume (r=0xe8bd620)
at ../ngx_lua-0.9.7/src/ngx_http_lua_socket_tcp.c:4316
nret = 3
vm = 0x40ee5378
rc = 166008
c = 0x2ad5a23f4370
ctx = 0xe845b18
coctx = 0xe845cf8
u = 0x40efd708
#13 0x000000000050efa9 in ngx_http_lua_content_wev_handler (r=0xe8bd620)
at ../ngx_lua-0.9.7/src/ngx_http_lua_contentby.c:128