[mythtv] Unstable Master Backend with 017 and CVS (fwd)
Scott White
scott-mythtvdev at riskboys.com
Tue Mar 8 17:27:16 UTC 2005
Loverly, compiling now.
Interestingly the patch didn't apply cleanly I think because
libs/libmythtv/dvbsignalmonitor.h is full of Windows end of line chars
Rgds
Scott
> Please try the patch found here :
>
> http://www.gossamer-threads.com/lists/mythtv/dev/114182?
> search_string=John%20Pullan;#114182
>
> And let us know.
>
> Thanks.
>
> On Tue, 2005-03-08 at 15:30 +0000, scott-mythtvdev at riskboys.com wrote:
>>
>> My Master Backend has been unstable since upgrading to 0.17 from CVS. I
>> have
>> kept up with CVS since the 0.17 release as there have been a number of
>> patches
>> on this list that could have helped, but it still fails about every 2
>> hours.
>> My slave backend compiled from the same code but without DVB enabled,
>> (it has a
>> PVR250 rather than the two DVB-T cards in the master), does not suffer
>> this
>> problem.
>>
>> If I compile with debug the trace suggests the problem is in
>> dvbsignalmonitor.cpp. Has anyone seen something like this?
>>
>> Extract
>> ======>
>>
>> [New Thread 442388 (LWP 13766)]
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread 98311 (LWP 13628)]
>> 0xb6703b8f in mallopt () from /lib/libc.so.6
>> (gdb) thread apply all bt full
>>
>> ......
>>
>> Thread 8 (Thread 98311 (LWP 13628)):
>>
>> .......
>>
>> #4 0xb7df9bb4 in DVBSignalMonitor::MonitorLoop() (this=0xb6008670)
>> at dvbsignalmonitor.cpp:55
>> str = {static null = {
>> static null = <same as static member of an already seen type>,
>> d = 0x80be0b8, static shared_null = 0x80be0b8}, d = 0x80c1380,
>> static shared_null = 0x80be0b8}
>> ---Type <return> to continue, or q <return> to quit---
>> stats = {snr = 65278, ss = 55769, ber = 0, ub = 0, status = 31}
>> PrevLockedState = true
>> #5 0xb7dfa2ed in DVBSignalMonitor::SpawnMonitorLoop(void*)
>> (self=0xb6008670)
>> at dvbsignalmonitor.cpp:93
>>
>>
>>
>>
>> Full Output
>> ==========>
>> uber root # gdb --args /usr/bin/mythbackend --pidfile
>> /var/run/mythtv/mythbackend.pid --logfile
>> /var/log/mythtv/mythbackend.log
>> --verbose
>> GNU gdb 6.0
>> Copyright 2003 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you
>> are
>> welcome to change it and/or distribute copies of it under certain
>> conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB. Type "show warranty" for
>> details.
>> This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
>> library "/lib/libthread_db.so.1".
>>
>> (gdb) run
>> Starting program: /usr/bin/mythbackend --pidfile
>> /var/run/mythtv/mythbackend.pid --logfile
>> /var/log/mythtv/mythbackend.log
>> --verbose
>> warning: Unable to find dynamic linker breakpoint function.
>> GDB will be unable to debug shared library initializers
>> and track explicitly loaded dynamic code.
>> [Thread debugging using libthread_db enabled]
>> [New Thread 16384 (LWP 13612)]
>> [New Thread 32769 (LWP 13618)]
>> [New Thread 16386 (LWP 13619)]
>> [New Thread 32771 (LWP 13621)]
>> [New Thread 49156 (LWP 13622)]
>> [New Thread 65541 (LWP 13624)]
>> [New Thread 81926 (LWP 13626)]
>> [New Thread 98311 (LWP 13628)]
>> [New Thread 114696 (LWP 13629)]
>> [New Thread 131081 (LWP 13630)]
>> [New Thread 147466 (LWP 13632)]
>> [New Thread 163851 (LWP 13633)]
>> [New Thread 180236 (LWP 13634)]
>> [New Thread 196621 (LWP 13635)]
>> [New Thread 213006 (LWP 13636)]
>> [New Thread 229391 (LWP 13637)]
>> [New Thread 245776 (LWP 13638)]
>> [New Thread 262161 (LWP 13639)]
>> [New Thread 278546 (LWP 13640)]
>> [New Thread 294931 (LWP 13730)]
>> [New Thread 311315 (LWP 13732)]
>> [New Thread 327699 (LWP 13735)]
>> [New Thread 344083 (LWP 13744)]
>> [New Thread 360468 (LWP 13749)]
>> [New Thread 376853 (LWP 13752)]
>> [New Thread 393238 (LWP 13753)]
>> [New Thread 409619 (LWP 13759)]
>> [New Thread 426003 (LWP 13762)]
>> [New Thread 442388 (LWP 13766)]
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> [Switching to Thread 98311 (LWP 13628)]
>> 0xb6703b8f in mallopt () from /lib/libc.so.6
>> (gdb) thread apply all bt full
>>
>> Thread 26 (Thread 393238 (LWP 13753)):
>> #0 0xb674bd15 in fts_children () from /lib/libc.so.6
>> No symbol table info available.
>> #1 0xb674bdc9 in poll () from /lib/libc.so.6
>> No symbol table info available.
>> #2 0xb7d728c4 in DVBRecorder::StartRecording() (this=0xb602b068)
>> at dvbrecorder.cpp:553
>> ret = 1
>> cardnum = 0
>> polls = {fd = 28, events = 1, revents = 0}
>> #3 0xb7d1ae0e in SpawnEncode(void*) (param=0xb602b090) at tv_rec.cpp:48
>> nvr = (class RecorderBase *) 0xb602b090
>> #4 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> No symbol table info available.
>> #5 0xb70e2e88 in pthread_start_thread_event () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #6 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 25 (Thread 376853 (LWP 13752)):
>> #0 0xb6725de6 in nanosleep () from /lib/libc.so.6
>> No symbol table info available.
>> ---Type <return> to continue, or q <return> to quit---
>>
>> Thread 19 (Thread 278546 (LWP 13640)):
>> #0 0xb70e55a7 in __pthread_sigsuspend () from /lib/libpthread.so.0
>> No symbol table info available.
>> #1 0xb70e5110 in __pthread_wait_for_restart_signal ()
>> from /lib/libpthread.so.0
>> No symbol table info available.
>> #2 0xb70e1eb4 in pthread_cond_wait at GLIBC_2.0 () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #3 0xb6d82229 in QWaitCondition::wait(QMutex*, unsigned long) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #4 0x08089d4d in ProcessRequestThread::run() (this=0xb5e00ba0)
>> at mainserver.cpp:69
>> No locals.
>> #5 0xb6a99655 in QThreadInstance::start(void*) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #6 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> No symbol table info available.
>> #7 0xb70e2e88 in pthread_start_thread_event () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #8 0xb67549aa in clone () from /lib/libc.so.6
>> ---Type <return> to continue, or q <return> to quit---
>> No symbol table info available.
>>
>> Thread 18 (Thread 262161 (LWP 13639)):
>> #0 0xb70e55a7 in __pthread_sigsuspend () from /lib/libpthread.so.0
>> No symbol table info available.
>> #1 0xb70e5110 in __pthread_wait_for_restart_signal ()
>> from /lib/libpthread.so.0
>> No symbol table info available.
>> #2 0xb70e1eb4 in pthread_cond_wait at GLIBC_2.0 () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #3 0xb6d82229 in QWaitCondition::wait(QMutex*, unsigned long) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #4 0x08089d4d in ProcessRequestThread::run() (this=0xb5e00aa0)
>> at mainserver.cpp:69
>> No locals.
>> #5 0xb6a99655 in QThreadInstance::start(void*) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #6 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> No symbol table info available.
>> ---Type <return> to continue, or q <return> to quit---
>> #8 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 17 (Thread 245776 (LWP 13638)):
>> #0 0xb70e55a7 in __pthread_sigsuspend () from /lib/libpthread.so.0
>> No symbol table info available.
>> #1 0xb70e5110 in __pthread_wait_for_restart_signal ()
>> from /lib/libpthread.so.0
>> No symbol table info available.
>> #2 0xb70e1eb4 in pthread_cond_wait at GLIBC_2.0 () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #3 0xb6d82229 in QWaitCondition::wait(QMutex*, unsigned long) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #4 0x08089d4d in ProcessRequestThread::run() (this=0xb5e009a0)
>> at mainserver.cpp:69
>> No locals.
>> #5 0xb6a99655 in QThreadInstance::start(void*) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #6 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> No symbol table info available.
>> #7 0xb70e2e88 in pthread_start_thread_event () from
>> /lib/libpthread.so.0
>> ---Type <return> to continue, or q <return> to quit---
>> No symbol table info available.
>> #8 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 16 (Thread 229391 (LWP 13637)):
>> #0 0xb70e55a7 in __pthread_sigsuspend () from /lib/libpthread.so.0
>> No symbol table info available.
>> #1 0xb70e5110 in __pthread_wait_for_restart_signal ()
>> from /lib/libpthread.so.0
>> No symbol table info available.
>> #2 0xb70e1eb4 in pthread_cond_wait at GLIBC_2.0 () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #3 0xb6d82229 in QWaitCondition::wait(QMutex*, unsigned long) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #4 0x08089d4d in ProcessRequestThread::run() (this=0xb5e00778)
>> at mainserver.cpp:69
>> No locals.
>> #5 0xb6a99655 in QThreadInstance::start(void*) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #6 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> No symbol table info available.
>> ---Type <return> to continue, or q <return> to quit---
>> #7 0xb70e2e88 in pthread_start_thread_event () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #8 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 15 (Thread 213006 (LWP 13636)):
>> #0 0xb70e55a7 in __pthread_sigsuspend () from /lib/libpthread.so.0
>> No symbol table info available.
>> #1 0xb70e5110 in __pthread_wait_for_restart_signal ()
>> from /lib/libpthread.so.0
>> No symbol table info available.
>> #2 0xb70e1eb4 in pthread_cond_wait at GLIBC_2.0 () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #3 0xb6d82229 in QWaitCondition::wait(QMutex*, unsigned long) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #4 0x08089d4d in ProcessRequestThread::run() (this=0xb5e00750)
>> at mainserver.cpp:69
>> No locals.
>> #5 0xb6a99655 in QThreadInstance::start(void*) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #6 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> ---Type <return> to continue, or q <return> to quit---
>> No symbol table info available.
>> #7 0xb70e2e88 in pthread_start_thread_event () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #8 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 14 (Thread 196621 (LWP 13635)):
>> #0 0xb6725de6 in nanosleep () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 13 (Thread 180236 (LWP 13634)):
>> #0 0xb6725de6 in nanosleep () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 12 (Thread 163851 (LWP 13633)):
>> #0 0xb6725de6 in nanosleep () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 11 (Thread 147466 (LWP 13632)):
>> #0 0xb70e8f86 in nanosleep () from /lib/libpthread.so.0
>> No symbol table info available.
>> #1 0x00000001 in ?? ()
>> No symbol table info available.
>> ---Type <return> to continue, or q <return> to quit---
>> #2 0xb70e54c6 in __pthread_timedsuspend_new () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #3 0xb70e20a4 in pthread_cond_timedwait_relative () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #4 0xb6d821dd in QWaitCondition::wait(QMutex*, unsigned long) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #5 0x08090f12 in Scheduler::RunScheduler() (this=0xb6008bb8)
>> at scheduler.cpp:854
>> statuschanged = false
>> recIter = {<_List_iterator_base> = {
>> _M_node = 0x80d6ca8}, <No data fields>}
>> prerollseconds = 0
>> secsleft = 1779
>> nexttv = (EncoderLink *) 0xb6000fa8
>> nextRecording = (ProgramInfo *) 0x8423850
>> nextrectime = {d = {jd = 2453438}, t = {ds = 52200000}}
>> curtime = {d = {jd = 2453438}, t = {ds = 50421091}}
>> lastupdate = {d = {jd = 2453438}, t = {ds = 49794654}}
>> recordfileprefix = {static null = {
>> static null = <same as static member of an already seen type>,
>> d = 0x80be0b8, static shared_null = 0x80be0b8}, d = 0xb6009748,
>> static shared_null = 0x80be0b8}
>> ---Type <return> to continue, or q <return> to quit---
>> startIter = {<_List_iterator_base> = {
>> _M_node = 0x80d6ca8}, <No data fields>}
>> blockShutdown = true
>> idleSince = {d = {jd = 0}, t = {ds = 0}}
>> idleTimeoutSecs = 0
>> idleWaitForRecordingTime = 15
>> firstRun = false
>> fillstart = {tv_sec = 1110289794, tv_usec = 814661}
>> fillend = {tv_sec = 1110289794, tv_usec = 835187}
>> matchTime = 0.052689001
>> placeTime = 0.0205259994
>> #6 0x080942cd in Scheduler::SchedulerThread(void*) (param=0xb6008bb8)
>> at scheduler.cpp:1269
>> sched = (Scheduler *) 0xb6008bb8
>> #7 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> No symbol table info available.
>> #8 0xb70e2e88 in pthread_start_thread_event () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #9 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 10 (Thread 131081 (LWP 13630)):
>> #0 0xb6725de6 in nanosleep () from /lib/libc.so.6
>> ---Type <return> to continue, or q <return> to quit---
>> No symbol table info available.
>>
>> Thread 9 (Thread 114696 (LWP 13629)):
>> #0 0xb6725de6 in nanosleep () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 8 (Thread 98311 (LWP 13628)):
>> #0 0xb6703b8f in mallopt () from /lib/libc.so.6
>> No symbol table info available.
>> #1 0xb6702e46 in malloc () from /lib/libc.so.6
>> No symbol table info available.
>> #2 0xb6868427 in operator new(unsigned) ()
>> from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.so.5
>> No symbol table info available.
>> #3 0xb6db5962 in QString::QString(char const*) ()
>> from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #4 0xb7df9bb4 in DVBSignalMonitor::MonitorLoop() (this=0xb6008670)
>> at dvbsignalmonitor.cpp:55
>> str = {static null = {
>> static null = <same as static member of an already seen type>,
>> d = 0x80be0b8, static shared_null = 0x80be0b8}, d = 0x80c1380,
>> static shared_null = 0x80be0b8}
>> ---Type <return> to continue, or q <return> to quit---
>> stats = {snr = 65278, ss = 55769, ber = 0, ub = 0, status = 31}
>> PrevLockedState = true
>> #5 0xb7dfa2ed in DVBSignalMonitor::SpawnMonitorLoop(void*)
>> (self=0xb6008670)
>> at dvbsignalmonitor.cpp:93
>> No locals.
>> #6 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> No symbol table info available.
>> #7 0xb70e2e88 in pthread_start_thread_event () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #8 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 7 (Thread 81926 (LWP 13626)):
>> #0 0xb674bd15 in fts_children () from /lib/libc.so.6
>> No symbol table info available.
>> #1 0xb674bdc9 in poll () from /lib/libc.so.6
>> No symbol table info available.
>> #2 0xb7daf891 in DVBSIParser::StartSectionReader() (this=0xb6001c18)
>> at dvbsiparser.cpp:241
>> ret = 1
>> buffer =
>> "`òµV\200ÓÈøP\000#:Èa\000éÐÀ\003\000\000\001\000\000\000ÖM\222eng\021Through
>> The Night|A comprehensive look at the day's football events, with the
>> latest
>> results, in-depth analysis and the stories as they
>> break.P\rñ\001\000---Type
>> <return> to continue, or q <return> to quit---
>> engENGLISHP\rò\002\000engENG"...
>> processed = false
>> #3 0xb7d7d167 in DVBChannel::SpawnSectionReader(void*)
>> (param=0xb6001c18)
>> at dvbchannel.cpp:93
>> siparser = (class DVBSIParser *) 0xb6001c18
>> #4 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> No symbol table info available.
>> #5 0xb70e2e88 in pthread_start_thread_event () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #6 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 6 (Thread 65541 (LWP 13624)):
>> #0 0xb6725de6 in nanosleep () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 5 (Thread 49156 (LWP 13622)):
>> #0 0xb6725de6 in nanosleep () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 4 (Thread 32771 (LWP 13621)):
>> #0 0xb6725de6 in nanosleep () from /lib/libc.so.6
>> No symbol table info available.
>> ---Type <return> to continue, or q <return> to quit---
>>
>> Thread 3 (Thread 16386 (LWP 13619)):
>> #0 0xb674bd15 in fts_children () from /lib/libc.so.6
>> No symbol table info available.
>> #1 0xb674bdc9 in poll () from /lib/libc.so.6
>> No symbol table info available.
>> #2 0xb7daf891 in DVBSIParser::StartSectionReader() (this=0x80e32d0)
>> at dvbsiparser.cpp:241
>> ret = 1
>> buffer =
>> "`òµV\200ÓÈøP\000#:Èa\000éÐÀ\003\000\000\001\000\000\000ÖM\222eng\021Through
>> The Night|A comprehensive look at the day's football events, with the
>> latest
>> results, in-depth analysis and the stories as they
>> break.P\rñ\001\000engENGLISHP\rò\002\000engENG"...
>> processed = false
>> #3 0xb7d7d167 in DVBChannel::SpawnSectionReader(void*)
>> (param=0x80e32d0)
>> at dvbchannel.cpp:93
>> siparser = (class DVBSIParser *) 0x80e32d0
>> #4 0xb70e2dfe in pthread_start_thread () from /lib/libpthread.so.0
>> No symbol table info available.
>> #5 0xb70e2e88 in pthread_start_thread_event () from
>> /lib/libpthread.so.0
>> No symbol table info available.
>> #6 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>> ---Type <return> to continue, or q <return> to quit---
>>
>> Thread 2 (Thread 32769 (LWP 13618)):
>> #0 0xb674bd15 in fts_children () from /lib/libc.so.6
>> No symbol table info available.
>> #1 0xb674bdc9 in poll () from /lib/libc.so.6
>> No symbol table info available.
>> #2 0xb70e2abe in __pthread_manager () from /lib/libpthread.so.0
>> No symbol table info available.
>> #3 0xb70e2ced in __pthread_manager_event () from /lib/libpthread.so.0
>> No symbol table info available.
>> #4 0xb67549aa in clone () from /lib/libc.so.6
>> No symbol table info available.
>>
>> Thread 1 (Thread 16384 (LWP 13612)):
>> #0 0xb674e691 in select () from /lib/libc.so.6
>> No symbol table info available.
>> #1 0xb6f250d0 in ?? () from /usr/qt/3/lib/libqt-mt.so.3
>> No symbol table info available.
>> #2 0x00000019 in ?? ()
>> No symbol table info available.
>> #3 0x080d2300 in ?? ()
>> No symbol table info available.
>> #0 0xb6703b8f in mallopt () from /lib/libc.so.6
>> _______________________________________________ mythtv-dev mailing list
>> mythtv-dev at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
Rgds
Scott
More information about the mythtv-dev
mailing list