[asterisk-bugs] [JIRA] (ASTERISK-25211) Prevent timer_pthread from loading with non-compliant systems

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Jun 30 08:56:33 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226711#comment-226711 ] 

Matt Jordan commented on ASTERISK-25211:
----------------------------------------

[~oej]: Was the version 11.19.0? In older versions of Asterisk 11, there are known issues with {{res_timing_pthread}} (aka: deadlock).

Otherwise, I would say that this doesn't make much sense. The pthread timer - while not super-accurate - is useful in that it should work on any system that supports pthreads. If your system doesn't support pthreads, then I'd suspect that Asterisk itself wouldn't work very well. In fact, given the fact that it should work on any Posix thread compliant machine, I'm not sure how we could determine if a system could not support it.

Note that timers already have a priority order, and {{res_timing_pthread}} is the lowest. {{res_timing_timerfd}} - which is preferred - should be run so long as you are using a relatively recent Linux kernel.

Without more information, it's hard to say why {{res_timing_pthread}} wouldn't work on that particular machine. A backtrace showing the state of the threads would be helpful.

> Prevent timer_pthread from loading with non-compliant systems
> -------------------------------------------------------------
>
>                 Key: ASTERISK-25211
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25211
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_timing_pthread
>    Affects Versions: 11.19.0
>            Reporter: Olle Johansson
>            Severity: Minor
>
> Yesterday I spent quite a long time trying to get Asterisk 11 working on a Linux system using a 2.6.18 kernel. I noticed that there was no outbound RTP packets, SIP channels failed miserably to kill themselves and conferences with confbridge did not start.
> It turned out that if I unload res_timing_pthread the RTP and SIP stuff started working again. Timer test showed that the pthread timer did not work.
> This caused a LOT of issues and makes me wonder if we really should even load res_timing_pthread on systems where we know it doesn't work.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list