Hello Daniel,
Thanks for you reply.
I checked again and I am using the version 5.0.4 from the debian packages
for debian (bellow there is the output of some commands to confirm this).
I also reboot the machine, but i still have the same problem with the same
output on gdb.
Best Regards,
Jose Lopes
# dpkg -S /usr/sbin/kamcmd
kamailio: /usr/sbin/kamcmd
# dpkg -l | grep kamailio
ii kamailio 5.0.4+jessie
amd64 very fast, dynamic and configurable SIP server
ii kamailio-dbg:amd64 5.0.4+jessie
amd64 very fast and configurable SIP server [debug symbols]
ii kamailio-lua-modules:amd64 5.0.4+jessie
amd64 The app_lua module for Kamailio Lua support
ii kamailio-mysql-modules:amd64 5.0.4+jessie
amd64 MySQL database connectivity module for Kamailio
ii kamailio-redis-modules:amd64 5.0.4+jessie
amd64 Redis database connectivity module for the Kamailio SIP server
kamcmd> root@abccs-s1gww1:/tmp# /usr/sbin/kamcmd version
kamailio 5.0.4 (x86_64/linux)
On Tue, Nov 21, 2017 at 6:38 PM, Daniel-Constantin Mierla <miconda(a)gmail.com
Hello,
are you sure that kamcmd was compiled with the 5.0.4 version? In branch
5.0, at kamcmd.c line 591 is a line with just a curly brace, then one
starting the send_binrpc_cmd function, so that's not a line that can cause
a segfault.
Cheers,
Daniel
On 21.11.17 17:48, José Lopes wrote:
Hello,
I invoke kamcmd inside Freeswitch Lua Scripts and right now i am getting
segmentation fault any time.
This started to happen after I upgraded kamailio from 4.4 to 5.0.4 .
I tried to analyse the core dump and it give me the next information.
When I execute on the console, the command works.
Am I doing something wrong?
There is any alternative or better way to communicate with kamailio?
Thanks in advance
Best regards,
Jose Lopes
Core was generated by `/usr/sbin/kamcmd -s udp:127.0.0.1:2050
uac.reg_refresh s:29010017'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000040340d in send_binrpc_cmd (s=<error reading variable:
Cannot access memory at address 0x7ffec894a60c>, cmd=<error reading
variable: Cannot access memory at address 0x7ffec894a600>,
cookie=<error reading variable: Cannot access memory at address
0x7ffec894a608>) at kamcmd.c:591
591 kamcmd.c: No such file or directory.
(gdb) bt
#0 0x000000000040340d in send_binrpc_cmd (s=<error reading variable:
Cannot access memory at address 0x7ffec894a60c>, cmd=<error reading
variable: Cannot access memory at address 0x7ffec894a600>,
cookie=<error reading variable: Cannot access memory at address
0x7ffec894a608>) at kamcmd.c:591
#1 0x0000000000403eee in run_binrpc_cmd (s=3, cmd=0x7ffec898a8d0,
fmt=0x0) at kamcmd.c:924
#2 0x0000000000404499 in run_cmd (s=3, cmd=0x7ffec898a8d0, format=0x0) at
kamcmd.c:1068
#3 0x00000000004073aa in main (argc=5, argv=0x7ffec898d1e8) at
kamcmd.c:2114
_______________________________________________
Kamailio (SER) - Users Mailing
Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin
Mierlawww.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training -
www.asipto.com
Kamailio World Conference - May 14-16, 2018 -
www.kamailioworld.com