[mythtv] Backtrace for backend-segfault with cvs checkout Friday-Aug-27-2004 9 AM CDT

James Meyer james.meyer at operamail.com
Fri Aug 27 06:38:53 EDT 2004


On Friday 27 August 2004 15:04, Isaac Richards wrote:
> On Friday 27 August 2004 05:42 am, James  Meyer wrote:
> > Attached are two backtrace files after mythbackend segfaults.
> > All it takes for the backend to segfault is to change the channel a few
> > times using the up/down arrow keys. The segfault will also occur sometimes
> > when a recording starts and live-tv is in current use. Backtrace1 occured
> > when changing channel's with the arrow keys
> > Backtrace2 occured when scrolling through  the guide data.
> >
> > As always this does not occur on 0.15.1  and the last time I remember cvs
> > not having this problem is  around Augest 10th. System specs below
> 
> You cut off the most important part of the backtrace - the beginning, where it 
> shows where it crashed.  Both of these aren't really useable.
> 
> Isaac
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> 
Another full backtrace attached, this one also occured while moving up/down in the guide data.
-jm




-------------- next part --------------
GNU gdb 6.1-debian
Copyright 2004 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 "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/mythbackend 
[Thread debugging using libthread_db enabled]
[New Thread 1105101408 (LWP 6411)]
2004-08-27 10:35:06 mythbackend: MythBackend started as master server
2004-08-27 10:35:07 mythbackend version: 0.15.20040528-1 www.mythtv.org
2004-08-27 10:35:07 Enabled verbose msgs : important general
2004-08-27 10:35:09 Found changes in the todo list.
2004-08-27 10:35:10 Scheduled 80 items in 0.679586 seconds.
2004-08-27 10:35:10 Seem to be woken up by USER
2004-08-27 10:35:14 MainServer::HandleAnnounce Playback
2004-08-27 10:35:14 adding: chrome as a client (events: 0)
2004-08-27 10:35:14 MainServer::HandleAnnounce Playback
2004-08-27 10:35:14 adding: chrome as a client (events: 1)
2004-08-27 10:35:14 MainServer::HandleAnnounce Playback
2004-08-27 10:35:14 adding: chrome as a client (events: 0)
2004-08-27 10:35:14 MainServer::HandleAnnounce Playback
2004-08-27 10:35:14 adding: chrome as a client (events: 0)
2004-08-27 10:35:14 adding: chrome as a remote ringbuffer
2004-08-27 10:35:14 Changing from None to WatchingLiveTV
2004-08-27 10:35:17 mythbackend: Running housekeeping thread
2004-08-27 10:35:20 MainServer::HandleAnnounce Playback
2004-08-27 10:35:20 adding: chrome as a client (events: 0)
2004-08-27 10:35:20 MainServer::HandleAnnounce FileTransfer
2004-08-27 10:35:20 adding: chrome as a remote file transfer
2004-08-27 10:35:22 MainServer::HandleAnnounce Playback
2004-08-27 10:35:22 adding: chrome as a client (events: 0)
2004-08-27 10:35:22 MainServer::HandleAnnounce FileTransfer
2004-08-27 10:35:22 adding: chrome as a remote file transfer
[New Thread 1115040688 (LWP 6423)]
[New Thread 1123687344 (LWP 6425)]
[New Thread 1132075952 (LWP 6426)]
[New Thread 1140464560 (LWP 6427)]
[New Thread 1148853168 (LWP 6428)]
[New Thread 1157241776 (LWP 6429)]
[New Thread 1165630384 (LWP 6430)]
[New Thread 1174018992 (LWP 6431)]
[New Thread 1182407600 (LWP 6432)]
[New Thread 1190796208 (LWP 6433)]
[New Thread 1199184816 (LWP 6434)]
[New Thread 1207573424 (LWP 6435)]
[New Thread 1218063280 (LWP 6438)]
[New Thread 1226451888 (LWP 6439)]
[Thread 1165630384 (LWP 6430) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1199184816 (LWP 6434)]
0x4105846a in QSocket::bytesToWrite () from /usr/lib/libqt-mt.so.3
(gdb) thread apply all bt full

