[mythtv-commits] Ticket #4249: mythfilldatabase segfaulting..
MythTV
mythtv at cvs.mythtv.org
Sat Dec 1 23:40:17 UTC 2007
#4249: mythfilldatabase segfaulting..
------------------------------+---------------------------------------------
Reporter: damian at linux.ie | Owner: nigel
Type: defect | Status: reopened
Priority: critical | Milestone: 0.21
Component: mythfilldatabase | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
------------------------------+---------------------------------------------
Comment(by nigel):
Try this patch first:
{{{
Index: upnptasknotify.cpp
===================================================================
--- upnptasknotify.cpp (revision 15014)
+++ upnptasknotify.cpp (working copy)
@@ -77,10 +77,10 @@
.arg( sUSN )
.arg( m_nMaxAge );
-// VERBOSE(VB_UPNP, QString("UPnpNotifyTask::SendNotifyMsg : %1 : %2 :
%3")
-// .arg( pSocket->address().toString() )
-// .arg( sNT )
-// .arg( sUSN ));
+ VERBOSE(VB_UPNP, QString("UPnpNotifyTask::SendNotifyMsg : %1 : %2 :
%3")
+ .arg( pSocket->address().toString() )
+ .arg( sNT )
+ .arg( sUSN ));
for ( QStringList::Iterator it = m_addressList.begin();
it != m_addressList.end();
@@ -92,6 +92,8 @@
"UPnpNotifyTask::SendNotifyMsg - NULL in
m_addressList");
continue;
}
+ else
+ VERBOSE("UPnpNotifyTask::SendNotifyMsg() - address: " + *it);
QString sHeader = QString( "NOTIFY * HTTP/1.1\r\n"
"HOST: %1:%2\r\n"
@@ -136,10 +138,18 @@
//
----------------------------------------------------------------------
UPnpDevice &device = UPnp::g_UPnpDeviceDesc.m_rootDevice;
+ QString sUDN = QDeepCopy<QString>(device.GetUDN());
- SendNotifyMsg( pMulticast, "upnp:rootdevice", device.GetUDN() );
-// SendNotifyMsg( pBroadcast, "upnp:rootdevice", device.GetUDN() );
+ if (sUDN == "uuid:")
+ {
+ VERBOSE(VB_IMPORTANT, "UPnpNotifyTask::Execute() - No root
device?");
+ //return;
+ }
+
+ SendNotifyMsg( pMulticast, "upnp:rootdevice", sUDN );
+// SendNotifyMsg( pBroadcast, "upnp:rootdevice", sUDN );
+
//
----------------------------------------------------------------------
// Process rest of notifications
//
----------------------------------------------------------------------
}}}
and please provide the -v all output.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4249#comment:7>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list