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
> <http://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 List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to