Thread concurrency in close_snd_dev (possibly BUG)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is LOCK, my mistake :)


On Thu, Aug 29, 2013 at 3:35 PM, Khoa Pham <onmyway133 at gmail.com> wrote:

> Hi,
>
> I see the close_snd_dev can be run in 2 thread
> Thread A (close_snd_timer_cb, as a result of pjsua_check_snd_dev_idle)
> Thread B, which call close_snd_dev directly
>
> When Thread A calls pjsua_var.snd_port = NULL, and Thread B try to use
> that snd_port, NULL exception can occur.
>
> The weird is that there are no LOCK and things went OK
>
> --
> Khoa Pham
> HCMC University of Science
> www.fantageek.com
>



-- 
Khoa Pham
HCMC University of Science
www.fantageek.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130829/1bb25f44/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux