Menu

#8 Deadlock in LinphoneMediaChannel dtor

open
nobody
None
5
2006-01-13
2006-01-13
No

Deadlock in LinphoneMediaChannel dtor

The LinphoneMediaChannel destructor may deadlock when joining the
thread, since the thread won't exit if it isn't awaken by network traffic
after dying_ is set.

The POSIX thread is replaced with cricket::Thread in this patch, which
seems to solve the deadlock problem.

Discussion

  • Mikael Magnusson

    The patch

     
  • Mikael Magnusson

    Logged In: YES
    user_id=141160

    This patch fixes a crash bug in the LinphoneMediaChannel
    destructor. The crash occurred when terminating a call before it's
    accepted.

    talk/session/phone/linphonemediaengine.cc 56
    - audio_stream_stop(audio_stream_);
    + if (audio_stream_)
    + audio_stream_stop(audio_stream_);
    }

     

Log in to post a comment.