Thread 15 (Thread 1226451888 (LWP 6439)):
#0  0x4139c4d1 in __read_nocancel () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0x40389192 in MpegRecorder::StartRecording (this=0x816e708)
    at mpegrecorder.cpp:410
	buffer = (unsigned char *) 0x491a3008 'ÿ' <repeats 64 times>
	ret = 14336
	elapsedTimer = {ds = 0}
	elapsed = 0
#2  0x4036bc76 in SpawnEncode (param=0x816e708) at tv_rec.cpp:40
	nvr = (class RecorderBase *) 0x816e708
#3  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#4  0x00000000 in ?? ()
No symbol table info available.

Thread 14 (Thread 1218063280 (LWP 6438)):
#0  0x4153551c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x4155ec3b in usleep () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x4024d871 in ThreadedFileWriter::DiskLoop (this=0x81b7bf8) at RingBuffer.cpp:269
	size = 0
	timer = {ds = 38122083}
#3  0x4024cec5 in ThreadedFileWriter::boot_writer (wotsit=0x81b7bf8)
    at RingBuffer.cpp:115
	fw = (ThreadedFileWriter *) 0x81b7bf8
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 13 (Thread 1207573424 (LWP 6435)):
#0  0x4139a115 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0x410f3208 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2  0x080835e9 in ProcessRequestThread::run (this=0x80e4a30) at mainserver.cpp:67
No locals.
#3  0x40dfb4ca in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 12 (Thread 1199184816 (LWP 6434)):
#0  0x4105846a in QSocket::bytesToWrite () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#1  0x08068672 in MainServer::SendResponse (this=0x80ec460, socket=0x819c298, 
    commands=@0x477a1860) at mainserver.cpp:649
No locals.
#2  0x08077e61 in MainServer::HandleFileTransferQuery (this=0x80ec460, 
    slist=@0x477a1a40, commands=@0x477a1a20, pbs=0x80e5a00) at mainserver.cpp:2343
	pbssock = (struct QSocket *) 0x819c298
	recnum = 28
	ft = (FileTransfer *) 0x491e2008
	command = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x8177128, static shared_null = 0x80bb380}
	retlist = {<QValueList<QString>> = {sh = 0x81ecb38}, <No data fields>}
#3  0x08064a9b in MainServer::ProcessRequest (this=0x80ec460, sock=0x819c298)
    at mainserver.cpp:325
	listline = {<QValueList<QString>> = {sh = 0x81bfb00}, <No data fields>}
	line = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x80e1e10, static shared_null = 0x80bb380}
	tokens = {<QValueList<QString>> = {sh = 0x81ecb48}, <No data fields>}
	command = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x8199970, static shared_null = 0x80bb380}
	pbs = (PlaybackSock *) 0x80e5a00
#4  0x0808360c in ProcessRequestThread::run (this=0x80ec3e8) at mainserver.cpp:72
No locals.
#5  0x40dfb4ca in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#6  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#7  0x00000000 in ?? ()
No symbol table info available.

Thread 11 (Thread 1190796208 (LWP 6433)):
#0  0x4139a115 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0x410f3208 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2  0x080835e9 in ProcessRequestThread::run (this=0x80f25c0) at mainserver.cpp:67
No locals.
#3  0x40dfb4ca in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 10 (Thread 1182407600 (LWP 6432)):
#0  0x4139a2c0 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0x410f31b7 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2  0x40250fcf in RingBuffer::Read (this=0x818edb0, buf=0x427630d0, count=256000)
    at RingBuffer.cpp:1019
	ret = -1
#3  0x4037c127 in TVRec::RequestRingBufferBlock (this=0x42763008, size=256000)
    at tv_rec.cpp:2176
	request = 256000
	tot = 0
	ret = 0
#4  0x0805bc88 in EncoderLink::RequestRingBufferBlock (this=0x80ec518, size=256000)
    at encoderlink.cpp:620
