<HTML><BODY><br>Hello!<br><br><span id="result_box" lang="en"><span>I was helped to make changes to the source file /src/modules/drouting/prefix_tree.c line 101</span><br><span>It was</span><br><span>if (NULL == prefix)</span><br><span>has become</span><br><span>if (NULL == prefix || NULL == prefix-> s).<br><br></span></span><br><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        Понедельник, 10 сентября 2018, 23:49 +03:00 от Евгений Голей <goley_ev_sp@mail.ru>:<br>
        <br>
        <div id="">






<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div>
                <base target="_self" href="https://e.mail.ru/">
                
            <div id="style_15366125760000000224_BODY"><div class="class_1536809654">
<br><br><pre id="tw-target-text_mailru_css_attribute_postfix" class="tw-data-text_mailru_css_attribute_postfix tw-ta_mailru_css_attribute_postfix tw-text-small_mailru_css_attribute_postfix" style="text-align: left;height: 72px;" dir="ltr" data-mce-style="text-align: left;height: 72px;"><span lang="en">Good evening, look, did I do the right thing ?<br><br><br></span>[user@sip]# gdb /usr/local/kamailio515/sbin/gwkamailio -c /usr/local/kamailio515/core.5138<br></pre>GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7<br>Copyright (C) 2013 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "x86_64-redhat-linux-gnu".<br>For bug reporting instructions, please see:<br><<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>...<br>Reading symbols from /usr/local/kamailio515/sbin/gwkamailio...done.<br>[New LWP 5138]<br>[Thread debugging using libthread_db enabled]<br>Using host libthread_db library "/lib64/libthread_db.so.1".<br>Core was generated by `/usr/local/kamailio515/sbin/gwkamailio -DD -P /var/run/kamailio/gwkamailio515.p'.<br>Program terminated with signal 11, Segmentation fault.<br>#0  0x00007f8b28c3ccfb in get_prefix (ptree=0x7f8b2ba08728, prefix=0x7fffcdf731d0, rgid=1) at prefix_tree.c:126<br>126                     idx = get_node_index(*tmp);<br>Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7_3.1.x86_64 hiredis-0.12.1-1.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libcom_err-1.42.9-9.el7.x86_64 libgcc-4.8.5-16.el7_4.2.x86_64 libselinux-2.5-6.el7.x86_64 libstdc++-4.8.5-16.el7_4.2.x86_64 openssl-libs-1.0.2k-8.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-17.el7.x86_64<br>(gdb)<br><br><br><pre id="tw-target-text_mailru_css_attribute_postfix" class="tw-data-text_mailru_css_attribute_postfix tw-ta_mailru_css_attribute_postfix tw-text-small_mailru_css_attribute_postfix" style="text-align: left;height: 72px;" dir="ltr" data-mce-style="text-align: left;height: 72px;"><span lang="en">Where should I place this text?</span></pre><blockquote style="border-left:1px solid #0857A6;margin:10px;padding:0 0 0 10px;">
        Понедельник, 10 сентября 2018, 23:08 +03:00 от Henning Westerholt <<a href="mailto:hw@kamailio.org">hw@kamailio.org</a>>:<br>
        <br>
        <div id="">






<div class="js-helper_mailru_css_attribute_postfix js-readmsg-msg_mailru_css_attribute_postfix">
        <style></style>
        <div>
                
                
            <div id="style_15366101330000000408_BODY_mailru_css_attribute_postfix">Am Montag, 10. September 2018, 20:17:27 CEST schrieb Евгений Голей:<br>
> I tried the same on versions 5.1.4 and 5.1.5. I just load the module,<br>
> without using its functions in the configuration file.<br>
> <br>
> kamailio[2725]: segfault at 0 ip 00007f7a76cc4cfb sp 00007fff4c640bb0 error<br>
> 4 in drouting.so[7f7a76cc1000+39000]<br>
> <br>
> When a crased kamailio creates a core dump, I can forward it<br>
> <br>
> What could be the reason ?<br>
<br>
Hello,<br>
<br>
this is hard to guess. Could you please open the core dump with gdb and post <br>
the backtrace (gdb bt) here? <br>
<br>
Best regards,<br>
<br>
Henning<br>
<br>
-- <br>
Henning Westerholt<br>
<a href="https://skalatan.de/blog/" target="_blank" rel=" noopener noreferrer">https://skalatan.de/blog/</a><br>
</div>
            
        
                
        </div>

        
</div>


</div>
</blockquote>
<br>
B.R.Evgeniy<br></div></div></div></div></div></blockquote></BODY></HTML>