After an indeterminate amount of time (2 days on one core file, 5 days on the next) on a busy server, Prosody is crashing in sqlite3
#0 sqlite3RunParser (pParse=0x5431c28, zSql=0x34151d8 "SELECT * FROM `prosody` WHERE `host`=? AND `user`=? AND `store`=?", pzErrMsg=<value optimized out>) at sqlite3.c:103537
#1 0x00007f93365f057c in sqlite3Prepare (db=0x25b7a98, zSql=<value optimized out>, nBytes=65, saveSqlFlag=<value optimized out>, pReprepare=0x0, ppStmt=<value optimized out>, pzTail=0x0)
at sqlite3.c:86950
#2 0x00007f93365f0979 in sqlite3LockAndPrepare (db=0x25b7a98, zSql=<value optimized out>, nBytes=65, saveSqlFlag=1, pOld=0x0, ppStmt=0x45e0830, pzTail=0x0) at sqlite3.c:87052
#3 0x00007f93365f0c08 in sqlite3_prepare_v2 (db=0x0, zSql=0xd99d32e2b35a1041 <Address 0xd99d32e2b35a1041 out of bounds>, nBytes=68528559, ppStmt=0x7c3e, pzTail=<value optimized out>)
at sqlite3.c:87127
#4 0x00007f9336829eac in dbd_sqlite3_statement_create () from /usr/lib/lua/5.1/dbdsqlite3.so
#5 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0xb92c770, nresults=2) at ldo.c:319
#6 0x0000000000411e11 in luaV_execute (L=0x1ef5010, nexeccalls=2) at lvm.c:587
#7 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0xb92c720, nResults=-1) at ldo.c:377
#8 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415adf0) at ldo.c:116
#9 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463
#10 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#11 0x00000000004175dc in luaB_xpcall (L=0x1ef5010) at lbaselib.c:389
#12 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0xb92c700, nresults=3) at ldo.c:319
#13 0x0000000000411e11 in luaV_execute (L=0x1ef5010, nexeccalls=11) at lvm.c:587
#14 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0xb92c070, nResults=-1) at ldo.c:377
#15 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415b0c0) at ldo.c:116
#16 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463
#17 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#18 0x00000000004175dc in luaB_xpcall (L=0x1ef5010) at lbaselib.c:389
#19 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0xb92c050, nresults=-1) at ldo.c:319
#20 0x0000000000411d18 in luaV_execute (L=0x1ef5010, nexeccalls=2) at lvm.c:608
#21 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0xb92bfe0, nResults=0) at ldo.c:377
#22 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415b390) at ldo.c:116
#23 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463
#24 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=2, nresults=0, errfunc=<value optimized out>) at lapi.c:821
#25 0x00007f93386b7527 in ?? () from /usr/lib/lua/5.1/lxp.so
#26 0x00007f9338497aa3 in ?? () from /usr/lib/libexpat.so.1
#27 0x00007f933849891e in ?? () from /usr/lib/libexpat.so.1
#28 0x00007f9338490fc2 in XML_ParseBuffer () from /usr/lib/libexpat.so.1
#29 0x00007f93386b81e8 in ?? () from /usr/lib/lua/5.1/lxp.so
#30 0x00007f93386b8513 in ?? () from /usr/lib/lua/5.1/lxp.so
#31 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0xb92bfa0, nresults=-1) at ldo.c:319
#32 0x0000000000411d18 in luaV_execute (L=0x1ef5010, nexeccalls=4) at lvm.c:608
#33 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0x185d2030, nResults=-1) at ldo.c:377
#34 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415d880) at ldo.c:116
#35 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463
#36 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#37 0x00000000004175dc in luaB_xpcall (L=0x1ef5010) at lbaselib.c:389
#38 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0x185d2010, nresults=-1) at ldo.c:319
#39 0x0000000000411e11 in luaV_execute (L=0x1ef5010, nexeccalls=2) at lvm.c:587
#40 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0x1ef5410, nResults=-1) at ldo.c:377
#41 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415db50) at ldo.c:116
#42 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463
#43 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#44 0x0000000000404276 in docall (L=0x1ef5010, narg=0, clear=0) at lua.c:102
#45 0x0000000000404cd3 in handle_script (L=0x1ef5010) at lua.c:250
#46 pmain (L=0x1ef5010) at lua.c:362
#47 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0x1ef53e0, nresults=0) at ldo.c:319
#48 0x0000000000408ba9 in luaD_call (L=0x1ef5010, func=0x1ef53e0, nResults=0) at ldo.c:376
---Type <return> to continue, or q <return> to quit---
#49 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405b60 <f_Ccall>, ud=0x7fff0415ddf0) at ldo.c:116
#50 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463
#51 0x00000000004059d5 in lua_cpcall (L=0x0, func=<value optimized out>, ud=<value optimized out>) at lapi.c:856
#52 0x00000000004041ad in main (argc=2, argv=0x7fff0415df28) at lua.c:387
#0 sqlite3RunParser (pParse=0xb375878, zSql=0x7fd9609aa043 "BEGIN TRANSACTION", pzErrMsg=<value optimized out>) at sqlite3.c:103537
#1 0x00007fd960770842 in sqlite3Prepare (db=0x128ae58, zSql=<value optimized out>, nBytes=-1, saveSqlFlag=<value optimized out>, pReprepare=0x0, ppStmt=<value optimized out>,
pzTail=0x7fffe7ead8b8) at sqlite3.c:86957
#2 0x00007fd960770979 in sqlite3LockAndPrepare (db=0x128ae58, zSql=<value optimized out>, nBytes=-1, saveSqlFlag=0, pOld=0x0, ppStmt=0x7fffe7ead8b0, pzTail=0x7fffe7ead8b8) at sqlite3.c:87052
#3 0x00007fd960770dd5 in sqlite3_prepare (db=0x0, zSql=0x56118a2e567a4f02 <Address 0x56118a2e567a4f02 out of bounds>, nBytes=0, ppStmt=0x0, pzTail=<value optimized out>) at sqlite3.c:87115
#4 0x00007fd960777cac in sqlite3_exec (db=0x128ae58, zSql=0x7fd9609aa043 "BEGIN TRANSACTION", xCallback=0, pArg=<value optimized out>, pzErrMsg=<value optimized out>) at sqlite3.c:83756
#5 0x00007fd9609a9063 in ?? () from /usr/lib/lua/5.1/dbdsqlite3.so
#6 0x00007fd9609a9484 in try_begin_transaction () from /usr/lib/lua/5.1/dbdsqlite3.so
#7 0x00007fd9609a9cfd in ?? () from /usr/lib/lua/5.1/dbdsqlite3.so
#8 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x3777500, nresults=2) at ldo.c:319
#9 0x0000000000411e11 in luaV_execute (L=0x1173010, nexeccalls=2) at lvm.c:587
#10 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x3777490, nResults=-1) at ldo.c:377
#11 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eadc30) at ldo.c:116
#12 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463
#13 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#14 0x00000000004175dc in luaB_xpcall (L=0x1173010) at lbaselib.c:389
#15 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x3777470, nresults=3) at ldo.c:319
#16 0x0000000000411e11 in luaV_execute (L=0x1173010, nexeccalls=11) at lvm.c:587
#17 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x3776de0, nResults=-1) at ldo.c:377
#18 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eadf00) at ldo.c:116
#19 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463
#20 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#21 0x00000000004175dc in luaB_xpcall (L=0x1173010) at lbaselib.c:389
#22 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x3776dc0, nresults=-1) at ldo.c:319
#23 0x0000000000411d18 in luaV_execute (L=0x1173010, nexeccalls=2) at lvm.c:608
#24 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x3776d50, nResults=0) at ldo.c:377
#25 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eae1d0) at ldo.c:116
#26 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463
#27 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=2, nresults=0, errfunc=<value optimized out>) at lapi.c:821
#28 0x00007fd962837527 in ?? () from /usr/lib/lua/5.1/lxp.so
#29 0x00007fd962617aa3 in ?? () from /usr/lib/libexpat.so.1
#30 0x00007fd96261891e in ?? () from /usr/lib/libexpat.so.1
#31 0x00007fd962610fc2 in XML_ParseBuffer () from /usr/lib/libexpat.so.1
#32 0x00007fd9628381e8 in ?? () from /usr/lib/lua/5.1/lxp.so
#33 0x00007fd962838513 in ?? () from /usr/lib/lua/5.1/lxp.so
#34 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x3776d10, nresults=-1) at ldo.c:319
#35 0x0000000000411d18 in luaV_execute (L=0x1173010, nexeccalls=4) at lvm.c:608
#36 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x75c94b0, nResults=-1) at ldo.c:377
#37 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eb06c0) at ldo.c:116
#38 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463
#39 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#40 0x00000000004175dc in luaB_xpcall (L=0x1173010) at lbaselib.c:389
#41 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x75c9490, nresults=-1) at ldo.c:319
#42 0x0000000000411e11 in luaV_execute (L=0x1173010, nexeccalls=2) at lvm.c:587
#43 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x1173410, nResults=-1) at ldo.c:377
#44 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eb0990) at ldo.c:116
#45 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463
#46 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#47 0x0000000000404276 in docall (L=0x1173010, narg=0, clear=0) at lua.c:102
#48 0x0000000000404cd3 in handle_script (L=0x1173010) at lua.c:250
#49 pmain (L=0x1173010) at lua.c:362
---Type <return> to continue, or q <return> to quit---
#50 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x11733e0, nresults=0) at ldo.c:319
#51 0x0000000000408ba9 in luaD_call (L=0x1173010, func=0x11733e0, nResults=0) at ldo.c:376
#52 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405b60 <f_Ccall>, ud=0x7fffe7eb0c30) at ldo.c:116
#53 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463
#54 0x00000000004059d5 in lua_cpcall (L=0x0, func=<value optimized out>, ud=<value optimized out>) at lapi.c:856
#55 0x00000000004041ad in main (argc=2, argv=0x7fffe7eb0d68) at lua.c:387
There's nothing at all being written to prosody.err/prosody.log at failure time, so no useful stack traces from lua itself.
MattJ
on
What platform are you on, and what version of the libsqlite3 library do you have?
Changes
owner MattJ
paul.aurich
on
And what signal is it dying with? :)
hexxington
on
Looks like general protection faults. Debian Squeeze on AMD64, SQLite 3.7.3
hexxington
on
Another sqlite-based crash.
#0 0x00007f03b32a90f3 in closeAllCursors (p=0x36e5a88) at sqlite3.c:56426
#1 sqlite3VdbeHalt (p=0x36e5a88) at sqlite3.c:56947
#2 0x00007f03b32eaf6a in sqlite3VdbeExec (p=0x36e5a88) at sqlite3.c:62736
#3 0x00007f03b32d1150 in sqlite3Step (pStmt=0x36e5a88) at sqlite3.c:58454
#4 sqlite3_step (pStmt=0x36e5a88) at sqlite3.c:58518
#5 0x00007f03b32d7d02 in sqlite3_exec (db=0x144efe8, zSql=0x7f03b350a00f "COMMIT TRANSACTION", xCallback=0,
pArg=<value optimized out>, pzErrMsg=<value optimized out>) at sqlite3.c:83772
#6 0x00007f03b3509063 in ?? () from /usr/lib/lua/5.1/dbdsqlite3.so
#7 0x00007f03b35090ec in ?? () from /usr/lib/lua/5.1/dbdsqlite3.so
#8 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x5ad6ec0, nresults=1) at ldo.c:319
#9 0x0000000000411e11 in luaV_execute (L=0x10fd010, nexeccalls=1) at lvm.c:587
#10 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x5ad6e90, nResults=-1) at ldo.c:377
#11 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c075700) at ldo.c:116
#12 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463
#13 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#14 0x00000000004175dc in luaB_xpcall (L=0x10fd010) at lbaselib.c:389
#15 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x5ad6e70, nresults=3) at ldo.c:319
#16 0x0000000000411e11 in luaV_execute (L=0x10fd010, nexeccalls=9) at lvm.c:587
#17 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x5ad6910, nResults=-1) at ldo.c:377
#18 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c0759d0) at ldo.c:116
#19 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463
#20 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#21 0x00000000004175dc in luaB_xpcall (L=0x10fd010) at lbaselib.c:389
#22 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x5ad68f0, nresults=-1) at ldo.c:319
#23 0x0000000000411d18 in luaV_execute (L=0x10fd010, nexeccalls=2) at lvm.c:608
#24 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x5ad6880, nResults=0) at ldo.c:377
#25 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c075ca0) at ldo.c:116
#26 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463
#27 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=2, nresults=0, errfunc=<value optimized out>) at lapi.c:821
#28 0x00007f03b6234527 in ?? () from /usr/lib/lua/5.1/lxp.so
#29 0x00007f03b6014aa3 in ?? () from /usr/lib/libexpat.so.1
#30 0x00007f03b601591e in ?? () from /usr/lib/libexpat.so.1
#31 0x00007f03b600dfc2 in XML_ParseBuffer () from /usr/lib/libexpat.so.1
#32 0x00007f03b62351e8 in ?? () from /usr/lib/lua/5.1/lxp.so
#33 0x00007f03b6235513 in ?? () from /usr/lib/lua/5.1/lxp.so
#34 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x5ad6840, nresults=-1) at ldo.c:319
#35 0x0000000000411d18 in luaV_execute (L=0x10fd010, nexeccalls=4) at lvm.c:608
#36 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x5ad6750, nResults=2) at ldo.c:377
#37 0x0000000000405c26 in lua_call (L=0x36e5a88, nargs=21295080, nresults=60317) at lapi.c:782
#38 0x00007f03b49afd3d in luaevent_callback () from /usr/lib/lua/5.1/luaevent/core.so
---Type <return> to continue, or q <return> to quit---
#39 0x00007f03b456e344 in event_base_loop () from /usr/lib/libevent-1.4.so.2
#40 0x00007f03b49b03bc in ?? () from /usr/lib/lua/5.1/luaevent/core.so
#41 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x12cb0d0, nresults=0) at ldo.c:319
#42 0x0000000000411e11 in luaV_execute (L=0x10fd010, nexeccalls=1) at lvm.c:587
#43 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x12cb0c0, nResults=-1) at ldo.c:377
#44 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c0783d0) at ldo.c:116
#45 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463
#46 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#47 0x00000000004175dc in luaB_xpcall (L=0x10fd010) at lbaselib.c:389
#48 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x12cb0a0, nresults=-1) at ldo.c:319
#49 0x0000000000411e11 in luaV_execute (L=0x10fd010, nexeccalls=2) at lvm.c:587
#50 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x10fd410, nResults=-1) at ldo.c:377
#51 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c0786a0) at ldo.c:116
#52 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463
#53 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821
#54 0x0000000000404276 in docall (L=0x10fd010, narg=0, clear=0) at lua.c:102
#55 0x0000000000404cd3 in handle_script (L=0x10fd010) at lua.c:250
#56 pmain (L=0x10fd010) at lua.c:362
#57 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x10fd3e0, nresults=0) at ldo.c:319
#58 0x0000000000408ba9 in luaD_call (L=0x10fd010, func=0x10fd3e0, nResults=0) at ldo.c:376
#59 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405b60 <f_Ccall>, ud=0x7fff5c078940) at ldo.c:116
#60 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463
#61 0x00000000004059d5 in lua_cpcall (L=0x36e5a88, func=<value optimized out>, ud=<value optimized out>) at lapi.c:856
#62 0x00000000004041ad in main (argc=2, argv=0x7fff5c078a78) at lua.c:387
MattJ
on
Ok, so my theory was incorrect, since it still happens with libevent. Oh well. I'll look into this and see what I can dig up.
Changes
tags Status-Accepted
MattJ
on
Hi,
A thought struck me yesterday - you're using Debian stable with LuaDBI, but the LuaDBI package doesn't currently install on squeeze due to dependency errors (see issue #243) - how did you overcome those?
hexxington
on
It's an upgrade from Lenny, so the Lenny libmysqlclient15off package is still installed.
MattJ
on
Hi, are these crashes still affecting you? Unfortunately I've never been able to reproduce the problem, and no-one else has reported anything similar. I'm stumped. :(
A post I made to the SQLite mailing list at the time didn't really bring forth any advice - best guess was memory corruption. But I have no idea what from.
MattJ
on
I'm closing this for now as we seem to have reached a dead-end. These issues haven't been reported anywhere else, and I can't reproduce them. Switch it off and back on, or reinstall Windows.
Let me know if you have any further info that might help.
After an indeterminate amount of time (2 days on one core file, 5 days on the next) on a busy server, Prosody is crashing in sqlite3 #0 sqlite3RunParser (pParse=0x5431c28, zSql=0x34151d8 "SELECT * FROM `prosody` WHERE `host`=? AND `user`=? AND `store`=?", pzErrMsg=<value optimized out>) at sqlite3.c:103537 #1 0x00007f93365f057c in sqlite3Prepare (db=0x25b7a98, zSql=<value optimized out>, nBytes=65, saveSqlFlag=<value optimized out>, pReprepare=0x0, ppStmt=<value optimized out>, pzTail=0x0) at sqlite3.c:86950 #2 0x00007f93365f0979 in sqlite3LockAndPrepare (db=0x25b7a98, zSql=<value optimized out>, nBytes=65, saveSqlFlag=1, pOld=0x0, ppStmt=0x45e0830, pzTail=0x0) at sqlite3.c:87052 #3 0x00007f93365f0c08 in sqlite3_prepare_v2 (db=0x0, zSql=0xd99d32e2b35a1041 <Address 0xd99d32e2b35a1041 out of bounds>, nBytes=68528559, ppStmt=0x7c3e, pzTail=<value optimized out>) at sqlite3.c:87127 #4 0x00007f9336829eac in dbd_sqlite3_statement_create () from /usr/lib/lua/5.1/dbdsqlite3.so #5 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0xb92c770, nresults=2) at ldo.c:319 #6 0x0000000000411e11 in luaV_execute (L=0x1ef5010, nexeccalls=2) at lvm.c:587 #7 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0xb92c720, nResults=-1) at ldo.c:377 #8 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415adf0) at ldo.c:116 #9 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463 #10 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #11 0x00000000004175dc in luaB_xpcall (L=0x1ef5010) at lbaselib.c:389 #12 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0xb92c700, nresults=3) at ldo.c:319 #13 0x0000000000411e11 in luaV_execute (L=0x1ef5010, nexeccalls=11) at lvm.c:587 #14 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0xb92c070, nResults=-1) at ldo.c:377 #15 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415b0c0) at ldo.c:116 #16 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463 #17 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #18 0x00000000004175dc in luaB_xpcall (L=0x1ef5010) at lbaselib.c:389 #19 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0xb92c050, nresults=-1) at ldo.c:319 #20 0x0000000000411d18 in luaV_execute (L=0x1ef5010, nexeccalls=2) at lvm.c:608 #21 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0xb92bfe0, nResults=0) at ldo.c:377 #22 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415b390) at ldo.c:116 #23 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463 #24 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=2, nresults=0, errfunc=<value optimized out>) at lapi.c:821 #25 0x00007f93386b7527 in ?? () from /usr/lib/lua/5.1/lxp.so #26 0x00007f9338497aa3 in ?? () from /usr/lib/libexpat.so.1 #27 0x00007f933849891e in ?? () from /usr/lib/libexpat.so.1 #28 0x00007f9338490fc2 in XML_ParseBuffer () from /usr/lib/libexpat.so.1 #29 0x00007f93386b81e8 in ?? () from /usr/lib/lua/5.1/lxp.so #30 0x00007f93386b8513 in ?? () from /usr/lib/lua/5.1/lxp.so #31 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0xb92bfa0, nresults=-1) at ldo.c:319 #32 0x0000000000411d18 in luaV_execute (L=0x1ef5010, nexeccalls=4) at lvm.c:608 #33 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0x185d2030, nResults=-1) at ldo.c:377 #34 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415d880) at ldo.c:116 #35 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463 #36 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #37 0x00000000004175dc in luaB_xpcall (L=0x1ef5010) at lbaselib.c:389 #38 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0x185d2010, nresults=-1) at ldo.c:319 #39 0x0000000000411e11 in luaV_execute (L=0x1ef5010, nexeccalls=2) at lvm.c:587 #40 0x0000000000408c05 in luaD_call (L=0x1ef5010, func=0x1ef5410, nResults=-1) at ldo.c:377 #41 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405bf0 <f_call>, ud=0x7fff0415db50) at ldo.c:116 #42 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463 #43 0x0000000000405a32 in lua_pcall (L=0x1ef5010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #44 0x0000000000404276 in docall (L=0x1ef5010, narg=0, clear=0) at lua.c:102 #45 0x0000000000404cd3 in handle_script (L=0x1ef5010) at lua.c:250 #46 pmain (L=0x1ef5010) at lua.c:362 #47 0x0000000000408696 in luaD_precall (L=0x1ef5010, func=0x1ef53e0, nresults=0) at ldo.c:319 #48 0x0000000000408ba9 in luaD_call (L=0x1ef5010, func=0x1ef53e0, nResults=0) at ldo.c:376 ---Type <return> to continue, or q <return> to quit--- #49 0x0000000000408287 in luaD_rawrunprotected (L=0x1ef5010, f=0x405b60 <f_Ccall>, ud=0x7fff0415ddf0) at ldo.c:116 #50 0x0000000000408305 in luaD_pcall (L=0x0, func=0xd99d32e2b35a1041, u=0x7fff0415a9af, old_top=0, ef=140270251435656) at ldo.c:463 #51 0x00000000004059d5 in lua_cpcall (L=0x0, func=<value optimized out>, ud=<value optimized out>) at lapi.c:856 #52 0x00000000004041ad in main (argc=2, argv=0x7fff0415df28) at lua.c:387 #0 sqlite3RunParser (pParse=0xb375878, zSql=0x7fd9609aa043 "BEGIN TRANSACTION", pzErrMsg=<value optimized out>) at sqlite3.c:103537 #1 0x00007fd960770842 in sqlite3Prepare (db=0x128ae58, zSql=<value optimized out>, nBytes=-1, saveSqlFlag=<value optimized out>, pReprepare=0x0, ppStmt=<value optimized out>, pzTail=0x7fffe7ead8b8) at sqlite3.c:86957 #2 0x00007fd960770979 in sqlite3LockAndPrepare (db=0x128ae58, zSql=<value optimized out>, nBytes=-1, saveSqlFlag=0, pOld=0x0, ppStmt=0x7fffe7ead8b0, pzTail=0x7fffe7ead8b8) at sqlite3.c:87052 #3 0x00007fd960770dd5 in sqlite3_prepare (db=0x0, zSql=0x56118a2e567a4f02 <Address 0x56118a2e567a4f02 out of bounds>, nBytes=0, ppStmt=0x0, pzTail=<value optimized out>) at sqlite3.c:87115 #4 0x00007fd960777cac in sqlite3_exec (db=0x128ae58, zSql=0x7fd9609aa043 "BEGIN TRANSACTION", xCallback=0, pArg=<value optimized out>, pzErrMsg=<value optimized out>) at sqlite3.c:83756 #5 0x00007fd9609a9063 in ?? () from /usr/lib/lua/5.1/dbdsqlite3.so #6 0x00007fd9609a9484 in try_begin_transaction () from /usr/lib/lua/5.1/dbdsqlite3.so #7 0x00007fd9609a9cfd in ?? () from /usr/lib/lua/5.1/dbdsqlite3.so #8 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x3777500, nresults=2) at ldo.c:319 #9 0x0000000000411e11 in luaV_execute (L=0x1173010, nexeccalls=2) at lvm.c:587 #10 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x3777490, nResults=-1) at ldo.c:377 #11 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eadc30) at ldo.c:116 #12 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463 #13 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #14 0x00000000004175dc in luaB_xpcall (L=0x1173010) at lbaselib.c:389 #15 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x3777470, nresults=3) at ldo.c:319 #16 0x0000000000411e11 in luaV_execute (L=0x1173010, nexeccalls=11) at lvm.c:587 #17 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x3776de0, nResults=-1) at ldo.c:377 #18 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eadf00) at ldo.c:116 #19 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463 #20 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #21 0x00000000004175dc in luaB_xpcall (L=0x1173010) at lbaselib.c:389 #22 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x3776dc0, nresults=-1) at ldo.c:319 #23 0x0000000000411d18 in luaV_execute (L=0x1173010, nexeccalls=2) at lvm.c:608 #24 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x3776d50, nResults=0) at ldo.c:377 #25 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eae1d0) at ldo.c:116 #26 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463 #27 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=2, nresults=0, errfunc=<value optimized out>) at lapi.c:821 #28 0x00007fd962837527 in ?? () from /usr/lib/lua/5.1/lxp.so #29 0x00007fd962617aa3 in ?? () from /usr/lib/libexpat.so.1 #30 0x00007fd96261891e in ?? () from /usr/lib/libexpat.so.1 #31 0x00007fd962610fc2 in XML_ParseBuffer () from /usr/lib/libexpat.so.1 #32 0x00007fd9628381e8 in ?? () from /usr/lib/lua/5.1/lxp.so #33 0x00007fd962838513 in ?? () from /usr/lib/lua/5.1/lxp.so #34 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x3776d10, nresults=-1) at ldo.c:319 #35 0x0000000000411d18 in luaV_execute (L=0x1173010, nexeccalls=4) at lvm.c:608 #36 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x75c94b0, nResults=-1) at ldo.c:377 #37 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eb06c0) at ldo.c:116 #38 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463 #39 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #40 0x00000000004175dc in luaB_xpcall (L=0x1173010) at lbaselib.c:389 #41 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x75c9490, nresults=-1) at ldo.c:319 #42 0x0000000000411e11 in luaV_execute (L=0x1173010, nexeccalls=2) at lvm.c:587 #43 0x0000000000408c05 in luaD_call (L=0x1173010, func=0x1173410, nResults=-1) at ldo.c:377 #44 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405bf0 <f_call>, ud=0x7fffe7eb0990) at ldo.c:116 #45 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463 #46 0x0000000000405a32 in lua_pcall (L=0x1173010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #47 0x0000000000404276 in docall (L=0x1173010, narg=0, clear=0) at lua.c:102 #48 0x0000000000404cd3 in handle_script (L=0x1173010) at lua.c:250 #49 pmain (L=0x1173010) at lua.c:362 ---Type <return> to continue, or q <return> to quit--- #50 0x0000000000408696 in luaD_precall (L=0x1173010, func=0x11733e0, nresults=0) at ldo.c:319 #51 0x0000000000408ba9 in luaD_call (L=0x1173010, func=0x11733e0, nResults=0) at ldo.c:376 #52 0x0000000000408287 in luaD_rawrunprotected (L=0x1173010, f=0x405b60 <f_Ccall>, ud=0x7fffe7eb0c30) at ldo.c:116 #53 0x0000000000408305 in luaD_pcall (L=0x0, func=0x56118a2e567a4f02, u=0x0, old_top=0, ef=140571605362312) at ldo.c:463 #54 0x00000000004059d5 in lua_cpcall (L=0x0, func=<value optimized out>, ud=<value optimized out>) at lapi.c:856 #55 0x00000000004041ad in main (argc=2, argv=0x7fffe7eb0d68) at lua.c:387 There's nothing at all being written to prosody.err/prosody.log at failure time, so no useful stack traces from lua itself.
What platform are you on, and what version of the libsqlite3 library do you have?
ChangesAnd what signal is it dying with? :)
Looks like general protection faults. Debian Squeeze on AMD64, SQLite 3.7.3
Another sqlite-based crash. #0 0x00007f03b32a90f3 in closeAllCursors (p=0x36e5a88) at sqlite3.c:56426 #1 sqlite3VdbeHalt (p=0x36e5a88) at sqlite3.c:56947 #2 0x00007f03b32eaf6a in sqlite3VdbeExec (p=0x36e5a88) at sqlite3.c:62736 #3 0x00007f03b32d1150 in sqlite3Step (pStmt=0x36e5a88) at sqlite3.c:58454 #4 sqlite3_step (pStmt=0x36e5a88) at sqlite3.c:58518 #5 0x00007f03b32d7d02 in sqlite3_exec (db=0x144efe8, zSql=0x7f03b350a00f "COMMIT TRANSACTION", xCallback=0, pArg=<value optimized out>, pzErrMsg=<value optimized out>) at sqlite3.c:83772 #6 0x00007f03b3509063 in ?? () from /usr/lib/lua/5.1/dbdsqlite3.so #7 0x00007f03b35090ec in ?? () from /usr/lib/lua/5.1/dbdsqlite3.so #8 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x5ad6ec0, nresults=1) at ldo.c:319 #9 0x0000000000411e11 in luaV_execute (L=0x10fd010, nexeccalls=1) at lvm.c:587 #10 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x5ad6e90, nResults=-1) at ldo.c:377 #11 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c075700) at ldo.c:116 #12 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463 #13 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #14 0x00000000004175dc in luaB_xpcall (L=0x10fd010) at lbaselib.c:389 #15 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x5ad6e70, nresults=3) at ldo.c:319 #16 0x0000000000411e11 in luaV_execute (L=0x10fd010, nexeccalls=9) at lvm.c:587 #17 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x5ad6910, nResults=-1) at ldo.c:377 #18 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c0759d0) at ldo.c:116 #19 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463 #20 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #21 0x00000000004175dc in luaB_xpcall (L=0x10fd010) at lbaselib.c:389 #22 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x5ad68f0, nresults=-1) at ldo.c:319 #23 0x0000000000411d18 in luaV_execute (L=0x10fd010, nexeccalls=2) at lvm.c:608 #24 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x5ad6880, nResults=0) at ldo.c:377 #25 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c075ca0) at ldo.c:116 #26 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463 #27 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=2, nresults=0, errfunc=<value optimized out>) at lapi.c:821 #28 0x00007f03b6234527 in ?? () from /usr/lib/lua/5.1/lxp.so #29 0x00007f03b6014aa3 in ?? () from /usr/lib/libexpat.so.1 #30 0x00007f03b601591e in ?? () from /usr/lib/libexpat.so.1 #31 0x00007f03b600dfc2 in XML_ParseBuffer () from /usr/lib/libexpat.so.1 #32 0x00007f03b62351e8 in ?? () from /usr/lib/lua/5.1/lxp.so #33 0x00007f03b6235513 in ?? () from /usr/lib/lua/5.1/lxp.so #34 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x5ad6840, nresults=-1) at ldo.c:319 #35 0x0000000000411d18 in luaV_execute (L=0x10fd010, nexeccalls=4) at lvm.c:608 #36 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x5ad6750, nResults=2) at ldo.c:377 #37 0x0000000000405c26 in lua_call (L=0x36e5a88, nargs=21295080, nresults=60317) at lapi.c:782 #38 0x00007f03b49afd3d in luaevent_callback () from /usr/lib/lua/5.1/luaevent/core.so ---Type <return> to continue, or q <return> to quit--- #39 0x00007f03b456e344 in event_base_loop () from /usr/lib/libevent-1.4.so.2 #40 0x00007f03b49b03bc in ?? () from /usr/lib/lua/5.1/luaevent/core.so #41 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x12cb0d0, nresults=0) at ldo.c:319 #42 0x0000000000411e11 in luaV_execute (L=0x10fd010, nexeccalls=1) at lvm.c:587 #43 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x12cb0c0, nResults=-1) at ldo.c:377 #44 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c0783d0) at ldo.c:116 #45 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463 #46 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #47 0x00000000004175dc in luaB_xpcall (L=0x10fd010) at lbaselib.c:389 #48 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x12cb0a0, nresults=-1) at ldo.c:319 #49 0x0000000000411e11 in luaV_execute (L=0x10fd010, nexeccalls=2) at lvm.c:587 #50 0x0000000000408c05 in luaD_call (L=0x10fd010, func=0x10fd410, nResults=-1) at ldo.c:377 #51 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405bf0 <f_call>, ud=0x7fff5c0786a0) at ldo.c:116 #52 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463 #53 0x0000000000405a32 in lua_pcall (L=0x10fd010, nargs=0, nresults=-1, errfunc=<value optimized out>) at lapi.c:821 #54 0x0000000000404276 in docall (L=0x10fd010, narg=0, clear=0) at lua.c:102 #55 0x0000000000404cd3 in handle_script (L=0x10fd010) at lua.c:250 #56 pmain (L=0x10fd010) at lua.c:362 #57 0x0000000000408696 in luaD_precall (L=0x10fd010, func=0x10fd3e0, nresults=0) at ldo.c:319 #58 0x0000000000408ba9 in luaD_call (L=0x10fd010, func=0x10fd3e0, nResults=0) at ldo.c:376 #59 0x0000000000408287 in luaD_rawrunprotected (L=0x10fd010, f=0x405b60 <f_Ccall>, ud=0x7fff5c078940) at ldo.c:116 #60 0x0000000000408305 in luaD_pcall (L=0x36e5a88, func=0x144efe8, u=0x40302010000eb9d, old_top=0, ef=21971992) at ldo.c:463 #61 0x00000000004059d5 in lua_cpcall (L=0x36e5a88, func=<value optimized out>, ud=<value optimized out>) at lapi.c:856 #62 0x00000000004041ad in main (argc=2, argv=0x7fff5c078a78) at lua.c:387
Ok, so my theory was incorrect, since it still happens with libevent. Oh well. I'll look into this and see what I can dig up.
ChangesHi, A thought struck me yesterday - you're using Debian stable with LuaDBI, but the LuaDBI package doesn't currently install on squeeze due to dependency errors (see issue #243) - how did you overcome those?
It's an upgrade from Lenny, so the Lenny libmysqlclient15off package is still installed.
Hi, are these crashes still affecting you? Unfortunately I've never been able to reproduce the problem, and no-one else has reported anything similar. I'm stumped. :( A post I made to the SQLite mailing list at the time didn't really bring forth any advice - best guess was memory corruption. But I have no idea what from.
I'm closing this for now as we seem to have reached a dead-end. These issues haven't been reported anywhere else, and I can't reproduce them. Switch it off and back on, or reinstall Windows. Let me know if you have any further info that might help.
Changes