Segmentation Fault In RECVONLY session
Hi,
I reproduce a segmentation fault with the latest release of oRTP (4.3.0). I am using a program called trx (http://www.pogo.org.uk/~mark/trx/) to create an Opus RTP stream. tx create the stream using a SENDONLY session and rx play the stream in a RECVONLY session.
After 2s the rx program crash, here is the backtrace:
Thread 1 "rx" received signal SIGSEGV, Segmentation fault.
0x00007ffff7e06c73 in concatb () from /usr/lib/libortp.so.14
(gdb) bt
#0 0x00007ffff7e06c73 in concatb () from /usr/lib/libortp.so.14
#1 0x00007ffff7dfa943 in ?? () from /usr/lib/libortp.so.14
#2 0x00007ffff7dfabf6 in rtp_session_send_regular_rtcp_packet_and_reschedule
() from /usr/lib/libortp.so.14
#3 0x00007ffff7e00c2c in rtp_session_recvm_with_ts ()
from /usr/lib/libortp.so.14
#4 0x00007ffff7e00f7e in rtp_session_recv_with_ts ()
from /usr/lib/libortp.so.14
#5 0x0000555555556833 in run_rx (session=0x555555573c60,
decoder=0x55555556ceb0, snd=0x5555555becf0, channels=2, rate=48000)
at rx.c:116
#6 0x0000555555556e08 in main (argc=1, argv=0x7fffffffe678) at rx.c:256
A related issue is on stack overflow here : https://stackoverflow.com/questions/43591690/receiving-rtcp-issues-within-ortp-library.
Disabling RTCP with rtp_session_enable_rtcp(session, FALSE);
fix it. Maybe RTCP should be disabled
by default for RECVONLY?
Thanks for the work,
Paul.