[Freeswitch-users] segmentation fault when rescanning profile

Juan Pablo L jpablolorenzetti at gmail.com
Tue Jul 24 15:10:28 UTC 2018


Hello, i m getting a segmentation fault everytime i try to do anything with
a sofia profile, for example everytime i try to rescan or start a profile.
Analysing the core dumped the problem seems to be in
"switch_ci_hashfunc_default":

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `freeswitch'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  switch_ci_hashfunc_default (char_key=0x0, klen=0x7f1d309313e8) at
src/switch_apr.c:112
112            for (p = key; *p; p++) {
(gdb) bt
#0  switch_ci_hashfunc_default (char_key=0x0, klen=0x7f1d309313e8) at
src/switch_apr.c:112
#1  0x00007f1d30a28013 in xml_directory_db_search (section=0x0,
tag_name=0x7f1d309313e8 "\377\377\377\377\377\377\377\377", key_name=0x0,
key_value=0x0, event_params=0x7f1d0c16de00, user_data=0x0)
    at xml_directory.c:155
#2  0x00007f1d71e8f0db in switch_xml_locate (section=0x7f1d69468101
"directory", tag_name=0x0, key_name=0x0, key_value=0x0,
root=0x7f1d0c16de00, node=0x0, params=0x7f1d0c16de00, clone=SWITCH_FALSE)
    at src/switch_xml.c:1675
#3  0x00007f1d69351ce3 in config_sofia (reload=(unknown: 201695600),
profile_name=0x7f1d309313e8 "\377\377\377\377\377\377\377\377") at
sofia.c:5890
#4  0x00007f1d69336d8c in cmd_profile (argv=0x7f1d309318d8, argc=2,
stream=0x7f1d30933db0) at mod_sofia.c:3324
#5  0x00007f1d69336445 in sofia_function (cmd=<optimized out>,
session=<optimized out>, stream=0x7f1d30933db0) at mod_sofia.c:4327
#6  0x00007f1d71e2628e in switch_api_execute (cmd=<optimized out>,
arg=<optimized out>, session=0x0, stream=0x7f1d30933db0) at
src/switch_loadable_module.c:2567
#7  0x00007f1d71dbb9e0 in switch_console_execute (xcmd=0x7f1d0c009f20
"sofia", rec=0, istream=0x7f1d30933db0) at src/switch_console.c:395
#8  0x00007f1d71dbbb51 in switch_console_process (xcmd=0x7f1d0c001350
"sofia profile internalgw rescan") at src/switch_console.c:323
#9  0x00007f1d71dbbc68 in console_thread (thread=0x0, obj=0x7f1d309313e8)
at src/switch_console.c:1079
#10 0x00007f1d720be010 in dummy_worker (opaque=0x194a878) at
threadproc/unix/thread.c:151
#11 0x00007f1d70c8d064 in start_thread (arg=0x7f1d30934700) at
pthread_create.c:309
#12 0x00007f1d709c262d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111


i m using :

Linux sbc02 3.16.0-6-amd64 #1 SMP Debian 3.16.57-2 (2018-07-14) x86_64
GNU/Linux

FreeSWITCH Version 1.6.20+git~20180507T185611Z~43a9feb7f8~64bit (git
43a9feb 2018-05-07 18:56:11Z 64bit)

there is absolutely no warnings or errors when Freeswitch is booting up ...

thank you for your help!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180724/4bcae236/attachment.html>


More information about the FreeSWITCH-users mailing list