I replaced the LuaJIT-2.0.1 source in the openresty-1.2.8.5 bundle with the latest version from the LuaJIT git repository and rebuilt openresty. Assertion failure still occurs.
Program received signal SIGABRT, Aborted.
0x0000003e5ba329a5 in raise () from /lib64/libc.so.6
(gdb) where
#0 0x0000003e5ba329a5 in raise () from /lib64/libc.so.6
#1 0x0000003e5ba34185 in abort () from /lib64/libc.so.6
#2 0x0000003e5ba2b935 in __assert_fail () from /lib64/libc.so.6
#3 0x00007f920105853b in ctype_check (g=<value optimized out>,
cd=<value optimized out>) at lj_ctype.h:395
#4 ctype_get (g=<value optimized out>, cd=<value optimized out>)
at lj_ctype.h:402
#5 ctype_child (g=<value optimized out>, cd=<value optimized out>)
at lj_ctype.h:413
#6 ctype_raw (g=<value optimized out>, cd=<value optimized out>)
at lj_ctype.h:420
#7 lj_cdata_free (g=<value optimized out>, cd=<value optimized out>)
at lj_cdata.c:69
#8 0x00007f920101439d in gc_sweep (g=0x414e63b8, p=0x40647c70, lim=23)
at lj_gc.c:405
#9 0x00007f92010155ac in gc_onestep (L=0x41bc5220) at lj_gc.c:632
#10 0x00007f9201015d28 in lj_gc_step (L=0x41bc5220) at lj_gc.c:676
#11 0x00007f9201027851 in lj_parse_keepstr (ls=0x7fffead480d0,
str=<value optimized out>, len=<value optimized out>) at lj_parse.c:238
#12 0x00007f9201024bf2 in read_string (ls=0x7fffead480d0, tv=0x7fffead480e0)
at lj_lex.c:255
#13 llex (ls=0x7fffead480d0, tv=0x7fffead480e0) at lj_lex.c:338
#14 0x00007f9201024dad in lj_lex_next (ls=0x7fffead480d0) at lj_lex.c:430
#15 0x00007f9201028f88 in lex_opt (ls=0x7fffead480d0, e=0x7fffead47b40)
at lj_parse.c:985
#16 expr_table (ls=0x7fffead480d0, e=0x7fffead47b40) at lj_parse.c:1787
#17 0x00007f9201027ba3 in expr_simple (ls=0x7fffead480d0, v=0x7fffead47b40,
limit=0) at lj_parse.c:2028
#18 expr_unop (ls=0x7fffead480d0, v=0x7fffead47b40, limit=0) at lj_parse.c:2101
#19 expr_binop (ls=0x7fffead480d0, v=0x7fffead47b40, limit=0)
at lj_parse.c:2114
#20 0x00007f9201029255 in expr (ls=<value optimized out>,
v=<value optimized out>) at lj_parse.c:2133
#21 expr_list (ls=<value optimized out>, v=<value optimized out>)
at lj_parse.c:1901
#22 0x00007f92010297b8 in parse_assignment (ls=0x7fffead480d0,
lh=0x7fffead47c00, nvars=1) at lj_parse.c:2224
#23 0x00007f9201029ab3 in parse_call_assign (ls=0x7fffead480d0)
at lj_parse.c:2257
#24 parse_stmt (ls=0x7fffead480d0) at lj_parse.c:2695
#25 parse_chunk (ls=0x7fffead480d0) at lj_parse.c:2707
#26 0x00007f920102a98e in lj_parse (ls=0x7fffead480d0) at lj_parse.c:2740
#27 0x00007f920102d15b in cpparser (L=0x41bc5220, dummy=<value optimized out>,
ud=0x7fffead480d0) at lj_load.c:41
#28 0x00007f92010121d0 in lj_vm_cpcall ()
from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
---Type <return> to continue, or q <return> to quit---
#29 0x00007f920102ce1d in lua_loadx (L=0x41bc5220,
reader=<value optimized out>, data="" optimized out>,
chunkname=<value optimized out>, mode=<value optimized out>)
at lj_load.c:58
#30 0x00007f920102cf68 in luaL_loadfilex (L=0x41bc5220,
filename=0x414f3ad8 "/usr/local/openresty/nginx/lua/doorman_global_config.lua", mode=0x0) at lj_load.c:101
#31 0x00007f920106ddca in lj_cf_package_loader_lua (L=0x41bc5220)
at lib_package.c:345
#32 0x00007f9201011e8f in lj_BC_FUNCC ()
from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
#33 0x00007f920106d2ad in lj_cf_package_require (L=0x41bc5220)
at lib_package.c:423
#34 0x00007f9201011e8f in lj_BC_FUNCC ()
from /usr/local/openresty/luajit/lib/libluajit-5.1.so.2
#35 0x000000000049ef3b in ngx_http_lua_run_thread (L=0x414e6378, r=0x1f236c0,
ctx=0x1fc1288, nrets=0) at ../ngx_lua-0.8.2/src/ngx_http_lua_util.c:1032
#36 0x00000000004a25fd in ngx_http_lua_rewrite_by_chunk (L=0x414e6378,
r=0x1f236c0) at ../ngx_lua-0.8.2/src/ngx_http_lua_rewriteby.c:306
#37 0x00000000004a2763 in ngx_http_lua_rewrite_handler_file (r=0x1f236c0)
at ../ngx_lua-0.8.2/src/ngx_http_lua_rewriteby.c:224
#38 0x00000000004a2a23 in ngx_http_lua_rewrite_handler (r=0x1f236c0)
at ../ngx_lua-0.8.2/src/ngx_http_lua_rewriteby.c:140
#39 0x000000000043fa73 in ngx_http_core_rewrite_phase (r=0x1f236c0,
ph=0x1f55ba0) at src/http/ngx_http_core_module.c:942
#40 0x000000000043b2c3 in ngx_http_core_run_phases (r=0x1f236c0)
at src/http/ngx_http_core_module.c:888
#41 0x000000000043b3bd in ngx_http_handler (r=<value optimized out>)
at src/http/ngx_http_core_module.c:871
#42 0x0000000000445f94 in ngx_http_process_request (r=0x1f236c0)
at src/http/ngx_http_request.c:1692
#43 0x00000000004465fc in ngx_http_process_request_headers (
rev=<value optimized out>) at src/http/ngx_http_request.c:1140
#44 0x0000000000446c09 in ngx_http_process_request_line (rev=0x1f8c738)
at src/http/ngx_http_request.c:936
#45 0x000000000044359d in ngx_http_init_request (rev=0x1f8c738)
at src/http/ngx_http_request.c:520
#46 0x0000000000434879 in ngx_epoll_process_events (cycle=0x1f17990,
timer=<value optimized out>, flags=<value optimized out>)
at src/event/modules/ngx_epoll_module.c:683
#47 0x000000000042c2d3 in ngx_process_events_and_timers (cycle=0x1f17990)
at src/event/ngx_event.c:247
#48 0x00000000004330d8 in ngx_worker_process_cycle (cycle=0x1f17990,
data="" optimized out>) at src/os/unix/ngx_process_cycle.c:813
#49 0x00000000004318c5 in ngx_spawn_process (cycle=0x1f17990,
proc=0x432fe2 <ngx_worker_process_cycle>, data="">
name=0x4cb69b "worker process", respawn=-3)
at src/os/unix/ngx_process.c:198
#50 0x0000000000432563 in ngx_start_worker_processes (cycle=0x1f17990, n=1,
type=-3) at src/os/unix/ngx_process_cycle.c:364
#51 0x000000000043374e in ngx_master_process_cycle (cycle=0x1f17990)
at src/os/unix/ngx_process_cycle.c:136
#52 0x0000000000416bea in main (argc=<value optimized out>,
argv=<value optimized out>) at src/core/nginx.c:412