<div dir="ltr"><div>Core was generated by `/usr/local/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f /usr/local/etc/ka'.</div><div>Program terminated with signal SIGSEGV, Segmentation fault.</div><div>#0 0x00000000005b31c2 in rec_lock_set_release (lset=0x0, i=0) at core/locking.c:154</div><div>154<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>rec_lock_release(&lset->locks[i]);</div><div>(gdb) bt full</div><div>#0 0x00000000005b31c2 in rec_lock_set_release (lset=0x0, i=0) at core/locking.c:154</div><div>No locals.</div><div>#1 0x000000000056424c in receive_msg (</div><div> buf=0xa439c0 <buf> "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 94.130.73.135;branch=z9hG4bKea4e.fcaca0cb6a039868d0cbb85929bd3b59.0;received=140.82.63.219\r\nVia: SIP/2.0/UDP 94.130.106.214:5060;received=94.130.106.214;rport=5060;bra"...,</div><div> len=598, rcv_info=0x7ffc7b4c07b0) at core/receive.c:401</div><div> msg = 0x7f53bd483ee8</div><div> ctx = {rec_lev = 0, run_flags = 0, last_retcode = 0, jmp_env = {{__jmpbuf = {139997642541328, 139997652819968, 8317129406208278527, 6746573, 0, 139997646292064, 0, 140722377065504}, __mask_was_saved = 575228262, __saved_mask = {</div><div> __val = {598, 7908744, 140722377067632, 0, 0, 140722377066640, 139997642804455, 799, 206158430256, 140722377065824, 140722377065584, 0, 139997642804770, 5, 14631, 7908744}}}}}</div><div> bctx = 0x0</div><div> ret = 1</div><div> stats_on = 0</div><div> tvb = {tv_sec = 1522765677, tv_usec = 355411}</div><div> tve = {tv_sec = 1522728960, tv_usec = 0}</div><div> tz = {tz_minuteswest = 0, tz_dsttime = 0}</div><div> diff = 0</div><div> inb = {</div><div> s = 0xa439c0 <buf> "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 94.130.73.135;branch=z9hG4bKea4e.fcaca0cb6a039868d0cbb85929bd3b59.0;received=140.82.63.219\r\nVia: SIP/2.0/UDP 94.130.106.214:5060;received=94.130.106.214;rport=5060;bra"..., len = 598}</div><div> netinfo = {data = {s = 0x7ffc7b4c05a7 "ia: SIP/2.0/UDP 94.130.73.135;branch=z9hG4bKea4e.fcaca0cb6a039868d0cbb85929bd3b59.0quests\005", len = 0}, rcv = 0x0, dst = 0x0}</div><div> keng = 0xa59a40 <_sr_kemi_eng_list></div><div> evp = {data = 0x7ffc7b4c0380, rcv = 0x7ffc7b4c07b0, dst = 0x0}</div><div> cidlockidx = 0</div><div> cidlockset = 0</div><div> __FUNCTION__ = "receive_msg"</div><div>#2 0x0000000000459b21 in udp_rcv_loop () at core/udp_server.c:554</div><div> len = 598</div><div> buf = "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 94.130.73.135;branch=z9hG4bKea4e.fcaca0cb6a039868d0cbb85929bd3b59.0;received=140.82.63.219\r\nVia: SIP/2.0/UDP 94.130.106.214:5060;received=94.130.106.214;rport=5060;bra"...</div><div> tmp = 0x7ffc7b4c09d0 "\220\vL{\374\177"</div><div> from = 0x7f53bd4820d0</div><div> fromlen = 16</div><div> ri = {src_ip = {af = 2, len = 4, u = {addrl = {140721838909616, 0}, addr32 = {1530423472, 32764, 0, 0}, addr16 = {26800, 23352, 32764, 0, 0, 0, 0, 0}, addr = "\260h8[\374\177\000\000\000\000\000\000\000\000\000"}}, dst_ip = {</div><div> af = 2, len = 4, u = {addrl = {3678360204, 0}, addr32 = {3678360204, 0, 0, 0}, addr16 = {21132, 56127, 0, 0, 0, 0, 0, 0}, addr = "\214R?\333", '\000' <repeats 11 times>}}, src_port = 51259, dst_port = 5060,</div><div> proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\310;\260h8[\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 15304, sin_addr = {s_addr = 1530423472},</div><div> sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 15304, sin6_flowinfo = 1530423472, sin6_addr = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0},</div><div> __u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}, bind_address = 0x7f53bd474080, proto = 1 '\001'}</div><div> evp = {data = 0x0, rcv = 0x0, dst = 0x0}</div><div> printbuf = "SIP/2.0 200 OK 0D 0A Via: SIP/2.0/UDP 94.130.73.135;branch=z9hG4bKea4e.fcaca0cb6a039868d0cbb85929bd3b59.0quests\005\000\000\000\000\000\000\000'9\000\000\000\000\000\000\210\255x\000\000\000\000\000\312\334طS\177\000\000ck(packe\273\a\255\267S\177\000\000from-dom\020\002\000\000\000\000\000\000subscrib\000\000\000\000\000\000\000\000\360fB\001\000\000\000\000\377\377\377\377"...</div><div> i = 100</div><div> j = 106</div><div> l = 4</div><div> __FUNCTION__ = "udp_rcv_loop"</div><div>#3 0x000000000042339d in main_loop () at main.c:1628</div><div> i = 0</div><div> pid = 0</div><div> si = 0x7f53bd474080</div><div> si_desc = "udp receiver child=0 sock=<a href="http://140.82.63.219:5060">140.82.63.219:5060</a>\000\000\000\000\220\vL{\374\177\000\000\347\314ĽS\177\000\000 \tL{\374\177\000\000\060\000\000\000\060\000\000\000\340\tL{\374\177\000\000\020\tL{\374\177", '\000' <repeats 14 times>, "\001", '\000' <repeats 11 times>, "!9\000\000\000\000\000"</div><div> nrprocs = 4</div><div> woneinit = 1</div><div> __FUNCTION__ = "main_loop"</div><div>#4 0x000000000042a8a8 in main (argc=15, argv=0x7ffc7b4c0c78) at main.c:2650</div><div> cfg_stream = 0x1376010</div><div>---Type <return> to continue, or q <return> to quit---</div><div> c = -1</div><div> r = 0</div><div> tmp = 0x7ffc7b4c0f12 ""</div><div> tmp_len = 32595</div><div> port = -1103316627</div><div> proto = 0</div><div> options = 0x746dd0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"</div><div> ret = -1</div><div> seed = 1592049986</div><div> rfd = 4</div><div> debug_save = 0</div><div> debug_flag = 0</div><div> dont_fork_cnt = 0</div><div> n_lst = 0x7ffc7b4c0b30</div><div> p = 0x7ffc7b4c0cf8 "8\017L{\374\177"</div><div> st = {st_dev = 15, st_ino = 285409, st_nlink = 2, st_mode = 16877, st_uid = 107, st_gid = 112, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1522765525, tv_nsec = 737178002},</div><div> st_mtim = {tv_sec = 1522765595, tv_nsec = 469418892}, st_ctim = {tv_sec = 1522765595, tv_nsec = 469418892}, __glibc_reserved = {0, 0, 0}}</div><div> __FUNCTION__ = "main"</div><div>(gdb)</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-03 14:05 GMT+03:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Can you run as root in the terminal:</p>
<p>ulimit -c unlimited</p>
<p>Start kamailio in the same terminal, adding extra parameters '-w
/tmp'</p>
<p>Reproduce the case and you should get a core file in /tmp if
kamailio crashes. Grab the backtrace with gdb and send it here.</p>
<p>Cheers,<br>
Daniel<br>
</p><div><div class="h5">
<br>
<div class="m_-2957590318306376904moz-cite-prefix">On 03.04.18 11:48, Igor Olhovskiy
wrote:<br>
</div>
<blockquote type="cite">
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Ok.
<div><br>
</div>
<div>This time other issue</div>
<div><br>
</div>
<div>
<div>LUA {SUBSCRIBE}: 7(14332) DEBUG: app_lua
[app_lua_api.c:716]: app_lua_run_ex(): ksr error call from
Lua: ~~ksr~exit~~</div>
<div>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</div>
<div>LUA {SUBSCRIBE}: 7(14332) INFO: <core>
[core/receive.c:344]: receive_msg(): request-route executed
in: 3639 usec</div>
<div>LUA {SUBSCRIBE}: 7(14332) DEBUG: <core>
[core/usr_avp.c:636]: destroy_avp_list(): destroying list
(nil)</div>
<div>LUA {SUBSCRIBE}: 7(14332) DEBUG: <core>
[core/usr_avp.c:636]: destroy_avp_list(): destroying list
(nil)</div>
<div>LUA {SUBSCRIBE}: 7(14332) DEBUG: <core>
[core/usr_avp.c:636]: destroy_avp_list(): destroying list
(nil)</div>
<div>LUA {SUBSCRIBE}: 7(14332) DEBUG: <core>
[core/usr_avp.c:636]: destroy_avp_list(): destroying list
(nil)</div>
<div>LUA {SUBSCRIBE}: 7(14332) DEBUG: <core>
[core/usr_avp.c:636]: destroy_avp_list(): destroying list
(nil)</div>
<div>LUA {SUBSCRIBE}: 7(14332) DEBUG: <core>
[core/usr_avp.c:636]: destroy_avp_list(): destroying list
(nil)</div>
<div>LUA {SUBSCRIBE}: 7(14332) DEBUG: <core>
[core/xavp.c:446]: xavp_destroy_list(): destroying xavp list
(nil)</div>
<div>LUA {SUBSCRIBE}: 7(14332) DEBUG: <core>
[core/receive.c:448]: receive_msg(): cleaning up</div>
<div>kernel: [263424.485205] kamailio[14333]: segfault at 8 ip
00000000005b31c2 sp 00007fffc1777210 error 4 in
kamailio[400000+438000]</div>
</div>
<div><br>
</div>
<div>Kamailio just segfault on reply route on SUBSCRIBE?</div>
<div><br>
</div>
<div>What to add to compile options to make this message more
clear?</div>
</div>
<div name="messageSignatureSection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
Regards, Igor</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
On Apr 3, 2018, 11:14 AM +0300, Daniel-Constantin Mierla
<a class="m_-2957590318306376904moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com" target="_blank"><miconda@gmail.com></a>, wrote:<br>
<blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #1abc9c">
<p>Hello,</p>
<p>indeed, I did a rename to make it more clear the purpose of
a drop-related function, breaking the use from other
modules.</p>
<p>I pushed the commits to fix the issue, try again with
latest master.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="m_-2957590318306376904moz-cite-prefix">On 03.04.18 10:01, Igor Olhovskiy
wrote:<br>
</div>
<blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #e67e22">
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Hi!
<div><br>
</div>
<div>As of now app_lua is could not be loaded by Kamailio
at all. </div>
<div><br>
</div>
<div>
<div>kamailio: ERROR: <core>
[core/sr_module.c:582]: load_module(): could not open
module
</usr/local/lib64/kamailio/<wbr>modules/app_lua.so>:
/usr/local/lib64/kamailio/<wbr>modules/app_lua.so:
undefined symbol: sr_kemi_core_drop</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>PS:</div>
<div>Latest commit on git:</div>
<div>commit a5dd60c8d7e04731f12108838a3c82<wbr>149e04ef9c
Author: Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">mailto:miconda@gmail.com</a>>
Date: Tue Apr 3 09:27:19 2018 +0200 ipops: mask subnet
address for ipv6 comparison - coherent with ipv4
behaviou<br>
</div>
</div>
<div name="messageSignatureSection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
Regards, Igor</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
On Apr 2, 2018, 9:18 AM +0300, Daniel-Constantin Mierla <a class="m_-2957590318306376904moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com" target="_blank"><miconda@gmail.com></a>,
wrote:<br>
<blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #3498db">
<p>Hello,</p>
<p>do you have pkg-config installed? This is a tool that
helps locating libs and include files.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="m_-2957590318306376904moz-cite-prefix">On 31.03.18 11:13, Igor
Olhovskiy wrote:<br>
</div>
<blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #d35400">
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Hi!
<div><br>
</div>
<div>A bit dumb question - how to specify lua.h file
path to make command? It looks in </div>
<div><br>
</div>
<div>
<div>ls: cannot access /usr/local/lib/liblua*: No
such file or directory</div>
<div>ls: cannot access /usr/local/lib/liblua*: No
such file or directory</div>
<div>CC (gcc) [M app_lua.so] <span class="m_-2957590318306376904Apple-tab-span" style="white-space:pre-wrap"></span>app_lua_mod.o</div>
<div>In file included from app_lua_mod.c:34:0:</div>
<div>app_lua_api.h:25:17: fatal error: lua.h: No
such file or directory</div>
<div> #include <lua.h></div>
<div> ^</div>
</div>
<div><br>
</div>
<div>But i’ve installed via apt-get install
liblua5.2-dev, and lua.h is located at
/usr/include/lua5.2/</div>
</div>
<div name="messageSignatureSection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
Regards, Igor</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
On Mar 30, 2018, 6:41 PM +0300, Daniel-Constantin
Mierla <a class="m_-2957590318306376904moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com" target="_blank"><miconda@gmail.com></a>,
wrote:<br>
<blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #34495e">
<p>Hello,</p>
<p>can you test with master branch, I pushed a
commit for it -- if all ok, I will backport.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="m_-2957590318306376904moz-cite-prefix">On 30.03.18 14:47,
Igor Olhovskiy wrote:<br>
</div>
<blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #2ecc71">
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Hi!
<div><br>
</div>
<div>Seems calling function
KSR.sqlops.sql_num_rows(«sql_<wbr>res») crashes
Kamailio. At least I got this at 5.1.2 from
debian repos with LUA.</div>
<div><br>
</div>
<div>Getting smth like</div>
<div><br>
</div>
<div>dev1 kernel: [5780693.247255]
kamailio[20659]: segfault at 50b300000004 ip
00007f34d2f46fd6 sp 00007ffe1f0ac310 error 4
in sqlops.so[7f34d2f42000+1c000]<br>
</div>
</div>
<div name="messageSignatureSection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
Regards, Igor</div>
<br>
<fieldset class="m_-2957590318306376904mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_-2957590318306376904moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_-2957590318306376904moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a>
</pre>
</blockquote>
<br>
<pre class="m_-2957590318306376904moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</blockquote>
</div>
</blockquote>
<br>
<pre class="m_-2957590318306376904moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</blockquote>
</div>
</blockquote>
<br>
<pre class="m_-2957590318306376904moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</blockquote>
</div>
</blockquote>
<br>
<pre class="m_-2957590318306376904moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_-2957590318306376904moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best regards,<div>Igor</div></div></div>
</div>