Closed ghostsf closed 3 years ago
4.0.56 is good, 4.0.59 has issues
TRANS_BY_GPT3
Found a problem. Winlin 2021/1/7, 11:45 AM RTC: Fix memory leak. commit 2492b726af2a0f60ff1bc7a951cf5679243861f0
TRANS_BY_GPT3
I have also encountered it.
Program received signal SIGSEGV, Segmentation fault. 0x0000000000635f47 in SrsRtcFromRtmpBridger::on_unpublish (this=0xf7d440) at src/app/srs_app_rtc_source.cpp:672 672 meta->update_previous_vsh(); (gdb) bt
Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) p meta $1 = (SrsMetaCache *) 0x0
meta
is empty.
TRANS_BY_GPT3
4.0.56 is good, 4.0.59 has issues
Indeed, it is true.
TRANS_BY_GPT3
Discovered the problem winlin 2021/1/7, 11:45 AM RTC: Fix memory leak commit 2492b72
Discovered a problem, how to handle it?
TRANS_BY_GPT3
Found the problem winlin 2021/1/7, 11:45 AM RTC: Fix memory leak commit 2492b72
Found a problem, how to handle it?
Directly revert the commit.
Specific optimization is still needed. Temporarily handle it this way.
src/app/srs_app_rtc_source.cpp
// release unpublish stream description. // set_stream_desc(NULL); // srs_freep(bridger_);
TRANS_BY_GPT3
Found the problem winlin 2021/1/7, 11:45 AM RTC: Fix memory leak commit 2492b72
Found the problem, how was it handled?
Revert the commit directly.
Specific optimization is still needed. Temporarily handle it like this.
src/app/srs_app_rtc_source.cpp
// release unpublish stream description. // set_stream_desc(NULL); // srs_freep(bridger_);
Commenting it out is possible.
What is the difference between commenting out this line and two lines? // set_stream_desc(NULL); // srsfreep(bridger);
TRANS_BY_GPT3
Still not possible, Bridger serves as a bridge between creating RTMP and RTC sources, and this bridge cannot be directly dismantled.
TRANS_BY_GPT3
I have revoked: https://github.com/ossrs/srs/commit/2492b72 and https://github.com/ossrs/srs/commit/06adb9d
I will see how to better release this bridger.
TRANS_BY_GPT3
After handling it properly, can we perform WebRTC for upstream and FLV for downstream, right?
TRANS_BY_GPT3
After processing, can we do uplink with WebRTC and downlink with FLV?
This is just a bugfix to solve a memory leak issue, unrelated to functionality.
TRANS_BY_GPT3
Fixed.
Description'
Please ensure that you maintain the markdown structure.
rtmp push stream disconnected, SrsRtcFromRtmpBridger::on_unpublish exception.