[pjsip] pj_thread_register: Assertion
bennylp at pjsip.org
Tue May 6 13:14:05 EDT 2008
On Tue, May 6, 2008 at 1:06 PM, Chaitanya V.N.S
<schaitanya.v at pyronetworks.com> wrote:
> This is Chaitanya. I am using PJMEDIA to stream rtp using java
> native interface.
> I got the following error on calling the stream utility function more
> than once:
> ../src/pj/os_core_unix.c:279: pj_thread_register: Assertion
> `thread->signature1 != 0xDEAFBEEF || thread->signature2 != 0xDEADC0DE ||
> (thread->thread == pthread_self())' failed.
Looking at the comments before the assert() line:
/* On the other hand, also warn if the thread descriptor buffer seem to
* have been used to register other threads.
pj_assert(thread->signature1 != SIGNATURE1 ||
thread->signature2 != SIGNATURE2 ||
(thread->thread == pthread_self()));
So make sure you don't use the same thread descriptor to register to
more than one threads.
> Please reply
> with regards,
> Chaitanya V.N.S
> Visit our blog: http://blog.pjsip.org
> pjsip mailing list
> pjsip at lists.pjsip.org
More information about the pjsip