Nginx-LuaJIT core

Sirsiwal, Umesh usirsiwal at verivue.com
Tue May 10 06:57:15 MSD 2011


I am receiving the following core using LuaJIT-2.0 Beta7. and chaoslawful-lua-nginx-module-v0.1.5rc2. I receive similar crash with chaoslawful-lua-nginx-module-v0.1.6rc6. Note that the newly created coroutine is set to -1.



#0  lj_state_checkstack (from=0x60a95d0, to=0xffffffffffffffff, n=1) at lj_state.h:24
#1  lua_xmove (from=0x60a95d0, to=0xffffffffffffffff, n=1) at lj_api.c:107
#2  0x000000000049a8ba in ngx_http_lua_access_by_chunk (L=0x60a95d0, r=0x40d48378) at ../chaoslawful-lua-nginx-module/src/ngx_http_lua_accessby.c:32
#3  0x000000000049ab82 in ngx_http_lua_access_handler_file (r=0x60a95d0) at ../chaoslawful-lua-nginx-module/src/ngx_http_lua_accessby.c:127
#4  0x000000000049a813 in ngx_http_lua_access_handler (r=0x60a95d0) at ../chaoslawful-lua-nginx-module/src/ngx_http_lua_accessby.c:249
#5  0x00000000004580ed in ngx_http_core_access_phase (r=<value optimized out>, ph=0x135ac40) at src/http/ngx_http_core_module.c:1060
#6  0x00000000004542e3 in ngx_http_core_run_phases (r=0x60a95d0) at src/http/ngx_http_core_module.c:837
#7  0x00000000004543e0 in ngx_http_handler (r=0x60a95d0) at src/http/ngx_http_core_module.c:820
#8  0x000000000045e6ac in ngx_http_process_request (r=0x60a95d0) at src/http/ngx_http_request.c:1671
#9  0x000000000045ef7c in ngx_http_process_request_headers (rev=0x5436f10) at src/http/ngx_http_request.c:1114
#10 0x000000000045f552 in ngx_http_process_request_line (rev=0x7fb909bc9ec0) at src/http/ngx_http_request.c:914
#11 0x000000000045bd2e in ngx_http_init_request (rev=0x7fb909bc9ec0) at src/http/ngx_http_request.c:539
#12 0x000000000045beee in ngx_http_keepalive_handler (rev=0x7fb909bc9ec0) at src/http/ngx_http_request.c:2729
#13 0x000000000044d78e in ngx_epoll_process_events (cycle=0x12e9830, timer=<value optimized out>, flags=<value optimized out>) at src/event/modules/ngx_epoll_module.c:635
#14 0x00000000004451f8 in ngx_process_events_and_timers (cycle=0x12e9830) at src/event/ngx_event.c:245
#15 0x000000000044bfd3 in ngx_worker_process_cycle (cycle=0x12e9830, data=<value optimized out>) at src/os/unix/ngx_process_cycle.c:800
#16 0x000000000044a837 in ngx_spawn_process (cycle=0x12e9830, proc=0x44bee8 <ngx_worker_process_cycle>, data=0x0, name=0x4cab45 "worker process", respawn=-3) at src/os/unix/ngx_process.c:196
#17 0x000000000044b55c in ngx_start_worker_processes (cycle=0x12e9830, n=4, type=-3) at src/os/unix/ngx_process_cycle.c:360
#18 0x000000000044c734 in ngx_master_process_cycle (cycle=0x12e9830) at src/os/unix/ngx_process_cycle.c:136
#19 0x000000000043056a in main (argc=36, argv=0x12e8310) at src/core/nginx.c:405

Here is the main lua_State value. 

lua_xmove (from=0x60a95d0, to=0xffffffffffffffff, n=1) at lj_api.c:107
107	lj_api.c: No such file or directory.
	in lj_api.c
(gdb) print *from
$1 = {nextgc = {gcptr32 = 1347703880}, marked = 0 '\000', gct = 0 '\000', dummy_ffid = 0 '\000', status = 0 '\000', glref = {ptr32 = 170254992}, gclist = {gcptr32 = 32697}, base = 0x5436c40, top = 0x12eaa98, maxstack = {
    ptr32 = 20102504}, stack = {ptr32 = 0}, openupval = {gcptr32 = 20127936}, env = {gcptr32 = 0}, cframe = 0x45aef5, stacksize = 4539072}

Any help will be appreciated.

-Umesh


More information about the nginx-devel mailing list