ironbee/ironbee — Issue #13: IronBee segv's when trying to Load the example.lua module.
Author: wmetcalf
Created: 2011-10-28 17:07:16+00:00
State: open

IronBee segv's when trying to Load the example.lua module. Using the example configuration, seems to happen on all platforms.

Oct 28 11:42:12 fedora-15-32-bit kernel: [6376234.793705] httpd[5311]: segfault at 68637469 ip 00872a58 sp bf9a1340 error 4 in ibmod_lua.so[835000+68000]
Oct 28 11:42:12 fedora-15-32-bit systemd[1]: httpd.service: main process exited, code=dumped, status=11

```
#0 lua_pushfstring (L=0x68637461, fmt=0x88aa58 "@%s") at lj_api.c:612
612	lj_gc_check(L);
(gdb) bt full
#0 lua_pushfstring (L=0x68637461, fmt=0x88aa58 "@%s") at lj_api.c:612
ret =
argp =
#1 0x00884a57 in luaL_loadfile (L=0x68637461, filename=0xbf9a347c "/usr/local/ironbee/lib/example.lua") at lib_aux.c:263
ctx = {fp = 0x210f57d8,
buf = '\000' , "\a\000\000\000\264\367\354\000\366\000\000\000\270\260\377 W\367\354\000(]\232\277", '\000' , "\a\000\000\000\264\367\354\000H\001\000\000\000\000\000\000\"\367\354\000X]\232\277", '\000' , "\a\000\000\000\264\367\354\000\366\000\000\000\270\260\377 W\367\354\000Hb\232\277", '\000' , "|#\232\277\350\377\377\377\377\377\377\377\352\023s\000\230'\232\277\242\303\354\000P!c\000\356\200\354\000\350\377\377\377\377\377\377\377\230#\232\277\064(l\000\b\000\000\000\350\377\377\377\377\377\377\377\001\000\000\000\364\357}\000\276\222l\000\337*l\000\000\000\000\000\350\377\377\377\377\377\377\377\001\000\000\000\060'\232\277Y\366\t\000\001\000\000\000\b'\232\277 \000\000\000\020'\000\000\f\000\000\000\242\303\354\000\000\002y\000\000\000\000\000\350g\232\277Wg\232\277\000\000\000\000\001\000\000\000\000\000\000\000\200\025c\000\314&\202\267", '\000' , ":\330d\000\000\000\000\000n\000\000\000w\000\000\000|"...}
status =
chunkname =
#2 0x0083ccfb in modlua_load_lua_file (pchunk=, file=0xbf9a347c "/usr/local/ironbee/lib/example.lua", ls=0x68637461, ib=0x210ef4d0) at lua.c:418
pool = 0x68637461
chunk = 0x210f4021
name_start =
ec =
L = 0x68637461
name = 0x210f4019 "example"
name_end =
rc =
#3 modlua_module_load (ib=0x210ef4d0, file=0xbf9a347c "/usr/local/ironbee/lib/example.lua", pm=0x0) at lua.c:540
chunk = 0x210f4021
maincfg = 0x210f1d1e
mlist = 0x0
L = 0x68637461
m =
rc = IB_OK
use_onload = 0
#4 0x0083e277 in modlua_dir_param1 (cp=0x210f2188, name=0x210f57c0 "LuaLoadModule", p1=0x210f25a8 "example.lua", cbdata=0x0) at lua.c:1880
fn = "/usr/local/ironbee/lib/example.lua\000\000\000\000\000\000\000\000\000\000\314Ua\000t\b`\000H\025\017!\t", '\000' "\243, \360`\000\005\362`\000\360\264\203\000\360\264\203\000\000\000\000\000\000\000\000\000\374\062`\000d\026\017!\001\000\000\000\004\000\000\000\f\000\000\000x\364\016!\001\000\000\000\020\000\000\000\030\346\211\000\320\364\016!\000\000\000\000\360\264\203\000\017ڃ\000\320\364\016!\004\000\000\000\360\264\203\000\004\000\000\000@\351\211\000\320\364\016!\350\000\017!\005\000\000\000H\025\017!\a\000\000\000\241>\017!\036\035\017!R\006\000\000\304\367`\000x5\232\277\314Ua\000@\351\211\000\320\364\016!\000\000\000\000\034+`\000\320\364\016!@\351\211\000\000\000\000\000\067\360`\000R\006\000\000\304\367`\000"...
len =
ib = 0x210ef4d0
rc =
#5 0x006065dc in ib_config_directive_process (cp=0x210f2188, name=0x210f57c0 "LuaLoadModule", args=0x210efae0) at config.c:522
ib = 0x210ef4d0
rec = 0x89d9c0
node =
nargs = 1
p1 = 0x210f25a8 "example.lua"
p2 =
flags =
fmask =
rc =
i =
#6 0x00606e91 in ib_cfgparser_ragel_parse_chunk (cp=0x210f2188,
buf=0xbf9a4a75 "LuaLoadModule \"example.lua\"\n\n### Main Context (need separate directives for these)\nSet parser \"htp\"\n\n# Enable inspection engine (TODO: Implement)\n#InspectionEngine On\n\n# Enable audit engine\nAuditEngin"..., blen=28) at config-parser.rl:100
_klen =
_nacts =
_keys =
_trans =
_acts = 0x61004b "\r\002\005\025\002\005\026\002\006\021\002\a\032\002\b\t\002\v\f\002\v\020\002\v\024\002\v\030\002\v\034\002\v\035\003\001\004\r\003\v"
---Type to continue, or q to quit---
ib = 0x210ef4d0
mptmp =
rc =
plist = 0x210efae0
data = 0xbf9a4a75 "LuaLoadModule \"example.lua\"\n\n### Main Context (need separate directives for these)\nSet parser \"htp\"\n\n# Enable inspection engine (TODO: Implement)\n#InspectionEngine On\n\n# Enable audit engine\nAuditEngin"...
fsm = {
p = 0xbf9a4a90 "\n\n### Main Context (need separate directives for these)\nSet parser \"htp\"\n\n# Enable inspection engine (TODO: Implement)\n#InspectionEngine On\n\n# Enable audit engine\nAuditEngine RelevantOnly\n#AuditLogInd"...,
pe = 0xbf9a4a91 "\n### Main Context (need separate directives for these)\nSet parser \"htp\"\n\n# Enable inspection engine (TODO: Implement)\n#InspectionEngine On\n\n# Enable audit engine\nAuditEngine RelevantOnly\n#AuditLogInde"..., eof = 0x0,
ts = 0xbf9a4a90 "\n\n### Main Context (need separate directives for these)\nSet parser \"htp\"\n\n# Enable inspection engine (TODO: Implement)\n#InspectionEngine On\n\n# Enable audit engine\nAuditEngine RelevantOnly\n#AuditLogInd"...,
te = 0xbf9a4a90 "\n\n### Main Context (need separate directives for these)\nSet parser \"htp\"\n\n# Enable inspection engine (TODO: Implement)\n#InspectionEngine On\n\n# Enable audit engine\nAuditEngine RelevantOnly\n#AuditLogInd"..., cs = 22, top = 1, act = 0, stack = {16, 0 }}
#7 0x0060594c in ib_cfgparser_parse (cp=0x210f2188, file=0x21071a40 "/usr/local/ironbee/etc/ironbee.conf.example") at config.c:206
chunk_len = 28
ec =
remaining =
chunk_start =
chunk_end = 0xbf9a4a90 "\n\n### Main Context (need separate directives for these)\nSet parser \"htp\"\n\n# Enable inspection engine (TODO: Implement)\n#InspectionEngine On\n\n# Enable audit engine\nAuditEngine RelevantOnly\n#AuditLogInd"...
fd = 9
buf = "### Logging\n#DebugLog /var/log/ironbee/debug.log\nDebugLogLevel 4\n# TODO: Default is still stderr logging - this will go to Apache error_log\nSet logger \"mod_ironbee\"\n\n### Sensor Info\n# Sensor ID, must "...
buf_end = 0xbf9a680c ""
buf_mark = 0xbf9a5162 "\232\277TT\232\277\327\327Y"
nbytes = -1080407408
rc = IB_OK
#8 0x00831a95 in ironbee_post_config (p=0x20ffb0b8, plog=0x21029170, ptmp=0x2102d180, s=0x20ffcfb0) at mod_ironbee.c:871
ctx =
modcfg = 0x2107c650
cp = 0x210f2188
lpr = 0x210efdda
init = 0x1
rc =
#9 0x00eb0086 in ap_run_post_config (pconf=0x20ffb0b8, plog=0x21029170, ptemp=0x2102d180, s=0x20ffcfb0) at /usr/src/debug/httpd-2.2.17/server/config.c:94
pHook =
n =
rv =
#10 0x00e995e6 in main (argc=1, argv=0xbf9a6a04) at /usr/src/debug/httpd-2.2.17/server/main.c:728
c = 0 '\000'
configtestonly = 0
confname = 0xec808c "conf/httpd.conf"
def_server_root = 0xec8081 "/etc/httpd"
temp_error_log = 0x0
error =
process = 0x20ffcfb0
server_conf = 0x20ffcfb0
pglobal = 0x20ff9140
pconf = 0x20ffb0b8
plog = 0x21029170
ptemp = 0x2102d180
pcommands = 0x20ffd0c0
opt = 0x20ffd160
rv = 553619776
mod =
---Type to continue, or q to quit---
optarg = 0xec7730 "UWVS\350\300 \375\377\201\303\337B\001"
signal_server =
```