Re: [Opalvoip-devel] Procyon crash
Brought to you by:
csoutheren,
rjongbloed
From: Alexander S. <ale...@gm...> - 2016-04-27 14:07:53
|
It really cured my case too. Many thanks. On 23.04.2016 16:13, Robert Jongbloed wrote: > RE: [Opalvoip-devel] Procyon crash > Thank you, I have applied this patch to the stable code. > > ---------- > *Robert Jongbloed* > /Vox Lucida Pty. Ltd./ > > -----Original message----- > *From:* Harald Karner > *Sent:* Thursday, 21st April 2016, 7:40 > *To:* Alexander Sbitnev; opa...@li... > *Subject:* Re: [Opalvoip-devel] Procyon crash > > Hello Alexander! > > I encountered a similar problem recently. But in my case it the crash > occurred in every call. It turned out it was caused by the H.281/FECC > rtp stream, since H.281/FECC has no regular RTP frames, m_frameTime is > initialized with a value of 0. > Adding a "if (m_frameTime != 0) " for > "timestamp += ((20*GetMediaFormat().GetTimeUnits() + m_frameTime - > 1)/m_frameTime) * m_frameTime;" > did the trick for me (see attached patch). > And looking at your trace log, one of the last things happening there is > the opening of the FECC channel... > > Regards > Harald > > On 20.04.2016 15:06, Alexander Sbitnev wrote: > > Got myself a crash with Procyon console sample during call initiating > > with Polycom RealPresence Group 700. > > Some times call initiated without problem. Sometimes it crashing with > > divide by null operation (SIGFPE). > > By some strange coincidence I was able to get crash dump without > > building debug version. Normally without debug build little info can be > > salvaged, but this time normal build debugging as a debug one. But still > > I've rebuild with debug and re-examine situation. > > Here is my preliminary findings on the matter of crash. > > Coredump I've got: > > > > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > > Core was generated by `obj_linux_x86_64_d/conopal --no-sip --no-fast > > --video-size 1280x720 --grabber-d'. > > Program terminated with signal SIGFPE, Arithmetic exception. > > #0 0x00007f5f9abab924 in OpalRTPMediaStream::ReadPacket > > (this=0x7f5f684f8e10, packet=...) at > > /home/shuras/Procyon/opal-3.16.1/src/rtp/rtp_stream.cxx:324 > > 324 timestamp += ((20*GetMediaFormat().GetTimeUnits() + > > m_frameTime - 1)/m_frameTime) * m_frameTime; > > [Current thread is 1 (Thread 0x7f5f8a9d4700 (LWP 11457))] > > (gdb) bt > > #0 0x00007f5f9abab924 in OpalRTPMediaStream::ReadPacket > > (this=0x7f5f684f8e10, packet=...) at > > /home/shuras/Procyon/opal-3.16.1/src/rtp/rtp_stream.cxx:324 > > #1 0x00007f5f9ab72944 in OpalMediaPatch::Main (this=0x7f5f684d65e0) at > > /home/shuras/Procyon/opal-3.16.1/src/opal/patch.cxx:780 > > #2 0x00007f5f9ab79bf1 in PThreadObj<OpalMediaPatch>::Main > > (this=0x7f5f6808a730) at /usr/local/include/ptlib/thread.h:737 > > #3 0x00007f5f99f2a5fc in PThread::PX_ThreadMain (arg=0x7f5f6808a730) at > > /home/shuras/Procyon/ptlib-2.16.1/src/ptlib/unix/tlibthrd.cxx:348 > > #4 0x00007f5f9719b6aa in start_thread (arg=0x7f5f8a9d4700) at > > pthread_create.c:333 > > #5 0x00007f5f9941ce9d in clone () at > > ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 > > (gdb) print m_frameTime > > $1 = 0 > > > > Log file attached. > > I didn't find anything suspicious in the log yet. I suppose it must be > > some race condition. > > > > > > ------------------------------------------------------------------------------ > > Find and fix application performance issues faster with Applications Manager > > Applications Manager provides deep performance insights into multiple tiers of > > your business applications. It resolves application problems quickly and > > reduces your MTTR. Get your free trial! > >https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > > > > > > > _______________________________________________ > > Opalvoip-devel mailing list > >Opa...@li... > <mailto:Opa...@li...> > >https://lists.sourceforge.net/lists/listinfo/opalvoip-devel > > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________ > Opalvoip-devel mailing list > Opa...@li... > <mailto:Opa...@li...> > https://lists.sourceforge.net/lists/listinfo/opalvoip-devel > > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > > _______________________________________________ > Opalvoip-devel mailing list > Opa...@li... > https://lists.sourceforge.net/lists/listinfo/opalvoip-devel |