No locals.
#5  0x080767af in MainServer::HandleRecorderQuery (this=0x80ec460, slist=@0x467a1a40, 
    commands=@0x467a1a20, pbs=0x816cb58) at mainserver.cpp:2184
	size = 256000
	ret = 1
	pbssock = (struct QSocket *) 0x81852a0
	recnum = 2
	iter = {node = 0x80ed5c0}
	enc = (EncoderLink *) 0x80ec518
	command = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x8177e28, static shared_null = 0x80bb380}
	retlist = {<QValueList<QString>> = {sh = 0x8175ee0}, <No data fields>}
#6  0x0806474f in MainServer::ProcessRequest (this=0x80ec460, sock=0x81852a0)
    at mainserver.cpp:303
	listline = {<QValueList<QString>> = {sh = 0x81748b8}, <No data fields>}
	line = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x819e0b8, static shared_null = 0x80bb380}
	tokens = {<QValueList<QString>> = {sh = 0x81cf0d8}, <No data fields>}
	command = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x816e850, static shared_null = 0x80bb380}
	pbs = (PlaybackSock *) 0x816cb58
#7  0x0808360c in ProcessRequestThread::run (this=0x80f2480) at mainserver.cpp:72
No locals.
#8  0x40dfb4ca in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#9  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#10 0x00000000 in ?? ()
No symbol table info available.

Thread 9 (Thread 1174018992 (LWP 6431)):
#0  0x4139a115 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0x410f3208 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2  0x080835e9 in ProcessRequestThread::run (this=0x80ec3c0) at mainserver.cpp:67
No locals.
#3  0x40dfb4ca in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 7 (Thread 1157241776 (LWP 6429)):
#0  0x4153551c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x41535358 in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x0809b694 in Transcoder::TranscodePoll (this=0x80e1e70) at transcoder.cpp:432
	transData = (TranscodeData *) 0x0
#3  0x0809b77d in Transcoder::TranscodePollThread (param=0x80e1e70)
    at transcoder.cpp:450
	thetv = (Transcoder *) 0x80e1e70
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 6 (Thread 1148853168 (LWP 6428)):
#0  0x4153551c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x41535358 in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x0809db18 in HouseKeeper::RunHouseKeeping (this=0x80ec670) at housekeeper.cpp:160
	period = 1
	maxhr = 23
	minhr = 1
#3  0x0809e649 in HouseKeeper::doHouseKeepingThread (param=0x80ec670)
    at housekeeper.cpp:219
	hkeeper = (HouseKeeper *) 0x80ec670
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 5 (Thread 1140464560 (LWP 6427)):
#0  0x4153551c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x41535358 in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x08055b3b in AutoExpire::RunExpirer (this=0x80ee2c0) at autoexpire.cpp:126
	statbuf = {f_type = 1382369651, f_bsize = 4096, f_blocks = 29303664, 
  f_bfree = 15433502, f_bavail = 15433502, f_files = 0, f_ffree = 0, f_fsid = {
    __val = {0, 0}}, f_namelen = 255, f_frsize = 4096, f_spare = {0, 0, 0, 0, 0}}
	freespace = 58
	minFree = 3
	recordfileprefix = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x80e2260, static shared_null = 0x80bb380}
#3  0x08055bb5 in AutoExpire::ExpirerThread (param=0x80ee2c0) at autoexpire.cpp:133
	expirer = (AutoExpire *) 0x80ee2c0
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 4 (Thread 1132075952 (LWP 6426)):
#0  0x4153551c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x41535358 in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x0808c95c in Scheduler::RunScheduler (this=0x80ee150) at scheduler.cpp:1099
	statuschanged = false
	recIter = {<std::_List_iterator_base> = {
    _M_node = 0x81d5340}, <No data fields>}
	prerollseconds = 0
	secsleft = 19477
	nexttv = (EncoderLink *) 0x0
	nextRecording = (ProgramInfo *) 0x8115688
	nextrectime = {d = {jd = 2453245}, t = {ds = 57600000}}
	curtime = {d = {jd = 2453245}, t = {ds = 38122316}}
	lastupdate = {d = {jd = 2453245}, t = {ds = 38109596}}
	recordfileprefix = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x80ec380, static shared_null = 0x80bb380}
	startIter = {<std::_List_iterator_base> = {
    _M_node = 0x81d5340}, <No data fields>}
	blockShutdown = true
	idleSince = {d = {jd = 0}, t = {ds = 0}}
	idleTimeoutSecs = 0
	idleWaitForRecordingTime = 15
	firstRun = false
	fillstart = {tv_sec = 1093620909, tv_usec = 597169}
	fillend = {tv_sec = 1093620910, tv_usec = 276755}
