Crash in media
[Switching to Thread 0x7ffef4ff9700 (LWP 1076141)]
0x00000000012925aa in ff_yuv_420_rgb32_ssse3 ()
(gdb) bt
#0 0x00000000012925aa in ff_yuv_420_rgb32_ssse3 ()
#1 0x00000000012914d3 in yuv420_rgb32_ssse3 (c=0x7ffedc3142c0, src=0x7ffef4ff5960, srcStride=0x7ffef4ff5940, srcSliceY=0, srcSliceH=720, dst=0x7ffef4ff5980, dstStride=0x7ffef4ff5950) at libswscale/x86/yuv2rgb_template.c:119
#2 0x000000000122ebff in sws_scale (c=<optimized out>, srcSlice=<optimized out>, srcStride=<optimized out>, srcSliceY=<optimized out>, srcSliceH=<optimized out>, dst=<optimized out>, dstStride=<optimized out>)
at libswscale/swscale.c:969
#3 0x000000000063357c in jami::video::VideoScaler::scale(DRing::VideoFrame const&, DRing::VideoFrame&) () at libswscale/swscale.c:596
#4 0x00000000006111e0 in jami::video::ShmHolder::renderFrame(DRing::VideoFrame const&) () at libswscale/swscale.c:596
#5 0x0000000000612169 in jami::video::SinkClient::update(jami::Observable<std::shared_ptr<DRing::MediaFrame> >*, std::shared_ptr<DRing::MediaFrame> const&) () at libswscale/swscale.c:596
#6 0x000000000061a1d8 in jami::Observable<std::shared_ptr<DRing::MediaFrame> >::notify(std::shared_ptr<DRing::MediaFrame>) () at libswscale/swscale.c:596
#7 0x0000000000614a23 in jami::video::VideoGenerator::publishFrame(std::shared_ptr<DRing::VideoFrame>) () at libswscale/swscale.c:596
#8 0x00000000007e4bea in std::_Function_handler<void (std::shared_ptr<DRing::MediaFrame>&&), jami::video::VideoReceiveThread::setup()::{lambda(std::shared_ptr<DRing::MediaFrame> const&)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr<DRing::MediaFrame>&&) () at libswscale/swscale.c:596
#9 0x000000000071e30c in jami::MediaDecoder::decode(AVPacket&) () at libswscale/swscale.c:596
#10 0x000000000071c14a in jami::MediaDemuxer::decode() () at libswscale/swscale.c:596
#11 0x00000000007e62c4 in jami::video::VideoReceiveThread::decodeFrame() () at libswscale/swscale.c:596
#12 0x0000000000674bdd in jami::ThreadLoop::mainloop(std::thread::id&, std::function<bool ()>, std::function<void ()>, std::function<void ()>) () at libswscale/swscale.c:596
#13 0x0000000000675308 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (jami::ThreadLoop::*)(std::thread::id&, std::function<bool ()>, std::function<void ()>, std::function<void ()>), jami::ThreadLoop*, std::reference_wrapper<std::thread::id>, std::function<bool ()>, std::function<void ()>, std::function<void ()> > > >::_M_run() () at libswscale/swscale.c:596
#14 0x00007ffff72f9b84 in execute_native_thread_routine () from /lib64/libstdc++.so.6
#15 0x00007ffff7950432 in start_thread () from /lib64/libpthread.so.0
#16 0x00007ffff6ff7913 in clone () from /lib64/libc.so.6
Also
i Daemon_shm_1088573_0>, mixer=0
[1603479935.280|40373|sinkclient.cpp :419 ] Start sink <5345364777673835 / Jami Daemon_shm_1088573_0>, size=1206x720, mixer=0
[1603479935.280|40373|sinkclient.cpp :191 ] ShmHolder[Jami Daemon_shm_1088573_0]: new sizes: f=3473280, a=6946663
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1088573==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x0000018ec52a bp 0x7fd6bd5a1b50 sp 0x7fd6bd5a1a38 T119)
==1088573==The signal is caused by a READ memory access.
==1088573==Hint: this fault was caused by a dereference of a high value address (see register values below). Dissassemble the provided pc to learn which register was used.
#0 0x18ec52a (/home/amarok/Projects/jami/daemon/bin/dring+0x18ec52a)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/home/amarok/Projects/jami/daemon/bin/dring+0x18ec52a)
Thread T119 created by T1 here:
#0 0x7fd705418be5 in __interceptor_pthread_create (/lib64/libasan.so.6+0x57be5)
[1603479935.371|40269|sipvoiplink.cpp :1218 ] [INVITE:0x6190002670a8] RX SIP method 6 (INFO)
[1603479935.371|40269|sipvoiplink.cpp :1086 ] Rotate video 0 deg.
#1 0x7fd704718e48 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib64/libstdc++.so.6+0xd8e48)
#2 0xa13459 in jami::ThreadLoop::start() /home/amarok/Projects/jami/daemon/src/threadloop.cpp:86
#3 0xe3dd71 in jami::video::VideoReceiveThread::startLoop(std::function<void (jami::MediaType)> const&) /home/amarok/Projects/jami/daemon/src/media/video/video_receive_thread.cpp:71
#4 0xddc26f in jami::video::VideoRtpSession::startReceiver() /home/amarok/Projects/jami/daemon/src/media/video/video_rtp_session.cpp:196
#5 0xddcd2c in jami::video::VideoRtpSession::start(std::unique_ptr<jami::IceSocket, std::default_delete<jami::IceSocket> >, std::unique_ptr<jami::IceSocket, std::default_delete<jami::IceSocket> >) /home/amarok/Projects/jami/daemon/src/media/video/video_rtp_session.cpp:241
#6 0xb1174d in jami::SIPCall::startAllMedia() /home/amarok/Projects/jami/daemon/src/sip/sipcall.cpp:1170
#7 0xb13362 in operator() /home/amarok/Projects/jami/daemon/src/sip/sipcall.cpp:1375
#8 0xb2108b in __invoke_impl<bool, jami::SIPCall::waitForIceAndStartMedia()::<lambda()>::<lambda()>&> /usr/include/c++/10/bits/invoke.h:60
#9 0xb1e821 in __invoke_r<bool, jami::SIPCall::waitForIceAndStartMedia()::<lambda()>::<lambda()>&> /usr/include/c++/10/bits/invoke.h:113
#10 0xb1c31a in _M_invoke /usr/include/c++/10/bits/std_function.h:291
#11 0xa13b49 in std::function<bool ()>::operator()() const /usr/include/c++/10/bits/std_function.h:622
#12 0xa983c8 in jami::RepeatedTask::run() /home/amarok/Projects/jami/daemon/src/scheduled_executor.h:76
#13 0xa94dfb in operator() /home/amarok/Projects/jami/daemon/src/scheduled_executor.cpp:87
#14 0xa97e0d in __invoke_impl<void, jami::ScheduledExecutor::reschedule(std::shared_ptr<jami::RepeatedTask>, jami::ScheduledExecutor::time_point, jami::ScheduledExecutor::duration)::<lambda()>&> /usr/include/c++/10/bits/invoke.h:60
#15 0xa97cb9 in __invoke_r<void, jami::ScheduledExecutor::reschedule(std::shared_ptr<jami::RepeatedTask>, jami::ScheduledExecutor::time_point, jami::ScheduledExecutor::duration)::<lambda()>&> /usr/include/c++/10/bits/invoke.h:110
#16 0xa97b2b in _M_invoke /usr/include/c++/10/bits/std_function.h:291
#17 0x571dc7 in std::function<void ()>::operator()() const /usr/include/c++/10/bits/std_function.h:622
#18 0xa9829f in jami::Task::run() /home/amarok/Projects/jami/daemon/src/scheduled_executor.h:55
#19 0xa95281 in operator() /home/amarok/Projects/jami/daemon/src/scheduled_executor.cpp:98
#20 0xa9758d in __invoke_impl<void, jami::ScheduledExecutor::schedule(std::shared_ptr<jami::Task>, jami::ScheduledExecutor::time_point)::<lambda()>&> /usr/include/c++/10/bits/invoke.h:60
#21 0xa97400 in __invoke_r<void, jami::ScheduledExecutor::schedule(std::shared_ptr<jami::Task>, jami::ScheduledExecutor::time_point)::<lambda()>&> /usr/include/c++/10/bits/invoke.h:110
#22 0xa970c4 in _M_invoke /usr/include/c++/10/bits/std_function.h:291
#23 0x571dc7 in std::function<void ()>::operator()() const /usr/include/c++/10/bits/std_function.h:622
#24 0xa95a78 in jami::ScheduledExecutor::loop() /home/amarok/Projects/jami/daemon/src/scheduled_executor.cpp:124
#25 0xa941e8 in operator() /home/amarok/Projects/jami/daemon/src/scheduled_executor.cpp:28
#26 0xa981c5 in __invoke_impl<void, jami::ScheduledExecutor::ScheduledExecutor()::<lambda()> > /usr/include/c++/10/bits/invoke.h:60
#27 0xa9817a in __invoke<jami::ScheduledExecutor::ScheduledExecutor()::<lambda()> > /usr/include/c++/10/bits/invoke.h:95
#28 0xa98127 in _M_invoke<0> /usr/include/c++/10/thread:264
#29 0xa980fb in operator() /usr/include/c++/10/thread:271
#30 0xa980df in _M_run /usr/include/c++/10/thread:215
#31 0x7fd704718b83 (/lib64/libstdc++.so.6+0xd8b83)
Thread T1 created by T0 here:
#0 0x7fd705418be5 in __interceptor_pthread_create (/lib64/libasan.so.6+0x57be5)
#1 0x7fd704718e48 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib64/libstdc++.so.6+0xd8e48)
#2 0xa9441c in jami::ScheduledExecutor::ScheduledExecutor() /home/amarok/Projects/jami/daemon/src/scheduled_executor.cpp:29
#3 0x98502b in jami::Manager::ManagerPimpl::ManagerPimpl(jami::Manager&) /home/amarok/Projects/jami/daemon/src/manager.cpp:447
#4 0x988503 in jami::Manager::Manager() /home/amarok/Projects/jami/daemon/src/manager.cpp:726
#5 0x9882e1 in jami::Manager::instance() /home/amarok/Projects/jami/daemon/src/manager.cpp:702
#6 0x59e675 in DRing::init(DRing::InitFlag) /home/amarok/Projects/jami/daemon/src/ring_api.cpp:57
#7 0x48e097 in DBusClient::initLibrary(int) /home/amarok/Projects/jami/daemon/bin/dbus/dbusclient.cpp:245
#8 0x482e34 in DBusClient::DBusClient(int, bool) /home/amarok/Projects/jami/daemon/bin/dbus/dbusclient.cpp:108
#9 0x482543 in void __gnu_cxx::new_allocator<DBusClient>::construct<DBusClient, int&, bool&>(DBusClient*, int&, bool&) (/home/amarok/Projects/jami/daemon/bin/dring+0x482543)
#10 0x48235f in void std::allocator_traits<std::allocator<DBusClient> >::construct<DBusClient, int&, bool&>(std::allocator<DBusClient>&, DBusClient*, int&, bool&) (/home/amarok/Projects/jami/daemon/bin/dring+0x48235f)
#11 0x482000 in std::_Sp_counted_ptr_inplace<DBusClient, std::allocator<DBusClient>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<int&, bool&>(std::allocator<DBusClient>, int&, bool&) (/home/amarok/Projects/jami/daemon/bin/dring+0x482000)
#12 0x481a25 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<DBusClient, std::allocator<DBusClient>, int&, bool&>(DBusClient*&, std::_Sp_alloc_shared_tag<std::allocator<DBusClient> >, int&, bool&) (/home/amarok/Projects/jami/daemon/bin/dring+0x481a25)
#13 0x48150d in std::__shared_ptr<DBusClient, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<DBusClient>, int&, bool&>(std::_Sp_alloc_shared_tag<std::allocator<DBusClient> >, int&, bool&) (/home/amarok/Projects/jami/daemon/bin/dring+0x48150d)
#14 0x480b7b in std::shared_ptr<DBusClient>::shared_ptr<std::allocator<DBusClient>, int&, bool&>(std::_Sp_alloc_shared_tag<std::allocator<DBusClient> >, int&, bool&) (/home/amarok/Projects/jami/daemon/bin/dring+0x480b7b)
#15 0x480224 in std::shared_ptr<DBusClient> std::allocate_shared<DBusClient, std::allocator<DBusClient>, int&, bool&>(std::allocator<DBusClient> const&, int&, bool&) (/home/amarok/Projects/jami/daemon/bin/dring+0x480224)
#16 0x47f70a in std::shared_ptr<DBusClient> std::make_shared<DBusClient, int&, bool&>(int&, bool&) (/home/amarok/Projects/jami/daemon/bin/dring+0x47f70a)
#17 0x47e74b in main /home/amarok/Projects/jami/daemon/bin/main.cpp:218
#18 0x7fd70433c041 in __libc_start_main (/lib64/libc.so.6+0x27041)
==1088573==ABORTING