[mythtv] SEGV attempting to use ThreadedFileWriter after deletion.
Stuart Auchterlonie
stuarta at squashedfrog.net
Wed Sep 28 10:12:09 UTC 2005
On Wed, Sep 28, 2005 at 11:07:29AM +0100, Stuart Auchterlonie wrote:
>
> Looks like an attempt to use ThreadedFileWrite after it's been
> deleted. This is on the backend after doing the following
>
> 1. Watch live tv.
> 2. Change channel.
> 3. Exit live tv.
> 4. Enter live tv. (BANG!!!)
>
Oh and I've done a patch....
Stuart
-------------- next part --------------
Index: mythtv/libs/libmythtv/RingBuffer.cpp
===================================================================
--- mythtv.orig/libs/libmythtv/RingBuffer.cpp 2005-09-26 11:15:54.000000000 +0100
+++ mythtv/libs/libmythtv/RingBuffer.cpp 2005-09-28 11:10:41.000000000 +0100
@@ -1410,7 +1410,7 @@
void RingBuffer::Sync(void)
{
- tfw->Sync();
+ if(tfw) tfw->Sync();
}
long long RingBuffer::GetFileWritePosition(void)
More information about the mythtv-dev
mailing list