[Freeswitch-users] Different behavior of FS under gdb

Steven Ayre steveayre at gmail.com
Mon Jun 23 14:55:37 MSD 2014


Someone else on the list reported a similar startup issue on the list today
('Peter'). Possibly the cause is the same. The strace he did seemed to show
it stuck on a futex, which might explain the high CPU usage you're seeing.

Can you run freeswitch through strace and see if you're seeing the same.


On 23 June 2014 11:04, mayamatakeshi <mayamatakeshi at gmail.com> wrote:

> I tried using gcore but it got frozen too (and now I realize FS is
> consuming 95% of the CPU time so probably it entered an infinite loop).
> But i can see gcore is just a wrapper for gdb so I can check its man page
> and try other things.
> Thanks for the tip.
>
>
>
> On Mon, Jun 23, 2014 at 5:53 PM, Steven Ayre <steveayre at gmail.com> wrote:
>
>> Since it's running through gdb you could get slightly different
>> behaviour, because timing etc is different.
>>
>> Try collecting a coredump of the program while it's frozen using 'gcore'
>> then open that coredump using gdb. You'll be able to inspect the backtrace
>> to find out exactly what FS was running (ie waiting on) while frozen.
>>
>>
>> On 23 June 2014 09:24, mayamatakeshi <mayamatakeshi at gmail.com> wrote:
>>
>>> I am testing latest commit b21f34bffc with CentOS 6.5.
>>>
>>> FS gets stuck at this point during startup:
>>>
>>> # ./freeswitch -nonat
>>> 2014-06-23 17:16:34.231865 [INFO] switch_event.c:670 Activate Eventing
>>> Engine.
>>> 2014-06-23 17:16:34.232154 [WARNING] switch_event.c:652 Create
>>> additional event dispatch thread 0
>>>
>>> So I tried to run it under gdb,
>>> but when i do 'r -nonat' in the gdb cli, FS doesn't get stuck and starts
>>> properly (i get the FS CLI and I am able to execute commands in it).
>>>
>>> Any idea why would this be?
>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140623/2b4612eb/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list