<div dir="ltr"><div><div><div><div><div><div>Hi Arun,<br><br></div>Thanks for the reply.<br></div>we tried updating to pulseaudio-9.0 and simulated the test case in loop .<br></div><br></div>as we are getting the same crash , and the frequency of the crash is also same as that of pulseaudio-6.0.<br><br></div>stack trace for this is<br><br>#0 __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:57<br>57 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.<br>(gdb) bt<br>#0 __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:57<br>#1 0xb6bf7690 in __GI_abort () at abort.c:89<br>#2 0xb527d4f4 in calc_next_timeout (m=<optimized out>) at /u02/yoctobms/build/info3-low/tmp-eglibc/work/cortexa7hf-vfp-neon-kpit-linux-gnueabi/pulseaudio/9.0-r0/pulseaudio-9.0/src/pulse/mainloop.c:719<br>#3 pa_mainloop_prepare (m=0x0, m@entry=0xdbcd8, timeout=timeout@entry=-1)<br> at /u02/yoctobms/build/info3-low/tmp-eglibc/work/cortexa7hf-vfp-neon-kpit-linux-gnueabi/pulseaudio/9.0-r0/pulseaudio-9.0/src/pulse/mainloop.c:800<br>#4 0xb527ddf0 in pa_mainloop_iterate (m=m@entry=0xdbcd8, block=block@entry=1, retval=retval@entry=0x0)<br> at /u02/yoctobms/build/info3-low/tmp-eglibc/work/cortexa7hf-vfp-neon-kpit-linux-gnueabi/pulseaudio/9.0-r0/pulseaudio-9.0/src/pulse/mainloop.c:923<br>#5 0xb527ded0 in pa_mainloop_run (m=0xdbcd8, retval=retval@entry=0x0)<br> at /u02/yoctobms/build/info3-low/tmp-eglibc/work/cortexa7hf-vfp-neon-kpit-linux-gnueabi/pulseaudio/9.0-r0/pulseaudio-9.0/src/pulse/mainloop.c:944<br>#6 0xb528db74 in thread (userdata=0xd3180) at /u02/yoctobms/build/info3-low/tmp-eglibc/work/cortexa7hf-vfp-neon-kpit-linux-gnueabi/pulseaudio/9.0-r0/pulseaudio-9.0/src/pulse/thread-mainloop.c:100<br>#7 0xb521a9e8 in internal_thread_func (userdata=0xd2a90)<br> at /u02/yoctobms/build/info3-low/tmp-eglibc/work/cortexa7hf-vfp-neon-kpit-linux-gnueabi/pulseaudio/9.0-r0/pulseaudio-9.0/src/pulsecore/thread-posix.c:81<br>#8 0xb6e16040 in start_thread (arg=0xafdfe420) at pthread_create.c:314<br>#9 0xb6c95e20 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/clone.S:92 from /usr/local/i3l-target/sysroots/cortexa7hf-vfp-neon-kpit-linux-gnueabi/lib/libc.so.6<br>#10 0xb6c95e20 in ?? () at ../ports/sysdeps/unix/sysv/linux/arm/clone.S:92 from /usr/local/i3l-target/sysroots/cortexa7hf-vfp-neon-kpit-linux-gnueabi/lib/libc.so.6<br>Backtrace stopped: previous frame identical to this frame (corrupt stack?)<br><br></div>Any pointers on this would help in proceeding further.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 25, 2016 at 9:55 AM, Arun Raghavan <span dir="ltr"><<a href="mailto:arun@arunraghavan.net" target="_blank">arun@arunraghavan.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On Sat, 23 Jul 2016, at 06:08 PM, Dhananjay Joshi wrote:<br>
> Hi<br>
> we are getting the below assertion failed in libpulse ultimately causes<br>
> crash.<br>
><br>
> static pa_usec_t calc_next_timeout(pa_mainloop *m) {<br>
> pa_time_event *t;<br>
> pa_usec_t clock_now;<br>
><br>
> if (m->n_enabled_time_events <= 0)<br>
> return PA_USEC_INVALID;<br>
><br>
</span>> * pa_assert_se(t = find_next_time_event(m));* //// assertion failed<br>
<div><div class="h5">> here<br>
> and causes the crash<br>
><br>
> if (t->time <= 0)<br>
> return 0;<br>
><br>
> clock_now = pa_rtclock_now();<br>
><br>
> if (t->time <= clock_now)<br>
> return 0;<br>
><br>
> return t->time - clock_now;<br>
> }<br>
><br>
><br>
> this crash happened due to the following API call.<br>
><br>
> pa_context_suspend_sink_by_<wbr>name(context,sink_name,<wbr>suspend/resume,NULL.NULL);<br>
><br>
> above function causes a crash in libpulse code.<br>
><br>
> #0 __GI_raise (sig=sig@entry=6) at<br>
> ../nptl/sysdeps/unix/sysv/<wbr>linux/raise.c:57<br>
> #1 0xb6bd5690 in __GI_abort () at abort.c:89<br>
> #2 0xb525dbe0 in calc_next_timeout (m=<optimized out>) at<br>
> /usr/src/debug/pulseaudio/6.0-<wbr>r0/pulseaudio-6.0/src/pulse/<wbr>mainloop.c:719<br>
> #3 pa_mainloop_prepare (m=0x0, m@entry=0xb37d8,<br>
> timeout=timeout@entry=-1)<br>
> at<br>
> /usr/src/debug/pulseaudio/6.0-<wbr>r0/pulseaudio-6.0/src/pulse/<wbr>mainloop.c:800<br>
> #4 0xb525e4dc in pa_mainloop_iterate (m=m@entry=0xb37d8,<br>
> block=block@entry=1,<br>
> retval=retval@entry=0x0) at<br>
> /usr/src/debug/pulseaudio/6.0-<wbr>r0/pulseaudio-6.0/src/pulse/<wbr>mainloop.c:923<br>
> #5 0xb525e5bc in pa_mainloop_run (m=0xb37d8, retval=retval@entry=0x0) at<br>
> /usr/src/debug/pulseaudio/6.0-<wbr>r0/pulseaudio-6.0/src/pulse/<wbr>mainloop.c:944<br>
> #6 0xb526e1a0 in thread (userdata=0xb2820) at<br>
> /usr/src/debug/pulseaudio/6.0-<wbr>r0/pulseaudio-6.0/src/pulse/<wbr>thread-mainloop.c:88<br>
> #7 0xb51fc11c in internal_thread_func (userdata=0xb62c0) at<br>
> /usr/src/debug/pulseaudio/6.0-<wbr>r0/pulseaudio-6.0/src/<wbr>pulsecore/thread-posix.c:81<br>
> #8 0xb6df4040 in start_thread (arg=0xb00fe420) at pthread_create.c:314<br>
><br>
> Note: This issue occurs randomly. with pulseaudio-6.0<br>
><br>
> Request to help in resolution of this issue:<br>
<br>
</div></div>Could you try with 9.0? If it still happens, it would be nice to have a<br>
testcase that maybe does what you're doing in a loop until it breaks.<br>
<br>
Cheers,<br>
Arun<br>
______________________________<wbr>_________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@lists.freedesktop.org">pulseaudio-discuss@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/pulseaudio-<wbr>discuss</a><br>
</blockquote></div><br></div>