[mythtv] Re: mythbackend crashes with segmentation fault after the
specific sequences of events.
Mudit Wahal
mwahal at gmail.com
Thu Jun 16 23:52:00 UTC 2005
I upgraded the libqt3 to the latest version, still getting same crash.
Here is the latest stack trace with entire myth confiured and
recompiled with --enable-debug=true flag.
HTH.
Thanks
Mudit
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1235786048 (LWP 11276)]
0xb6ec7bdc in QMutex::lock () from /usr/lib/libqt-mt.so.3
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) ################ stack trace for all ##################
(gdb) thread apply all bt full
Thread 17 (Thread -1349076048 (LWP 11304)):
#0 0xb6784523 in poll () from /lib/tls/libc.so.6
No symbol table info available.
#1 0xb7d4d761 in DVBRecorder::StartRecording (this=0x81209a8)
at dvbrecorder.cpp:580
ret = 1
cardnum = 0
polls = {
fd = 28,
events = 1,
revents = 0
}
#2 0xb7ceebda in SpawnEncode (param=0x81209d0) at tv_rec.cpp:48
nvr = (class RecorderBase *) 0x81209d0
#3 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#4 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 16 (Thread -1340687440 (LWP 11303)):
#0 0xb675e99c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1 0xb678728a in usleep () from /lib/tls/libc.so.6
No symbol table info available.
#2 0xb7b7fb2b in ThreadedFileWriter::DiskLoop (this=0x8103708)
at RingBuffer.cpp:276
size = 0
written = 0
timer = {
ds = 60294654
---Type <return> to continue, or q <return> to quit---
}
#3 0xb7b7eead in ThreadedFileWriter::boot_writer (wotsit=0x8103708)
at RingBuffer.cpp:120
fw = (ThreadedFileWriter *) 0x8103708
#4 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 13 (Thread -1330197584 (LWP 11296)):
#0 0xb675e99c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1 0xb678728a in usleep () from /lib/tls/libc.so.6
No symbol table info available.
#2 0xb7cfd7a2 in TVRec::StopLiveTV (this=0xb636d008) at tv_rec.cpp:1787
No locals.
#3 0x080616fd in EncoderLink::StopLiveTV (this=0x8102cf8) at
encoderlink.cpp:419
No locals.
#4 0x08089cdf in MainServer::HandleRecorderQuery (this=0x81060b8,
slist=@0xb0b6ca50, commands=@0xb0b6ca30, pbs=0x80f9778) at
mainserver.cpp:2260
pbssock = (struct QSocket *) 0x8107390
recnum = 1
iter = {
node = 0x8103008
}
enc = (EncoderLink *) 0x8102cf8
command = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
---Type <return> to continue, or q <return> to quit---
},
d = 0x8120960,
static shared_null = 0x80d5070
}
retlist = {
<QValueList<QString>> = {
sh = 0x810c298
}, <No data fields>}
#5 0x080743a8 in MainServer::ProcessRequestWork (this=0x81060b8,
sock=0x8107390)
at mainserver.cpp:350
listline = {
<QValueList<QString>> = {
sh = 0x812d470
}, <No data fields>}
line = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80ef8d0,
static shared_null = 0x80d5070
}
tokens = {
<QValueList<QString>> = {
sh = 0x80f9890
}, <No data fields>}
command = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
---Type <return> to continue, or q <return> to quit---
static shared_null = 0x80d5070
},
d = 0x8102470,
static shared_null = 0x80d5070
}
pbs = (PlaybackSock *) 0x80f9778
#6 0x08072f28 in MainServer::ProcessRequest (this=0x81060b8, sock=0x8107390)
at mainserver.cpp:202
No locals.
#7 0x0809c448 in ProcessRequestThread::run (this=0x8105d98) at
mainserver.cpp:74
No locals.
#8 0xb6bc24ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#9 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#10 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 12 (Thread -1321808976 (LWP 11295)):
#0 0xb68d7295 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
No symbol table info available.
#1 0xb6ec8658 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2 0x0809c425 in ProcessRequestThread::run (this=0x8103548) at
mainserver.cpp:69
No locals.
#3 0xb6bc24ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
Thread 11 (Thread -1313420368 (LWP 11294)):
#0 0xb68d7295 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
No symbol table info available.
#1 0xb6ec8658 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2 0x0809c425 in ProcessRequestThread::run (this=0x81037f8) at
mainserver.cpp:69
No locals.
#3 0xb6bc24ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 10 (Thread -1305031760 (LWP 11293)):
#0 0xb68d7295 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
No symbol table info available.
#1 0xb6ec8658 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2 0x0809c425 in ProcessRequestThread::run (this=0x8103790) at
mainserver.cpp:69
No locals.
#3 0xb6bc24ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 9 (Thread -1296643152 (LWP 11292)):
#0 0xb68d7295 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#1 0xb6ec8658 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2 0x0809c425 in ProcessRequestThread::run (this=0x81061a0) at
mainserver.cpp:69
No locals.
#3 0xb6bc24ea in QThreadInstance::start () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 8 (Thread -1288254544 (LWP 11291)):
#0 0xb675e99c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1 0xb675e7af in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#2 0xb7cb5c2f in JobQueue::ProcessQueue (this=0x81033c8) at jobqueue.cpp:469
chanid = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80d5070,
static shared_null = 0x80d5070
}
starttime = {
d = {
jd = 0
},
---Type <return> to continue, or q <return> to quit---
t = {
ds = 0
}
}
startts = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80d5070,
static shared_null = 0x80d5070
}
type = -1208019647
id = 0
cmds = 0
flags = 0
status = 0
hostname = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80d5070,
static shared_null = 0x80d5070
}
sleepTime = 60
jobStatus = {
sh = 0x811d5b8
}
---Type <return> to continue, or q <return> to quit---
maxJobs = 1
queueStartTimeStr = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x8114230,
static shared_null = 0x80d5070
}
queueEndTimeStr = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80f4968,
static shared_null = 0x80d5070
}
queueStartTime = 0
queueEndTime = 0
curQTime = {
ds = 0
}
curTime = 0
message = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
---Type <return> to continue, or q <return> to quit---
d = 0x80d5070,
static shared_null = 0x80d5070
}
tmpStr = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80d5070,
static shared_null = 0x80d5070
}
jobs = {
sh = 0x80fb730
}
atMax = false
inTimeWindow = true
startedJobAlready = false
#3 0xb7cb0950 in JobQueue::RunQueueProcesser (this=0x81033c8) at
jobqueue.cpp:135
No locals.
#4 0xb7cb0979 in JobQueue::QueueProcesserThread (param=0x81033c8)
at jobqueue.cpp:141
jobqueue = (JobQueue *) 0x81033c8
#5 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 7 (Thread -1279865936 (LWP 11290)):
#0 0xb675e99c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#1 0xb675e7af in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#2 0x080b7a39 in HouseKeeper::RunHouseKeeping (this=0x8101fe0)
at housekeeper.cpp:175
period = 1
maxhr = 24
minhr = 20
dbTag = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x811dcb0,
static shared_null = 0x80d5070
}
#3 0x080b8569 in HouseKeeper::doHouseKeepingThread (param=0x8101fe0)
at housekeeper.cpp:236
hkeeper = (HouseKeeper *) 0x8101fe0
#4 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 6 (Thread -1271477328 (LWP 11289)):
#0 0xb675e99c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1 0xb675e7af in sleep () from /lib/tls/libc.so.6
No symbol table info available.
#2 0x0805999d in AutoExpire::RunExpirer (this=0x8103288) at autoexpire.cpp:158
statbuf = {
---Type <return> to continue, or q <return> to quit---
f_type = 61267,
f_bsize = 4096,
f_blocks = 41172667,
f_bfree = 6549201,
f_bavail = 6549201,
f_files = 40224,
f_ffree = 19389,
f_fsid = {
__val = {0, 0}
},
f_namelen = 255,
f_frsize = 4096,
f_spare = {0, 0, 0, 0, 0}
}
freespace = 24
minFree = 0
recordfileprefix = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x8102730,
static shared_null = 0x80d5070
}
#3 0x08059f9b in AutoExpire::ExpirerThread (param=0x8103288) at
autoexpire.cpp:200
expirer = (AutoExpire *) 0x8103288
#4 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
Thread 5 (Thread -1263088720 (LWP 11288)):
#0 0xb68d7440 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib/tls/libpthread.so.0
No symbol table info available.
#1 0xb6ec8607 in QWaitCondition::wait () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#2 0x080a42b8 in Scheduler::RunScheduler (this=0x80f5048) at scheduler.cpp:878
statuschanged = false
recIter = {
<std::_List_iterator_base> = {
_M_node = 0x81198a0
}, <No data fields>}
prerollseconds = 0
secsleft = 2704
nexttv = (EncoderLink *) 0x0
nextRecording = (ProgramInfo *) 0x811b9f8
nextrectime = {
d = {
jd = 2453538
},
t = {
ds = 63000000
}
}
curtime = {
d = {
jd = 2453538
},
t = {
ds = 60296984
---Type <return> to continue, or q <return> to quit---
}
}
lastupdate = {
d = {
jd = 2453538
},
t = {
ds = 60276837
}
}
recordfileprefix = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x8105ba8,
static shared_null = 0x80d5070
}
startIter = {
<std::_List_iterator_base> = {
_M_node = 0x81198a0
}, <No data fields>}
blockShutdown = true
idleSince = {
d = {
jd = 0
},
t = {
ds = 0
}
---Type <return> to continue, or q <return> to quit---
}
idleTimeoutSecs = 0
idleWaitForRecordingTime = 15
firstRun = false
fillstart = {
tv_sec = 1118965476,
tv_usec = 871522
}
fillend = {
tv_sec = 1118965476,
tv_usec = 929218
}
matchTime = 0.0337149985
placeTime = 0.0576959997
#3 0x080a7d1f in Scheduler::SchedulerThread (param=0x80f5048)
at scheduler.cpp:1293
sched = (Scheduler *) 0x80f5048
#4 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 4 (Thread -1254700112 (LWP 11286)):
#0 0xb68d5ce3 in pthread_join () from /lib/tls/libpthread.so.0
No symbol table info available.
#1 0xb7cf4605 in TVRec::TeardownRecorder (this=0xb636d008, killFile=true)
at tv_rec.cpp:760
message = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
---Type <return> to continue, or q <return> to quit---
static shared_null = 0x80d5070
},
d = 0x8114248,
static shared_null = 0x80d5070
}
me = {
<QCustomEvent> = {
<> = {<No data fields>},
members of QCustomEvent:
d = 0x0
},
members of MythEvent:
message = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x8114248,
static shared_null = 0x80d5070
},
extradata = {
<QValueList<QString>> = {
sh = 0x80f59b0
}, <No data fields>}
}
blank_frame_map = {
sh = 0x8102f40
}
oldProfileName = {
static null = {
---Type <return> to continue, or q <return> to quit---
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x8101f30,
static shared_null = 0x80d5070
}
filelen = 0
#2 0xb7cf35c6 in TVRec::HandleStateChange (this=0xb636d008) at tv_rec.cpp:638
tmpInternalState = kState_None
changed = true
startRecorder = false
closeRecorder = true
killRecordingFile = true
statename = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x8102440,
static shared_null = 0x80d5070
}
origname = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x811e580,
static shared_null = 0x80d5070
---Type <return> to continue, or q <return> to quit---
}
#3 0xb7cf54d0 in TVRec::RunTV (this=0xb636d008) at tv_rec.cpp:916
No locals.
#4 0xb7cf5471 in TVRec::EventThread (param=0xb636d008) at tv_rec.cpp:900
thetv = (TVRec *) 0xb636d008
#5 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#6 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 3 (Thread -1246311504 (LWP 11283)):
#0 0xb675e99c in nanosleep () from /lib/tls/libc.so.6
No symbol table info available.
#1 0xb678728a in usleep () from /lib/tls/libc.so.6
No symbol table info available.
#2 0xb7dbcb66 in SIScan::StartScanner (this=0x8101620) at siscan.cpp:121
No locals.
#3 0xb7ceec05 in SpawnScanner (param=0x8101620) at tv_rec.cpp:56
scanner = (class SIScan *) 0x8101620
#4 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#5 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 2 (Thread -1237922896 (LWP 11281)):
#0 0xb6784523 in poll () from /lib/tls/libc.so.6
No symbol table info available.
#1 0xb7d94648 in DVBSIParser::StartSectionReader (this=0x80fd8a0)
at dvbsiparser.cpp:241
ret = 1
buffer =
"��o\001\203�\000\000\000\002\000K\000B\000W\000B\000-\000H\000D�P\---Type
<return> to continue, or q <return> to quit---
001\004\000\000\000\000\001\203\000\003O�\000\001�\021�\017�1\002\002�1\000\000\000\201�4eng\000K\000B\000W\000B\000-\000S\000D�P\002\004\000\000\000\000\001\203\000\004O�\000\002�\021�\017�A\002\002�A\000\000\000\201�Deng�\000\216\205\016m�\000\000\003��\000\001\003�\003�\000\000\0034�\000�\000\030��ipwrecked
en route to England.FW*�eng\001\000\000\023Megaman: NT
Warrior�\023"...
processed = false
#2 0xb7d589af in DVBChannel::SpawnSectionReader (param=0x80fd8a0)
at dvbchannel.cpp:93
siparser = (class DVBSIParser *) 0x80fd8a0
#3 0xb68d4b63 in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#4 0xb678d18a in clone () from /lib/tls/libc.so.6
No symbol table info available.
Thread 1 (Thread -1235786048 (LWP 11276)):
#0 0xb6ec7bdc in QMutex::lock () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#1 0x080997b4 in RefSocket::Lock (this=0x812d0e8) at server.h:22
No locals.
#2 0x080768e3 in MainServer::customEvent (this=0x81060b8, e=0x8120fb0)
at mainserver.cpp:545
pbs = (PlaybackSock *) 0x80f9be0
sock = (RefSocket *) 0x812d0e8
sendGlobal = false
sentSet = {
<QGList> = {
<> = {<No data fields>},
members of QGList:
firstNode = 0x80fcce0,
lastNode = 0x80fcce0,
curNode = 0x80fcce0,
---Type <return> to continue, or q <return> to quit---
curIndex = 0,
numNodes = 1,
iterators = 0x0
}, <No data fields>}
iter = {
<std::iterator<std::random_access_iterator_tag, PlaybackSock*, int,
PlaybackSock**, PlaybackSock*&>> = {<No data fields>},
members of __gnu_cxx::__normal_iterator<PlaybackSock**,
std::vector<PlaybackSock*, std::allocator<PlaybackSock*> > >:
_M_current = 0x812dcb0
}
broadcast = {
<QValueList<QString>> = {
sh = 0x8102648
}, <No data fields>}
sendstuff = true
#3 0xb6c28f2c in QObject::event () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#4 0xb6bcee1f in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#5 0xb6bce41e in QApplication::notify () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#6 0xb6bcfc16 in QApplication::sendPostedEvents () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#7 0xb6bcfa96 in QApplication::sendPostedEvents () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#8 0xb6b7792a in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#9 0xb6be11d8 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#10 0xb6be1088 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#11 0xb6bcf071 in QApplication::exec () from /usr/lib/libqt-mt.so.3
No symbol table info available.
#12 0x08070a2e in main (argc=3, argv=0xbffffc54) at main.cpp:587
a = <incomplete type>
logfile = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80e8958,
static shared_null = 0x80d5070
}
binname = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80e8990,
static shared_null = 0x80d5070
}
verboseString = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80e89d0,
static shared_null = 0x80d5070
---Type <return> to continue, or q <return> to quit---
}
daemonize = false
printsched = false
testsched = false
resched = false
nosched = false
printexpire = false
logfd = -1
pidfs = <incomplete type>
port = 6543
statusport = 6544
myip = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80f4a68,
static shared_null = 0x80d5070
}
masterip = {
static null = {
static null = <same as static member of an already seen type>,
d = 0x80d5070,
static shared_null = 0x80d5070
},
d = 0x80f4ad8,
static shared_null = 0x80d5070
}
ismaster = true
runsched = true
More information about the mythtv-dev
mailing list