[Freeswitch-users] core dump on sip profile, fs version 2012-04-05

Nestor A Diaz nestor at tiendalinux.com
Fri Apr 6 23:13:43 MSD 2012

Hi guys, i have a core dump generated on freeswitch everytime i restart 
a new profile i have created:

freeswitch at internal> version
FreeSWITCH Version 1.1.beta1 (git-c41a16d 2012-04-05 14-28-01 -0500)

freeswitch at internal> sofia profile internal-voice flush_inbound_reg reboot
Socket interrupted, bye!
[ERROR] fs_cli.c:1320 main() Error Connecting [Socket Connection Error]
[INFO] fs_cli.c:1326 main() Retrying

The full gdb trace is here (thanks to moises silva for the tip):


I updated from FreeSWITCH Version 1.0.head (git-9be51d5 2012-01-21 
13-45-21 -0500) to this version thinking it will fix the problem, but 
the problem remains.

the profile internal-voice is just the same internal profile with the 
following things changed:

# diff internal.xml  internal-voice.xml
< <profile name="internal">
 > <profile name="internal-voice">
< <X-PRE-PROCESS cmd="include" data="internal/*.xml"/>
 > <X-PRE-PROCESS cmd="include" data="internal-voice/*.xml"/>
< <param name="context" value="public"/>
 > <param name="context" value="internal"/>
< <param name="rtp-ip" value="$${local_ip_v4}"/>
 > <param name="rtp-ip" value="$${voice_ip_v4}"/>
< <param name="sip-ip" value="$${local_ip_v4}"/>
 > <param name="sip-ip" value="$${voice_ip_v4}"/>

where voice_ip_v4 is defined in vars.xml as follows:

<X-PRE-PROCESS cmd="set" data="voice_ip_v4="/>
<X-PRE-PROCESS cmd="set" data="voice_net_v4="/>

voice_ip_v4 is no other thing than a vlan interface for voip phones.

By proof and error i found that if i rename from internal-voice to 
another name, i.e.voice.xml then the sip profile doesn't core dump agin, 
a name problem ? i know that is difficult to believe but that's what i 
am experiencing, before upgrading gdb show me a problem on sofia_glue.c

On another freeswitch server i still have the problem of the event trap 
it change without having changed the ip address, like the following:

2012-03-22 20:34:22.353275 [INFO] mod_sofia.c:5155 EVENT_TRAP: IP change 
2012-03-22 20:34:22.353275 [INFO] mod_sofia.c:5156 IP change detected 
[]->[] [fe80::225:90ff:fe3a:2e1a]->[::1]

I don't use the internal-ipv6 profile at all, so maybe the best thing i 
can do is to disable it.

I am not sure what triggers the above behavior but when it has been 
triggered then the vlan profile i use for the phones can't be started 
again, if i do a : `netstat -unlp` the related port is in use by the 
freeswitch process but the profile is down.

it writes a lock on the profile:

2012-03-22 20:34:24.253327 [DEBUG] sofia.c:2121 Write lock internal

but no 'unlock' like it does with the other profiles.

So i finally moved all the phones to the data vlan and no problem.

Another problem i have found is when i do a `show calls` and there is no 
calls the system show some calls, i found this only one time.  No space 
problem, Any explanation ?

Overall i am happy with my first freeswitch experience, it keeps on 
processing  from 30 to 40 calls concurrently on business hours from sip 
devices and a sangoma pri card with echo cancelation in conjunction with 
a sangoma transcoder card and a supermicro server.

Having working with asterisk before and sick with locks on the queue 
function i think freeswitch matters the transition from Asterisk, i have 
some things to master but i am on the way ....


Nestor A. Diaz
Ingeniero de Sistemas
Tel. +57 1-485-3020 x 211
Cel. +57 316-227-3593
Tel. SIP: sip:211 at tiendalinux.com
Email/MSN: nestor at tiendalinux.com
Bogota, Colombia

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list