mediasoup: mediasoup-worker crash: free(): invalid pointer
Bug Report
It’s consistently happening in the demo server which is running very latest 3.11.19 version. No idea how to reproduce.
2023-03-30T10:06:18.320Z mediasoup:ERROR:Worker (stderr) free(): invalid pointer
2023-03-30T10:06:18.323Z mediasoup:ERROR:Worker worker process died unexpectedly [pid:3465, code:null, signal:SIGABRT]
Your environment
- Operating system: Linux Debian
- gcc/clang version: 6.3.0
- mediasoup version: 3.11.19
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20 (19 by maintainers)
Commits related to this issue
- SeqManager: fix crash and add fuzzer Fixes #1042 — committed to versatica/mediasoup by jmillan a year ago
- SeqManager: fix crash and add fuzzer (#1045) * SeqManager: fix crash and add fuzzer Fixes #1042 — committed to versatica/mediasoup by jmillan a year ago
Suppose that
(this->maxInput + MaxValue / 3)is more than MaxValue. Thentreshholdwill be less thanthis->maxInputandit2may turn out to be in front ofit1.@jmillan:
RTC::SeqManager<unsigned short, (unsigned char)0>::ClearDropped() ()is producing the crash.