[SR-Users] jsonrpc_exec crashes kamailio

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 1 11:25:30 CEST 2015


Hello,

I need the logs printed by kamailio before the crash, to see what was
processing at that time. After crash is no information in the logs
printed by itself why it crashed .

The traces printed in syslog by the kernel are not easy to use for
troubleshooting and I see the core was not generated to use gdb for a
proper backtrace. Have you run 'ulimit -c unlimited'?

Cheers,
Daniel

On 01/04/15 11:14, Grant Bagdasarian wrote:
>
> Hello Daniel,
>
>  
>
> Yes, I can reproduce it every time I run those commands from within
> the script.
>
>  
>
> I’ve only included the trace(see attachment) from the point kamailio
> crashed, since it only happens when a certain condition inside the
> script is met. (if statement)
>
> But when the condition is met, it crashes every time.  
>
>  
>
> If you need more information, please let me know.
>
>  
>
> Regards,
>
>  
>
> Grant
>
>  
>
> *From:*Daniel-Constantin Mierla [mailto:miconda at gmail.com]
> *Sent:* Wednesday, April 1, 2015 10:44 AM
> *To:* Kamailio (SER) - Users Mailing List; Grant Bagdasarian
> *Subject:* Re: [SR-Users] jsonrpc_exec crashes kamailio
>
>  
>
> Hello,
>
> can you reproduce it every time you run those commands? Or is it
> happening from time to time?
>
> If you can reproduce, set debug=3 and send all the logs to me. Also,
> it would be good to set 'ulimit -c unlimited' before starting kamailio
> to get a coredump which would be easier to troubleshoot.
>
> Cheers,
> Daniel
>
> On 01/04/15 08:39, Grant Bagdasarian wrote:
>
>     Hello,
>
>      
>
>     Kamailio crashes when I try to execute the following jsonrpc_exec
>     functions:
>
>      
>
>     jsonrpc_exec('{"jsonrpc": "2.0", "method": "domain.reload", "id":
>     0}'); #domain module
>
>     jsonrpc_exec('{"jsonrpc": "2.0", "method": "addressReload", "id":
>     0}'); #permissions module
>
>      
>
>     This one works fine:
>
>     jsonrpc_exec('{"jsonrpc": "2.0", "method": "htable.reload",
>     "params": ["tablename"], "id": 0}');
>
>      
>
>     Any ideas?
>
>      
>
>     Running on Debian 7.8 and Kamailio 4.2.3.
>
>      
>
>     Backtrace:
>
>     *** glibc detected *** /usr/local/sbin/kamailio: double free or
>     corruption (fasttop): 0x0000000001f1ff00 ***
>
>     ======= Backtrace: =========
>
>     /lib/x86_64-linux-gnu/libc.so.6(+0x75be6)[0x7f7009d50be6]
>
>     /lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f7009d5598c]
>
>     /usr/local/lib64/kamailio/modules/jsonrpc-s.so(+0x2834)[0x7f7003e12834]
>
>     /usr/local/lib64/kamailio/modules/jsonrpc-s.so(+0xb59a)[0x7f7003e1b59a]
>
>     /usr/local/sbin/kamailio(do_action+0x749a)[0x41fc24]
>
>
>
> -- 
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
> Kamailio World Conference, May 27-29, 2015
> Berlin, Germany - http://www.kamailioworld.com

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150401/2266d757/attachment.html>


More information about the sr-users mailing list