[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mythtv-dev
Subject:    Re: [mythtv] SEGV attempting to use ThreadedFileWriter after deletion.
From:       Stuart Auchterlonie <stuarta () squashedfrog ! net>
Date:       2005-09-28 10:12:09
Message-ID: 20050928101209.GB30427 () squashedfrog ! net
[Download RAW message or body]

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



["ringbuffer-threadedfilewriter.diff" (text/plain)]

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)


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic