[sr-dev] Kamailio segfaulting early in start-up with Kamailio git master

Daniel-Constantin Mierla miconda at gmail.com
Thu May 30 18:01:43 CEST 2013


It was a free of pv specs that was forgotten when usage of core pv cache 
was introduced for config interpreter.

I pushed a commit that should fix it.

Thanks,
Daniel

On 5/30/13 5:37 PM, Peter Dunkley wrote:
> Please disregard the bit about the listen directives - I got my test 
> configuration files mixed up.
>
> The line that causes the segmentation fault appears to be:
>
>     mem_join=1
>
> When the line is there crash, when the line is commented out Kamailio 
> runs.
>
> Regards,
>
> Peter
>
>
> On 30/05/13 16:20, Peter Dunkley wrote:
>> When I have explicit listen directives like this (PRIV_IP_ADDR is a 
>> substdef included from another file):
>>
>>     listen=tcp:"PRIV_IP_ADDR":80
>>     listen=tls:"PRIV_IP_ADDR":443
>>     listen=tls:"PRIV_IP_ADDR":2855
>>
>> Kamailio seg-faults very early in start-up.
>>
>> The output from GDB is:
>>
>>     (gdb) run
>>     Starting program: /usr/sbin/kamailio
>>     loading modules under /usr/lib64/kamailio/modules
>>     [Thread debugging using libthread_db enabled]
>>
>>     Program received signal SIGSEGV, Segmentation fault.
>>     qm_detach_free (qm=0x7ffff722b010, p=<value optimized out>)
>>         at mem/q_malloc.c:269
>>     269        FRAG_END(next)->prev_free=prev;
>>     Missing separate debuginfos, use: debuginfo-install
>>     glibc-2.12-1.107.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64
>>     krb5-libs-1.10.3-10.el6_4.2.x86_64
>>     libcom_err-1.41.12-14.el6.x86_64
>>     libselinux-2.0.94-5.3.el6_4.1.x86_64
>>     libunistring-0.9.3-5.el6.x86_64 mysql-libs-5.1.69-1.el6_4.x86_64
>>     nss-softokn-freebl-3.12.9-11.el6.x86_64
>>     openssl-1.0.0-27.el6_4.2.x86_64 zlib-1.2.3-29.el6.x86_64
>>     (gdb) bt
>>     #0  qm_detach_free (qm=0x7ffff722b010, p=<value optimized out>)
>>         at mem/q_malloc.c:269
>>     #1  qm_free (qm=0x7ffff722b010, p=<value optimized out>) at
>>     mem/q_malloc.c:511
>>     #2  0x00000000005b7927 in yyparse () at cfg.y:2699
>>     #3  0x000000000046b8e3 in main (argc=1, argv=0x7fffffffe548) at
>>     main.c:2083
>>
>>
>> This happens with Kamailio git master built about 20 minutes ago.
>>
>> Regards,
>>
>> Peter
>>
>>
>> _______________________________________________
>> sr-dev mailing list
>> sr-dev at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
   * http://asipto.com/u/katu *

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20130530/55041912/attachment-0001.html>


More information about the sr-dev mailing list