Segfault on SuSE SLES 9

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

 



>From the stack trace, looks like everything is done on a single
thread, so I don't think this is a "badly synchronization from
threads" problem.

 -benny

On Wed, Oct 21, 2009 at 5:15 PM, Leonardo Secci
<leonardo.secci at unirel.com> wrote:
> Hello,
>
> I've experienced segfault executing pjsua compiled on a SuSE SLES 9.
>
> Below the backtrace:
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 182907890432 (LWP 25435)]
> 0x00000000004c2764 in pj_list_insert_after ()
> (gdb) backtrace
> #0 ?0x00000000004c2764 in pj_list_insert_after ()
> #1 ?0x0000000000444476 in pjsip_auth_clt_init_req ()
> #2 ?0x0000000000422958 in create_request ()
> #3 ?0x0000000000422d94 in pjsip_regc_register ()
> #4 ?0x0000000000409dc1 in pjsua_acc_set_registration ()
> #5 ?0x000000000040b920 in pjsua_acc_add ()
> #6 ?0x0000000000406adb in app_init ()
> #7 ?0x00000000004088b9 in main ()
>
> I've overcomed the segfault inserting a sleep in function
> pjsip_auth_clt_init_req, so I suppose the problem is a badly synchronization
> from threads.
>
> Below the patch I've used:
>
> --- pjproject-1.4.5/pjsip/src/pjsip/sip_auth_client.c ? 2008-12-23
> 18:27:53.000000000 +0100
> +++ pjproject-1.4.5.fix/pjsip/src/pjsip/sip_auth_client.c ? ? ? 2009-10-21
> 14:25:49.758189240 +0200
> @@ -762,6 +762,7 @@
>
> ? ? /* Init list */
> ? ? pj_list_init(&added);
> + ? ?pj_thread_sleep(500);
>
> ? ? /* Get the method. */
> ? ? method = &tdata->msg->line.req.method;
>
> Bye
>
> _______________________________________________
> 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