[Live-devel] Crash in AdvancedHashTable::keyMatches

Marlon Reid Marlon at scansoft.co.za
Sun Jun 17 23:50:15 PDT 2012


Hi Ross,
 
I built a small application based on your testRTSPClient for multiple
streams
(http://www.live555.com/liveMedia/doxygen/html/testRTSPClient_8cpp-sourc
e.html).  I am however experiencing a problem that my application
crashes in AdvacnedHashTable::keyMatches because key2 is NULL.  This
happens after trying to create a media sink. I have compared my program
with the testRTSPClient and they seem very similar.  The major
difference is that I am using a FileSink instead of the dummy sink found
in the test program.
 
I will appreciate any assistance in tracking down the cause of this
problem.  I attach the callstack.  Thank you
 
  msvcr90d.dll!strcmp(unsigned char * str1=0x00000000, unsigned char *
str2=0x044ff424)  Line 83 Asm
  minimal.exe!AdvancedHashTable::keyMatches(const char *
key1=0x01fba530, const char * key2=0x00000000)  Line 145 + 0xd bytes C++
  minimal.exe!AdvancedHashTable::lookupKey(const char * key=0x01fba530,
unsigned int & index=0)  Line 135 + 0x13 bytes C++
  minimal.exe!AdvancedHashTable::Add(const char * key=0x01fba530, void *
value=0x01fba528)  Line 59 + 0x10 bytes C++
  minimal.exe!MediaLookupTable::addNew(Medium * medium=0x01fba528, char
* mediumName=0x01fba530)  Line 160 + 0x1d bytes C++
  minimal.exe!Medium::Medium(UsageEnvironment & env={...})  Line 58 C++
  minimal.exe!MediaSink::MediaSink(UsageEnvironment & env={...})  Line
28 + 0x1a bytes C++
  minimal.exe!FileSink::FileSink(UsageEnvironment & env={...}, _iobuf *
fid=0x73f01448, unsigned int bufferSize=20000, const char *
perFrameFileNamePrefix=0x00000000)  Line 33 + 0x49 bytes C++
  minimal.exe!FileSink::createNew(UsageEnvironment & env={...}, const
char * fileName=0x01fba23c, unsigned int bufferSize=20000, unsigned int
oneFilePerFrame=0)  Line 67 + 0x32 bytes C++
> minimal.exe!CStreamReceiver::ContinueAfterSETUP(RTSPClient *
rtspClient=0x01fa7e98, int resultCode=0, char * resultString=0x00000000)
Line 157 + 0x1c bytes C++
  minimal.exe!RTSPClient::handleResponseBytes(int newBytesRead=203)
Line 1570 + 0x20 bytes C++
  minimal.exe!RTSPClient::incomingDataHandler1()  Line 1319 C++
  minimal.exe!RTSPClient::incomingDataHandler(void *
instance=0x01fa7e98, int __formal=2)  Line 1312 C++
  minimal.exe!BasicTaskScheduler::SingleStep(unsigned int
maxDelayTime=0)  Line 146 + 0x1e bytes C++
  minimal.exe!BasicTaskScheduler0::doEventLoop(char *
watchVariable=0x0072ce70)  Line 80 + 0x11 bytes C++
  minimal.exe!CStreamReceiver::RunEventLoop(UsageEnvironment *
env=0x01fa5fa0, char * watchVariable=0x0072ce70)  Line 46 C++
  minimal.exe!boost::_mfi::mf2<void,CStreamReceiver,UsageEnvironment
*,char *>::operator()(CStreamReceiver * p=0x01fa5a10, UsageEnvironment *
a1=0x01fa5fa0, char * a2=0x0072ce70)  Line 275 C++
  minimal.exe!boost::_bi::list3<boost::_bi::value<CStreamReceiver
*>,boost::_bi::value<UsageEnvironment *>,boost::_bi::value<char *>
>::operator()<boost::_mfi::mf2<void,CStreamReceiver,UsageEnvironment
*,char *>,boost::_bi::list0>(boost::_bi::type<void> __formal={...},
boost::_mfi::mf2<void,CStreamReceiver,UsageEnvironment *,char *> &
f={...}, boost::_bi::list0 & a={...}, boost::_bi::type<void>
__formal={...})  Line 349 C++
 
minimal.exe!boost::_bi::bind_t<void,boost::_mfi::mf2<void,CStreamReceive
r,UsageEnvironment *,char
*>,boost::_bi::list3<boost::_bi::value<CStreamReceiver
*>,boost::_bi::value<UsageEnvironment *>,boost::_bi::value<char *> >
>::operator()()  Line 21 C++
 
minimal.exe!boost::thread::thread_data<boost::_bi::bind_t<void,boost::_m
fi::mf2<void,CStreamReceiver,UsageEnvironment *,char
*>,boost::_bi::list3<boost::_bi::value<CStreamReceiver
*>,boost::_bi::value<UsageEnvironment *>,boost::_bi::value<char *> > >
>::run()  Line 186 C++
  minimal.exe!boost::thread::thread_start_function(void *
param=0x009299b8)  Line 177 C++
  msvcr90d.dll!_callthreadstartex()  Line 348 + 0xf bytes C
  msvcr90d.dll!_threadstartex(void * ptd=0x01fadbb0)  Line 331 C
  kernel32.dll!764e339a()  
  [Frames below may be incorrect and/or missing, no symbols loaded for
kernel32.dll] 
  ntdll.dll!77519ef2()  
  ntdll.dll!77519ec5()  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120618/4892d190/attachment.html>


More information about the live-devel mailing list