[mythtv] Segmentation fault in mytv-setup

Laurent ARNAL laurent at clae.net
Fri May 8 10:57:56 UTC 2009


I've get a Segmentation fault in mytv-setup while scanning channel on a 
PVR-350 card.
The stack trace is :

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb61feb90 (LWP 14424)]
0x014c765b in DTVSignalMonitor::GetScanStreamData (this=0x0) at 
484         return dynamic_cast<ScanStreamData*>(stream_data);

#0  0x014c765b in DTVSignalMonitor::GetScanStreamData (this=0x0) at 
#1  0x014e376e in ChannelScanSM::UpdateChannelInfo (this=0x91ff9a0, 
wait_until_complete=false) at channelscan/channelscan_sm.cpp:479
#2  0x014e71a6 in ChannelScanSM::HandleActiveScan (this=0x91ff9a0) at 
#3  0x014e768b in ChannelScanSM::RunScanner (this=0x91ff9a0) at 
#4  0x014e79cb in ChannelScanSM::SpawnScanner (param=0x91ff9a0) at 
#5  0x0013b51f in start_thread () from /lib/libpthread.so.0
#6  0x0690c04e in clone () from /lib/libc.so.6

Looking in the debuger, it seems that stream_data is NULL.
I put a breakpoint in void 
DTVSignalMonitor::SetStreamData(MPEGStreamData *data), but functions 
seems to neither be called.
The only reference I found on this function is in tv_rec.cpp, but I'm 
not sure if I should look there as I'm in mythtv_setup.

Does the stream_data should be setup when we do a channel scan ? or does 
we just need to add a few if (stream_data!=NULL) to correct this ?


More information about the mythtv-dev mailing list