[Freeswitch-users] Different behavior of FS under gdb

mayamatakeshi mayamatakeshi at gmail.com
Tue Jun 24 08:25:11 MSD 2014


On Tue, Jun 24, 2014 at 1:22 PM, mayamatakeshi <mayamatakeshi at gmail.com>
wrote:

> Thanks,
> yes, it was the same problem:
>
> futex(0x7f4732b32e6c, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f4732b32e68,
> {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1}) = 1
> futex(0x7f4732b32ec0, FUTEX_WAKE_PRIVATE, 1) = 1
>
> I can see Torsten created a ticket for this and Anthony already solved it:
> https://jira.freeswitch.org/browse/FS-6424
>

Sorry, my mistake (I am dealing with other issues and got things mixed up).
Actually Peter opened this ticket:
https://jira.freeswitch.org/browse/FS-6625



>
>
> Regards,
>  Takeshi
>
> On Mon, Jun 23, 2014 at 7:55 PM, Steven Ayre <steveayre at gmail.com> wrote:
>
>> 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
>>>
>>>
>>
>> _________________________________________________________________________
>> 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/20140624/9cfe1830/attachment-0001.html 


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