[asterisk-bugs] [JIRA] (ASTERISK-23119) [patch] main/bridging.c sometimes fails to pthread_join the bridge thread

Corey Farrell (JIRA) noreply at issues.asterisk.org
Mon Dec 18 11:18:08 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Corey Farrell updated ASTERISK-23119:
-------------------------------------

    Assignee: Joshua Colp  (was: Corey Farrell)
      Status: Open  (was: Waiting for Feedback)

I have not tested newer versions but I just looked at the code and I believe this will no longer be an issue as the bridge thread does not clear it's own thread variable.

> [patch] main/bridging.c sometimes fails to pthread_join the bridge thread
> -------------------------------------------------------------------------
>
>                 Key: ASTERISK-23119
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23119
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Bridging
>    Affects Versions: 1.8.26.0, 11.8.0
>            Reporter: Corey Farrell
>            Assignee: Joshua Colp
>         Attachments: bridging-empty_thread_wait.patch, leak.txt
>
>
> When Hangup is received from the last channel in a ConfBridge conference, bridge_array_remove() sets bridge->array_num to 0.  This can cause bridge_thread() to clear bridge->thread before ast_bridge_destroy() is run.  When that happens ast_bridge_destroy() doesn't call pthread_join().
> The only ConfBridge setting used was quiet=yes.  I used a SIP phone to place a call to ConfBridge, waited a few seconds then hung up from the phone.  This causes the issue almost every time with 1.8 and 11 in valgrind.  I have not tested 12 since it doesn't use bridge->array_num as a thread exit condition, and doesn't clear bridge->thread.



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



More information about the asterisk-bugs mailing list