-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG]crashed on ubuntu22.04.02 when exit #2770
Comments
Please remove libav, keep only SRT, and try to see if the crash is still there. |
It will appear when ffmpeg and srt library are used together, and there is no problem when used alone |
I would recommend checking if those resources need to be closed / unregistered.
|
What if you add |
I think it is caused by a conflict with ffmpeg, because there will be no problem under windows, and I have not tried the compiled version on ubuntu |
if you have ubuntu 22.04 x64 ,you can test for it |
Does it crash without |
The only place where Would you be able to modify the code or at least read the debug info? This could theoretically happen on any kind of double delete, even if unlikely. |
not crash,crahed only when used with ffmpeg library |
apt install srt and ffmpeg,i can't read debug info |
Incompatible versions? Note that SRT has API/API changes in minor releases, e.g. 1.5.0, 1.4.0, etc. |
maybe,i am not tried compiled for srt,i will try later |
Please tell us the versions of SRT and FFmpeg installed on your system by |
ffmpeg:4.4.2 |
I reproduced the crash on ubuntu 22.04 with srt and ffmpeg from apt-get. |
You might also recompile SRT 1.4.4 and check again. I remember there were some problems, related to logs, which caused crashing if the internals were destroyed in wrong order, but I don't recall which version had it fixed. |
SRT package in Ubuntu 22.04
@florianernst FYI. |
Using the srt source fetched from the link provided by @maxsharabayko , it doesn't crash. Next up, rebuilding the version of ffmpeg used by ubuntu 22.04 |
I tried 1.4.4 and 1.5.2 versions, is the same too. |
Is that possible to get a debug-instrumented backtrace on this crash? If you can recompile SRT in a certain version and still reproduce it, use -DENABLE_DEBUG=2 to get the debug-optimized version, or simply -DENABLE_DEBUG=1 to get the full debug version. |
@maxsharabayko, thanks for the ping. :-) @xengine-qyt, please install It looks like something in the software dependency chain is also using GnuTLS instead of OpenSSL, and attempting mix those leads to such a crash as you have encountered. I believe this is FFmpeg, but I cannot check right now. This would also explain why those people who have compiled the software themselves locally didn't encounter the issues, as for them there most presumably is no such mixing taking place. Just for reference, in Debian there exist two variants of Thus I'm wondering whether it makes sense to make the GnuTLS variant of |
Using SRT 1.4.4 and ffmpeg 4.4.2, both compiled locally, I can't reproduce the crash. This goes along with @florianernst analysis |
it does not crash when i using libsrt-gnutls-dev instead of libsrt-openssl-dev.thanks. |
Describe the bug
crashed on ubuntu 22.04 when program exit.it is appears every time
To Reproduce
ubuntu22.04.02 lts
sudo apt install libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libswresample-dev libswscale-dev libsrt-openssl-dev -y
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libavdevice/avdevice.h>
#include <libavfilter/avfilter.h>
#include <libavformat/avformat.h>
#include <libavutil/dict.h>
#include <libavutil/avutil.h>
#include <libavutil/imgutils.h>
#include <libswresample/swresample.h>
#include <libswscale/swscale.h>
}
#include <srt/srt.h>
int main()
{
avformat_network_init();
avdevice_register_all();
}
complie:g++ -std=c++17 -Wall -g a.cpp -o out.app -lsrt -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lswresample -lswscale -lpthread -lrt -ldl
The text was updated successfully, but these errors were encountered: