I’m getting a connection refused when I run the git clone command:

# git clone --depth 1 --no-single-branch git://git.sip-router.org/kamailio kamailio

Cloning into 'kamailio'...

fatal: unable to connect to git.sip-router.org:

git.sip-router.org[0: 193.22.119.66]: errno=Connection refused

 

I’m using the tutorial on: https://www.kamailio.org/wiki/install/4.2.x/git

 

From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Grant Bagdasarian
Sent: Wednesday, April 1, 2015 12:45 PM
To: 'miconda@gmail.com'; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] jsonrpc_exec crashes kamailio

 

I’m running 4.2.3 from tar.

I’ll try the git branch.

 

From: Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Sent: Wednesday, April 1, 2015 12:36 PM
To: Grant Bagdasarian; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] jsonrpc_exec crashes kamailio

 

Hello,

one thing to clarify. Are you running v4.2.3 from packages/tarballs or from branch 4.2?

There was a fix to jsonrpc-s, already backported to branch 4.2 few weeks ago, but after release of 4.2.3.

If you don't run from git branch, can you install from there (or from debian nighty builds)? It might be same issue, so it is better to check that before further troubleshooting.

Cheers,
Daniel

On 01/04/15 12:31, Grant Bagdasarian wrote:

Hello,

 

I understand. I’ll get you the logs.

Yes, I did run the ulimit command.

Do I need to do anything else? Or get the logs from somewhere else?

 

# ulimit -a

core file size          (blocks, -c) unlimited

data seg size           (kbytes, -d) unlimited

scheduling priority             (-e) 0

file size               (blocks, -f) unlimited

pending signals                 (-i) 7928

max locked memory       (kbytes, -l) 64

max memory size         (kbytes, -m) unlimited

open files                      (-n) 1024

pipe size            (512 bytes, -p) 8

POSIX message queues     (bytes, -q) 819200

real-time priority              (-r) 0

stack size              (kbytes, -s) 8192

cpu time               (seconds, -t) unlimited

max user processes              (-u) 7928

virtual memory          (kbytes, -v) unlimited

file locks                      (-x) unlimited

 

From: Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Sent: Wednesday, April 1, 2015 11:26 AM
To: Grant Bagdasarian; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] jsonrpc_exec crashes kamailio

 

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@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://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

 

-- 
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