[reSIProcate] Maybe there have a bug with 1.3 RC1

Karlsson boost.regex at gmail.com
Sat Mar 29 13:02:52 CDT 2008


I'm using RC1 for my UA today, sometime I got a error with StackThread.cxx:

Unhandled exception at 0x00720069 in UASampleD.exe: 0xC0000005: Access
violation writing location 0x109d88de.


The Visual C++ 2005 call stack is stoped on StackThread.cxx line 36:

            beforeProcess();
            mStack.process(fdset);   <------------ This line.
            afterProcess();


This is appears when I shutdown the dum and stack - With 1.22 I do not
encounter this issue.

I have created two threads for dum and stack:
MyDumThread is derived from ThreadIf.

resip::StackThread mStackThread;


There are my source code :
MyDumThread::thread()
{

while(isShutdown() == false)
{
 for (;;)
 {
  Lock lock(mDumMutex);
  if (mDum.process() == false)
  {
   return;
  }
 }
}
}


MyDumThread::release()
{

Lock lock(mDumMutex);
 shutdown();

 mDum.shutdown();
 mStackThread.shutdown();


 waitForShutdown(150);


 while(waitForShutdown(20) == false)
 {
 }

 ThreadIf::detach();


 Sleep(150);

 while(mDumCanbeShutDown == false)
 {
  mDum.process();
  Sleep(20);
 }


 mStackThread.waitForShutdown(150);
 while(mStackThread.waitForShutdown(20) == false)
 {

 }


 mStackThread.detach();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20080330/7d2d31a0/attachment.htm>


More information about the resiprocate-devel mailing list