[reSIProcate] Maybe there have a bug with 1.3 RC1
Karlsson
boost.regex at gmail.com
Sat Mar 29 15:11:23 CDT 2008
I think the new ThreadIf class has problem. When I copy the ThreadIf files
of 1.2.2 to replaced the 1.3.0 RC1, then all are working fine.
2008/3/30, Karlsson <boost.regex at gmail.com>:
>
> Seems the 1.3.0 RC1 has some bugs ?
> My UA has encounter others strange crash problem, now I roll back to 1.2.2and waiting for
> 1.3.0 final version.
>
>
> 2008/3/30, Karlsson <boost.regex at gmail.com>:
> >
> > 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/62310177/attachment.htm>
More information about the resiprocate-devel
mailing list