[SR-Users] SQLOps module + KEMI

Igor Olhovskiy igorolhovskiy at gmail.com
Tue Apr 3 11:48:53 CEST 2018


Ok.

This time other issue

LUA {SUBSCRIBE}:  7(14332) DEBUG: app_lua [app_lua_api.c:716]: app_lua_run_ex(): ksr error call from Lua: ~~ksr~exit~~
LUA {SUBSCRIBE}:  7(14332) DEBUG: app_lua [app_lua_mod.c:171]: sr_kemi_config_engine_lua(): execution of route type 1 with no name returned 1
LUA {SUBSCRIBE}:  7(14332) INFO: <core> [core/receive.c:344]: receive_msg(): request-route executed in: 3639 usec
LUA {SUBSCRIBE}:  7(14332) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil)
LUA {SUBSCRIBE}:  7(14332) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil)
LUA {SUBSCRIBE}:  7(14332) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil)
LUA {SUBSCRIBE}:  7(14332) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil)
LUA {SUBSCRIBE}:  7(14332) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil)
LUA {SUBSCRIBE}:  7(14332) DEBUG: <core> [core/usr_avp.c:636]: destroy_avp_list(): destroying list (nil)
LUA {SUBSCRIBE}:  7(14332) DEBUG: <core> [core/xavp.c:446]: xavp_destroy_list(): destroying xavp list (nil)
LUA {SUBSCRIBE}:  7(14332) DEBUG: <core> [core/receive.c:448]: receive_msg(): cleaning up
kernel: [263424.485205] kamailio[14333]: segfault at 8 ip 00000000005b31c2 sp 00007fffc1777210 error 4 in kamailio[400000+438000]

Kamailio just segfault on reply route on SUBSCRIBE?

What to add to compile options to make this message more clear?

Regards, Igor

On Apr 3, 2018, 11:14 AM +0300, Daniel-Constantin Mierla <miconda at gmail.com>, wrote:
> Hello,
> indeed, I did a rename to make it more clear the purpose of a drop-related function, breaking the use from other modules.
> I pushed the commits to fix the issue, try again with latest master.
> Cheers,
> Daniel
>
> On 03.04.18 10:01, Igor Olhovskiy wrote:
> > Hi!
> >
> > As of now app_lua is could not be loaded by Kamailio at all.
> >
> > kamailio: ERROR: <core> [core/sr_module.c:582]: load_module(): could not open module </usr/local/lib64/kamailio/modules/app_lua.so>: /usr/local/lib64/kamailio/modules/app_lua.so: undefined symbol: sr_kemi_core_drop
> >
> >
> > PS:
> > Latest commit on git:
> > commit a5dd60c8d7e04731f12108838a3c82149e04ef9c Author: Daniel-Constantin Mierla <mailto:miconda at gmail.com> Date: Tue Apr 3 09:27:19 2018 +0200 ipops: mask subnet address for ipv6 comparison - coherent with ipv4 behaviou
> >
> > Regards, Igor
> >
> > On Apr 2, 2018, 9:18 AM +0300, Daniel-Constantin Mierla <miconda at gmail.com>, wrote:
> > > Hello,
> > > do you have pkg-config installed? This is a tool that helps locating libs and include files.
> > > Cheers,
> > > Daniel
> > >
> > > On 31.03.18 11:13, Igor Olhovskiy wrote:
> > > > Hi!
> > > >
> > > > A bit dumb question - how to specify lua.h file path to make command? It looks in
> > > >
> > > > ls: cannot access /usr/local/lib/liblua*: No such file or directory
> > > > ls: cannot access /usr/local/lib/liblua*: No such file or directory
> > > > CC (gcc) [M app_lua.so] app_lua_mod.o
> > > > In file included from app_lua_mod.c:34:0:
> > > > app_lua_api.h:25:17: fatal error: lua.h: No such file or directory
> > > >  #include <lua.h>
> > > >                  ^
> > > >
> > > > But i’ve installed via apt-get install liblua5.2-dev, and lua.h is located at /usr/include/lua5.2/
> > > >
> > > > Regards, Igor
> > > >
> > > > On Mar 30, 2018, 6:41 PM +0300, Daniel-Constantin Mierla <miconda at gmail.com>, wrote:
> > > > > Hello,
> > > > > can you test with master branch, I pushed a commit for it -- if all ok, I will backport.
> > > > > Cheers,
> > > > > Daniel
> > > > >
> > > > > On 30.03.18 14:47, Igor Olhovskiy wrote:
> > > > > > Hi!
> > > > > >
> > > > > > Seems calling function KSR.sqlops.sql_num_rows(«sql_res») crashes Kamailio. At least I got this at 5.1.2 from debian repos with LUA.
> > > > > >
> > > > > > Getting smth like
> > > > > >
> > > > > > dev1 kernel: [5780693.247255] kamailio[20659]: segfault at 50b300000004 ip 00007f34d2f46fd6 sp 00007ffe1f0ac310 error 4 in sqlops.so[7f34d2f42000+1c000]
> > > > > >
> > > > > > Regards, Igor
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > Kamailio (SER) - Users Mailing List
> > > > > > sr-users at lists.kamailio.org
> > > > > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> > > > >
> > > > > --
> > > > > Daniel-Constantin Mierla
> > > > > www.twitter.com/miconda -- www.linkedin.com/in/miconda
> > > > > Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
> > > > > Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
> > >
> > > --
> > > Daniel-Constantin Mierla
> > > www.twitter.com/miconda -- www.linkedin.com/in/miconda
> > > Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
> > > Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
>
> --
> Daniel-Constantin Mierla
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180403/cc5e220c/attachment.html>


More information about the sr-users mailing list