[vlc-devel] fix #14586 (6f3e18d5) leads to crash on Android

Thomas Guillem thomas at gllm.fr
Mon May 30 10:02:35 CEST 2016


Ah OK, I didn't see it, it's fixed by "android: ignore cancellation of
foreign threads"

On Mon, May 30, 2016, at 09:57, Thomas Guillem wrote:
> I could not reproduce any crashes either, I tried on few devices (from
> 2.3 to 5.1).
> 
> What's your device ? Android version ? Arch ?
> Could you check my ndk diff on android-ml that fixes the gdb script ?
> 
> On Sun, May 29, 2016, at 23:41, Andrey Gursky wrote:
> > On Sun, 29 May 2016 20:48:34 +0200
> > Andrey Gursky <andrey.gursky at e-mail.ua> wrote:
> > 
> > > On Sun, 29 May 2016 21:43:38 +0300
> > > Rémi Denis-Courmont <remi at remlab.net> wrote:
> > > 
> > > > On Sunday 29 May 2016 20:31:37 Andrey Gursky wrote:
> > > > > considering src/android/thread.c:
> > > > > 
> > > > > static __thread struct vlc_thread *thread = NULL;
> > > > > 
> > > > > vlc_thread_t vlc_thread_self (void)
> > > > > {
> > > > >     return thread;
> > > > > }
> > > > > 
> > > > > void vlc_control_cancel(int cmd, ...)
> > > > > {
> > > > >     vlc_thread_t th = vlc_thread_self();
> > > > >     va_list ap;
> > > > > //...
> > > > > }
> > > > > 
> > > > > I don't see where this TLS variable "thread" is assigned before call to
> > > > > vlc_control_cancel().
> > > > 
> > > > TBH, that it´s not hard to find by looking for "thread =", and it has not 
> > > > changed in 3 years.
> > > 
> > > Yes, I did that, of course. From what I found, it doesn't get assigned.
> > 
> > > android: ignore cancellation of foreign threads
> > > +    if (th == NULL)
> > > +        return;
> > > +
> > 
> > Rémi, as you see it is indeed not assigned for "foreign threads". By
> > the way, is there any documentation for this?
> > 
> > And despite of the fact that I haven't yet published the stack trace
> > there has been a bug.
> > 
> > Regards,
> > Andrey
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list