#3  0x0808d243 in Scheduler::SchedulerThread (param=0x80ee150) at scheduler.cpp:1208
	sched = (Scheduler *) 0x80ee150
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 3 (Thread 1123687344 (LWP 6425)):
#0  0x4153551c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x4155ec3b in usleep () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x403719aa in TVRec::RunTV (this=0x42763008) at tv_rec.cpp:843
No locals.
#3  0x4037193f in TVRec::EventThread (param=0x42763008) at tv_rec.cpp:825
	thetv = (TVRec *) 0x42763008
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 2 (Thread 1115040688 (LWP 6423)):
#0  0x4153551c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x4155ec3b in usleep () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x403719aa in TVRec::RunTV (this=0x41f24008) at tv_rec.cpp:843
No locals.
#3  0x4037193f in TVRec::EventThread (param=0x41f24008) at tv_rec.cpp:825
	thetv = (TVRec *) 0x41f24008
#4  0x413979b4 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5  0x00000000 in ?? ()
No symbol table info available.

Thread 1 (Thread 1105101408 (LWP 6411)):
#0  0x4139c266 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
No symbol table info available.
#1  0x41399745 in _L_mutex_lock_24 () from /lib/tls/libpthread.so.0
No symbol table info available.
#2  0xbffff720 in ?? ()
No symbol table info available.
#3  0x00000001 in ?? ()
No symbol table info available.
#4  0x080ed2e0 in ?? ()
No symbol table info available.
#5  0x080e5228 in ?? ()
No symbol table info available.
#6  0x412b016c in ?? () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#7  0x080c3818 in ?? ()
No symbol table info available.
#8  0x410f1dbc in QRecursiveMutexPrivate::lock () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#9  0x410f21c4 in QMutex::lock () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#10 0x40db22aa in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#11 0x40e1b498 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#12 0x40e1b348 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#13 0x40e07d51 in QApplication::exec () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#14 0x080615b2 in main (argc=1, argv=0xbffffd64) at main.cpp:606
	a = <incomplete type>
	logfile = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x80c2fc0, static shared_null = 0x80bb380}
	binname = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x80c2ff8, static shared_null = 0x80bb380}
	verboseString = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x80c3038, static shared_null = 0x80bb380}
	daemonize = false
	printsched = false
	testsched = false
	nosched = false
	printexpire = false
	logfd = -1
	pidfs = <incomplete type>
	db = (struct QSqlDatabase *) 0x80caaa8
	subthread = (struct QSqlDatabase *) 0x80cae80
	expthread = (struct QSqlDatabase *) 0x80cc380
	hkthread = (struct QSqlDatabase *) 0x80cc840
	transthread = (struct QSqlDatabase *) 0x80cb408
	flagthread = (struct QSqlDatabase *) 0x80cb2b0
	msdb = (struct QSqlDatabase *) 0x80cbd00
	port = 6543
	statusport = 6544
	myip = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x80e1f28, static shared_null = 0x80bb380}
	masterip = {static null = {
    static null = <same as static member of an already seen type>, d = 0x80bb380, 
    static shared_null = 0x80bb380}, d = 0x80e1df8, static shared_null = 0x80bb380}
	ismaster = true
	runsched = true
	expdb = (struct QSqlDatabase *) 0x80cc380
	hkdb = (struct QSqlDatabase *) 0x80cc840
	trandb = (struct QSqlDatabase *) 0x80cb408
	flagdb = (struct QSqlDatabase *) 0x80cb2b0
#0  0x4105846a in QSocket::bytesToWrite () from /usr/lib/libqt-mt.so.3
(gdb) 


More information about the mythtv-dev mailing list