[mythtv] [PATCH] mythfrontend segfault due to NULL thread priv
request
Frank Riley
fhriley at yahoo.com
Thu Sep 9 23:48:27 EDT 2004
This bug is not fixed. The problem is there is no synchronization between
the video thread and the thread that handles the priv requests. The video
thread that gets placed on the priv request queue is created on the stack in
NuppelVideoPlayer::StartPlaying(). If StartPlaying() finishs (i.e. the video
is done playing) before the priv request thread gets around to handling the
request on the queue, pthread_setschedparam blows up because the thread
pointer it has is now pointing into la-la land. This is easily reproducible
(at least on my box) by going to the delete recordings screen and quickly
scrolling through the recordings until it blows up (as long as the preview
window is turned on). I'm guessing there is a separate thread to change the
priority only because we only want to have to set mythfrontend as setuid. Is
that correct?
Mark Spieth wrote:
> I was looking to delete a recording with the latest CVS with priv requests
> and got a segfault in frontend due to a null thread ptr probably due to
> no thumbnail png file but not sure.
> anyway, attached is a robustness patch which stops the thread sched if
> the thread ptr is null.
>
> cheers
> mark
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.752 / Virus Database: 503 - Release Date: 9/4/2004
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
More information about the mythtv-dev
mailing list