Daniel,
Just upgraded to 5.1 but kamailio now generates a core file. I'm running
debian 8.10. It seems to crash on liblua5.1.so.0 :
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `kamailio -m 1500'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f30c17f25a0 in ?? () from
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0
(gdb) backtrace
#0 0x00007f30c17f25a0 in ?? () from
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#1 0x00007f30c17f3b62 in ?? () from
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#2 0x00007f30c17e6040 in lua_settable () from
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#3 0x00007f30c17f6412 in luaL_findtable () from
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#4 0x00007f30c17f6581 in luaL_openlib () from
/usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#5 0x00007f30c1a40870 in lua_sr_kemi_register_libs () from
/usr/lib/x86_64-linux-gnu/kamailio/modules/app_lua.so
#6 0x00007f30c1a8b107 in lua_sr_openlibs () from
/usr/lib/x86_64-linux-gnu/kamailio/modules/app_lua.so
#7 0x00007f30c1a8b7c1 in lua_sr_init_probe () from
/usr/lib/x86_64-linux-gnu/kamailio/modules/app_lua.so
#8 0x00007f30c1a1797d in ?? () from
/usr/lib/x86_64-linux-gnu/kamailio/modules/app_lua.so
#9 0x0000000000549944 in ?? ()
#10 0x0000000000549c72 in init_child ()
#11 0x0000000000421498 in main_loop ()
#12 0x000000000042aab9 in main ()
Thanks,
Jan
jenus(a)cyberchaos.nl schreef op 2018-01-09 20:53:
Daniel,
Currently running kamailio 5.0.5.
Jan
Daniel-Constantin Mierla schreef op 2018-01-09 13:27:
Hello,
what version of kamailio are you using?
Cheers,
Daniel
On 07.01.18 22:14, jenus(a)cyberchaos.nl wrote:
> Hello,
>
> I'm doing some tests with a lua script and app_lua. I'm using
> sr.sqlops.query to insert records into the database but would like to
> test the exit status of the sql query. In kamailio i can do:
>
> if(!sql_query("kamailio", "INSERT INTO subscriber ..."))
>
> Is there some kind of exit status for the lua function
> sr.sqlops.query
> in order to do the same check in lua? In other words, is it possible
> to check if a sql query was successful in lua? The result seems to be
> nill in all cases for a INSERT in lua using sr.sqlops.query.
>
>
> Thanks,
>
> Jan Hazenberg
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users(a)lists.kamailio.org
>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users