25c5309ea333b024a28dc4b9176e7b2499ea] Peer already connected. Add a new channel
[0m[22;36m[1704896457.619|24662|jamiaccount.cpp :1971] [0m[01;33m[Account 85ffd3d67680977a] New channel asked with name swarm://86c50d2895d1e06ba8cf60997a47a296f10936e8
[0m[22;36m[1704896457.620|25587|gitserver.cpp :158 ] [0mUpload pack command detected.
[0m[22;36m[1704896457.620|24653] [0m[device ec9f99b67e74947eb571e943a059a5dc13b6a1e87378d8b4003483d02d8dd0d5] Peer already connected. Add a new channel
[0m=================================================================
==24629==ERROR: AddressSanitizer: attempting double-free on 0x625003886100 in thread T673:
[22;36m[1704896457.621|24761|jamiaccount.cpp :1971] [0m[01;33m[Account f0c871f7cf55dc4b] New channel asked with name git://ec9f99b67e74947eb571e943a059a5dc13b6a1e87378d8b4003483d02d8dd0d5/86c50d2895d1e06ba8cf60997a47a296f10936e8
[0m[22;36m[1704896457.621|24662|swarm_manager.cpp :104 ] [0m[SwarmManager 0x61e000366c90] Bootstrap: Connected!
[0m[22;36m[1704896457.621|25588|swarm_manager.cpp :104 ] [0m[SwarmManager 0x61e0001da090] Bootstrap: Connected!
[0m[22;36m[1704896457.621|24662|conversation_module.cpp :1160] [0m[Conversation 86c50d2895d1e06ba8cf60997a47a296f10936e8] Resend last message notification
[0m[22;36m[1704896457.621|24763|conversation_module.cpp :1160] [0m[Conversation 86c50d2895d1e06ba8cf60997a47a296f10936e8] Resend last message notification
[0m[22;36m[1704896457.621|25588|jamiaccount.cpp :3638] [0m[Account f0c871f7cf55dc4b] Request SIP connection to peer 3a0f32d3b0b54f240d88f8854a30c2b758382b9c on device f2f4a14da976506e78848dc530c225c5309ea333b024a28dc4b9176e7b2499ea
[0m[22;36m[1704896457.621|25588|jamiaccount.cpp :3648] [0m[Account f0c871f7cf55dc4b] A SIP connection with f2f4a14da976506e78848dc530c225c5309ea333b024a28dc4b9176e7b2499ea already exists
[0m[22;36m[1704896457.622|24631|message_engine.cpp :119 ] [0m[message 7357177293797901] Retry sending
[0m[22;36m[1704896457.622|24650|message_engine.cpp :345 ] [0m[Account f0c871f7cf55dc4b] saved 1 messages to /foo/.cache/jami/f0c871f7cf55dc4b/messages
[0m[22;36m[1704896457.622|24631|message_engine.cpp :119 ] [0m[message 2480620596664349] Retry sending
[0m[22;36m[1704896457.622|24647|message_engine.cpp :345 ] [0m[Account f0c871f7cf55dc4b] saved 1 messages to /foo/.cache/jami/f0c871f7cf55dc4b/messages
[0m[22;36m[1704896457.622|24631|sip_utils.cpp :221 ] [0mAdd header to SIP message: "User-Agent: Jami Daemon 15.0.0-444c491af6-dirty (linux)"
[0m[22;36m[1704896457.622|24631|message_engine.cpp :119 ] [0m[message 1373864737208572] Retry sending
[0m[22;36m[1704896457.622|24651|message_engine.cpp :345 ] [0m[Account 85ffd3d67680977a] saved 1 messages to /foo/.cache/jami/85ffd3d67680977a/messages
[0m[22;36m[1704896457.623|25587|conversation.cpp :1762] [0mSync 86c50d2895d1e06ba8cf60997a47a296f10936e8 with ec9f99b67e74947eb571e943a059a5dc13b6a1e87378d8b4003483d02d8dd0d5
[0m[22;36m[1704896457.623|24631|message_engine.cpp :119 ] [0m[message 4915131715928936] Retry sending
[0m[22;36m[1704896457.623|24761|jamiaccount.cpp :2030] [0m[01;33m[Account f0c871f7cf55dc4b] Git server requested for conversation 86c50d2895d1e06ba8cf60997a47a296f10936e8, device f2f4a14da976506e78848dc530c225c5309ea333b024a28dc4b9176e7b2499ea, channel 1
[0m[22;36m[1704896457.623|24651|message_engine.cpp :345 ] [0m[Account 85ffd3d67680977a] saved 1 messages to /foo/.cache/jami/85ffd3d67680977a/messages
[0m[22;36m[1704896457.623|24631|sip_utils.cpp :221 ] [0mAdd header to SIP message: "User-Agent: Jami Daemon 15.0.0-444c491af6-dirty (linux)"
[0m[22;36m[1704896457.623|25576|account_manager.cpp :799 ] [0mFound 1 devices
[22;36m[1704896457.623|25587|sipaccountbase.cpp :283 ] [0mText message received from 809b8fc51ca2c165efd2a3ca91c8db88d7c22728, 1 part(s)
[0m[0m[22;36m[1704896457.623|25576|message_engine.cpp :173 ] [0m[22;36m[1704896457.623|24631|message_engine.cpp :173 ] [0m[message 2480620596664349] Message sent: success
[0m[message 7357177293797901] Message sent: success
[0m[22;36m[1704896457.623|24760|conversation_module.cpp :539 ] [0m[Account 85ffd3d67680977a] fetch commits from 809b8fc51ca2c165efd2a3ca91c8db88d7c22728, for 86c50d2895d1e06ba8cf60997a47a296f10936e8, commit ae4aadcea6b0f6a93a8d1d56276820c490b3a8c9
[0m[22;36m[1704896457.623|24631|message_engine.cpp :190 ] [0m[message 2480620596664349] Status changed to SENT
[0m[22;36m[1704896457.623|25588|sipaccountbase.cpp :283 ] [0mText message received from 3a0f32d3b0b54f240d88f8854a30c2b758382b9c, 1 part(s)
[0m[22;36m[1704896457.623|24631|message_engine.cpp :173 ] [0m[message 4915131715928936] Message sent: success
[0m[22;36m[1704896457.623|25303|conversation_module.cpp :539 ] [0m[Account f0c871f7cf55dc4b] fetch commits from 3a0f32d3b0b54f240d88f8854a30c2b758382b9c, for 86c50d2895d1e06ba8cf60997a47a296f10936e8, commit 86c50d2895d1e06ba8cf60997a47a296f10936e8
[0m[22;36m[1704896457.623|24631|message_engine.cpp :190 ] [0m[message 4915131715928936] Status changed to SENT
[0m[22;36m[1704896457.624|24644|message_engine.cpp :345 ] [0m[Account f0c871f7cf55dc4b] saved 1 messages to /foo/.cache/jami/f0c871f7cf55dc4b/messages
[0m[22;36m[1704896457.624|25580|account_manager.cpp :799 ] [0mFound 1 devices
[0m[22;36m[1704896457.624|25576|message_engine.cpp :190 ] [0m[message 7357177293797901] Status changed to SENT
[0m[22;36m[1704896457.624|24641|message_engine.cpp :345 ] [0m[Account 85ffd3d67680977a] saved 1 messages to /foo/.cache/jami/85ffd3d67680977a/messages
[0m[22;36m[1704896457.624|24760|conversationrepository.cpp:2063] [0mCouldn't init revwalker for conversation 86c50d2895d1e06ba8cf60997a47a296f10936e8
[0m[22;36m[1704896457.624|25580|message_engine.cpp :173 ] [0m[message 1373864737208572] Message sent: success
[0m[22;36m[1704896457.624|25580|message_engine.cpp :190 ] [0m[message 1373864737208572] Status changed to SENT
[0m[22;36m[1704896457.624|24645|message_engine.cpp :345 ] [0m[Account f0c871f7cf55dc4b] saved 0 messages to /foo/.cache/jami/f0c871f7cf55dc4b/messages
[0m[22;36m[1704896457.624|24659|message_engine.cpp :345 ] [0m[Account 85ffd3d67680977a] saved 0 messages to /foo/.cache/jami/85ffd3d67680977a/messages
[0m[22;36m[1704896457.625|24760|conversation_module.cpp :583 ] [0m[01;33m[Account 85ffd3d67680977a] Already fetching 86c50d2895d1e06ba8cf60997a47a296f10936e8
[0m[22;36m[1704896457.625|25588|gitserver.cpp :158 ] [0mUpload pack command detected.
[0m[22;36m[1704896457.627|25588|gitserver.cpp :181 ] [0mPeer want ref: ae4aadcea6b0f6a93a8d1d56276820c490b3a8c9
[0m[22;36m[1704896457.627|25588|gitserver.cpp :132 ] [0mPeer negotiation is done. Answering to want order
[0m[22;36m[1704896457.645|24906|conversationrepository.cpp:2783] [0mValidate commit ae4aadcea6b0f6a93a8d1d56276820c490b3a8c9
[0m[22;36m[1704896457.646|24906|conversationrepository.cpp:3119] [0mMerge analysis result: Fast-forward
[0m[22;36m[1704896457.648|24906|conversation.cpp :1641] [0mSuccessfully merge history with ec9f99b67e74947eb571e943a059a5dc13b6a1e87378d8b4003483d02d8dd0d5
[0m[22;36m[1704896457.650|24629|contact_list.cpp :123 ] [0m[01;33m[Contacts] removeContact: 809b8fc51ca2c165efd2a3ca91c8db88d7c22728
[0m[22;36m[1704896457.650|24629|archive_account_manager.cpp:523 ] [0mBuilding device sync from f2f4a14da976506e78848dc530c225c5309ea333b024a28dc4b9176e7b2499ea
[0m[22;36m[1704896457.651|24691|archive_account_manager.cpp:523 ] [0mBuilding device sync from f2f4a14da976506e78848dc530c225c5309ea333b024a28dc4b9176e7b2499ea
[0m[22;36m[1704896457.652|24691|conversation_module.cpp :880 ] [0mRemove conversation: 86c50d2895d1e06ba8cf60997a47a296f10936e8
[0m[22;36m[1704896457.656|24691|conversationrepository.cpp:3366] [0mErasing /foo/.local/share/jami/85ffd3d67680977a/conversations/86c50d2895d1e06ba8cf60997a47a296f10936e8/
[0m[22;36m[1704896457.684|25587] [0m[22;31m[TLS] fatal error in recv: The TLS connection was non-properly terminated.
[0m[22;36m[1704896457.684|24691|channeled_transport.cpp :186 ] [0m[01;33m[SIPS] process disconnect event
[0m[22;36m[1704896457.684|25585] [0m[TLS] shutdown[22;36m[1704896457.684|24631|gitserver.cpp :491 ] [0mGitServer destroyed
[22;36m[0m
[0m[1704896457.684|24691|siptransport.cpp :210 ] [0mpjsip transport@0x62500ad77970 TLS to 172.17.0.8 -> DISCONNECTED
[0m[22;36m[1704896457.684|25588] [0m[TLS] eof
[0m[22;36m[1704896457.684|24631|siptransport.cpp :101 ] [0m~SipTransport@0x611000b0c390 tr=0x62500ad77970 rc=4
[0m[22;36m[1704896457.684|25586] [0m[TLS] shutdown
[0m[22;36m[1704896457.684|25588|channeled_transport.cpp :186 ] [0m[01;33m[SIPS] process disconnect event
[0m[22;36m[1704896457.684|24631|gitserver.cpp :491 ] [0mGitServer destroyed
[0m[22;36m[1704896457.684|25588|siptransport.cpp :210 ] [0mpjsip transport@0x62500c63e170 TLS to 172.17.0.8 -> DISCONNECTED
[0m[22;36m[1704896457.684|25584] [0m[22;31m[ice:0x6290002f3200] rx: channel is closed
[0m[22;36m[1704896457.684|25576] [0mStore DHT public IPv4 address: 208.88.110.46
[0m[22;36m[1704896457.685|25576] [0mStore DHT public IPv6 address: [2607:fad8:4:6:b62e:99ff:feff:2fe7]
[0m[22;36m[1704896457.685|24631|siptransport.cpp :101 ] [0m~SipTransport@0x611000c7d350 tr=0x62500c63e170 rc=7
[0m[22;36m[1704896457.685|25576] [0m[ice:0x629000cd0200] Creating IceTransport session for ""
[0m[22;36m[1704896457.685|25576] [0m[ice:0x629000cd0200] Initializing the session - comp count 1 - as a slave
[0m[22;36m[1704896457.685|25576] [0m[ice:0x629000cd0200] Add srflx reflexive candidates [172.17.0.8:9 : 208.88.110.46:9] for comp 1
[0m[22;36m[1704896457.685|25576] [0madded turn server '51.222.138.120', port 3478
[0m #0 0x7f462bdaa6ef in operator delete[](void*) ../../../../src/libsanitizer/asan/asan_new_delete.cc:168
#1 0x7f462af56d71 in std::basic_filebuf<char, std::char_traits<char> >::_M_destroy_internal_buffer() (/lib/x86_64-linux-gnu/libstdc++.so.6+0x10bd71)
#2 0x7f462af5a3a8 in std::basic_filebuf<char, std::char_traits<char> >::close() (/lib/x86_64-linux-gnu/libstdc++.so.6+0x10f3a8)
#3 0x7f462af5c1f0 in std::basic_ofstream<char, std::char_traits<char> >::close() (/lib/x86_64-linux-gnu/libstdc++.so.6+0x1111f0)
#4 0x55c354f18f7b in operator() /foo/src/data_transfer.cpp:201
#5 0x55c354f2a47d in _M_invoke /usr/include/c++/9/bits/std_function.h:300
#6 0x55c3553f4e9b in dhtnet::ChannelSocket::onShutdown(std::function<void ()>&&) (/foo/test/unitTest/ut_conversation+0x4674e9b)
#7 0x55c354f1a68c in jami::IncomingFile::process() /foo/src/data_transfer.cpp:196
#8 0x55c354f2605e in jami::TransferManager::onIncomingProfile(std::shared_ptr<dhtnet::ChannelSocket> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /foo/src/data_transfer.cpp:584
#9 0x55c3546a02ac in operator() jamidht/jamiaccount.cpp:4219
#10 0x55c3546ee62b in _M_invoke /usr/include/c++/9/bits/std_function.h:300
#11 0x55c35551f066 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<dht::ThreadPool::run(std::function<void ()>&&)::{lambda()#1}> > >::_M_run() (/foo/test/unitTest/ut_conversation+0x479f066)
#12 0x7f462af21df3 (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd6df3)
#13 0x7f462b63b608 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x8608)
#14 0x7f462ac0e352 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x11f352)
0x625003886100 is located 0 bytes inside of 8192-byte region [0x625003886100,0x625003888100)
freed by thread T959 here:
#0 0x7f462bdaa6ef in operator delete[](void*) ../../../../src/libsanitizer/asan/asan_new_delete.cc:168
#1 0x7f462af56d71 in std::basic_filebuf<char, std::char_traits<char> >::_M_destroy_internal_buffer() (/lib/x86_64-linux-gnu/libstdc++.so.6+0x10bd71)
previously allocated by thread T673 here:
#0 0x7f462bda9787 in operator new[](unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cc:107
#1 0x7f462af56d33 in std::basic_filebuf<char, std::char_traits<char> >::_M_allocate_internal_buffer() (/lib/x86_64-linux-gnu/libstdc++.so.6+0x10bd33)
Thread T673 created by T135 here:
#0 0x7f462bcd4815 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cc:208
#1 0x7f462af220c9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd70c9)
#2 0x60400019338f (<unknown module>)
Thread T135 created by T2 here:
#0 0x7f462bcd4815 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cc:208
#1 0x7f462af220c9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd70c9)
#2 0x6220003b40ff (<unknown module>)
Thread T2 created by T0 here:
#0 0x7f462bcd4815 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cc:208
#1 0x7f462af220c9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd70c9)
#2 0x55c354113e41 in jami::ScheduledExecutor::ScheduledExecutor(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /foo/src/scheduled_executor.cpp:36
#3 0x55c353f2e14a in jami::Manager::ManagerPimpl::ManagerPimpl(jami::Manager&) /foo/src/manager.cpp:455
#4 0x55c353fb36b7 in std::_MakeUniq<jami::Manager::ManagerPimpl>::__single_object std::make_unique<jami::Manager::ManagerPimpl, jami::Manager&>(jami::Manager&) (/foo/test/unitTest/ut_conversation+0x32336b7)
#5 0x55c353f3605d in jami::Manager::Manager() /foo/src/manager.cpp:754
#6 0x55c353f35c41 in jami::Manager::instance() /foo/src/manager.cpp:727
#7 0x55c35410e1d4 in libjami::init(libjami::InitFlag) /foo/src/ring_api.cpp:69
#8 0x55c353ceafc1 in jami::test::ConversationTest::setUp() conversation/conversation.cpp:221
#9 0x55c353f034cb in CppUnit::TestCaller<jami::test::ConversationTest>::setUp() /usr/include/cppunit/TestCaller.h:180
#10 0x7f462bc7c614 in CppUnit::TestCaseMethodFunctor::operator()() const (/lib/x86_64-linux-gnu/libcppunit-1.15.so.1+0x24614)
#11 0x60b0000005bf (<unknown module>)
Thread T959 created by T957 here:
#0 0x7f462bcd4815 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cc:208
#1 0x7f462af220c9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd70c9)
Thread T957 created by T276 here:
#0 0x7f462bcd4815 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cc:208
#1 0x7f462af220c9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd70c9)
Thread T276 created by T133 here:
#0 0x7f462bcd4815 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cc:208
#1 0x7f462af220c9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd70c9)
#2 0x55c3553dd10f in void std::vector<std::shared_ptr<dhtnet::ConnectionInfo>, std::allocator<std::shared_ptr<dhtnet::ConnectionInfo> > >::_M_range_insert<std::move_iterator<__gnu_cxx::__normal_iterator<std::shared_ptr<dhtnet::ConnectionInfo>*, std::vector<std::shared_ptr<dhtnet::ConnectionInfo>, std::allocator<std::shared_ptr<dhtnet::ConnectionInfo> > > > > >(__gnu_cxx::__normal_iterator<std::shared_ptr<dhtnet::ConnectionInfo>*, std::vector<std::shared_ptr<dhtnet::ConnectionInfo>, std::allocator<std::shared_ptr<dhtnet::ConnectionInfo> > > >, std::move_iterator<__gnu_cxx::__normal_iterator<std::shared_ptr<dhtnet::ConnectionInfo>*, std::vector<std::shared_ptr<dhtnet::ConnectionInfo>, std::allocator<std::shared_ptr<dhtnet::ConnectionInfo> > > > >, std::move_iterator<__gnu_cxx::__normal_iterator<std::shared_ptr<dhtnet::ConnectionInfo>*, std::vector<std::shared_ptr<dhtnet::ConnectionInfo>, std::allocator<std::shared_ptr<dhtnet::ConnectionInfo> > > > >, std::forward_iterator_tag) (/foo/test/unitTest/ut_conversation+0x465d10f)
Thread T133 created by T62 here:
#0 0x7f462bcd4815 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cc:208
#1 0x7f462af220c9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd70c9)
#2 0x87bcead7a7456aff (<unknown module>)
Thread T62 created by T0 here:
#0 0x7f462bcd4815 in __interceptor_pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cc:208
#1 0x7f462af220c9 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) (/lib/x86_64-linux-gnu/libstdc++.so.6+0xd70c9)
SUMMARY: AddressSanitizer: double-free ../../../../src/libsanitizer/asan/asan_new_delete.cc:168 in operator delete[](void*)
==24629==ABORTING