pj_thread_register: Assertion

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

 



On Tue, May 6, 2008 at 1:06 PM, Chaitanya V.N.S
<schaitanya.v at pyronetworks.com> wrote:
> Hi,
>
>
>        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.
>  Aborted

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.

Cheers
 Benny


>  Please reply
>
>  with regards,
>  Chaitanya V.N.S
>
>  _______________________________________________
>  Visit our blog: http://blog.pjsip.org
>
>  pjsip mailing list
>  pjsip at lists.pjsip.org
>  http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[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