cherishman2005 / rtc

webrtc websocket GCC NACK FEC
MIT License
17 stars 2 forks source link

AudioFrame std::basic_string coredump #25

Open cherishman2005 opened 3 years ago

cherishman2005 commented 3 years ago

(gdb) bt

0 0x00007f7dcd024428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54

1 0x00007f7dcd02602a in __GI_abort () at abort.c:89

2 0x00007f7dcd0667ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f7dcd17fed8 " Error in `%s': %s: 0x%s \n") at ../sysdeps/posix/libc_fatal.c:175

3 0x00007f7dcd06f37a in malloc_printerr (ar_ptr=, ptr=, str=0x7f7dcd17ffe8 "double free or corruption (out)", action=3) at malloc.c:5006

4 _int_free (av=, p=, have_lock=0) at malloc.c:3867

5 0x00007f7dcd07353c in __GI___libc_free (mem=) at malloc.c:2968

6 0x0000000000486a56 in std::basic_string<char, std::char_traits, std::allocator >::~basic_string (this=0x7f7dc08b6450, __in_chrg=) at /usr/include/c++/4.8/bits/basic_string.h:539

7 Stream::AudioFrame::~AudioFrame (this=0x7f7dc08b6450, __in_chrg=) at ../h/media_queue.h:46

8 std::_Destroy (__pointer=0x7f7dc08b6450) at /usr/include/c++/4.8/bits/stl_construct.h:93

9 std::_Destroy_aux::destroy<Stream::AudioFrame*> (last=, __first=0x7f7dc08b6450) at /usr/include/c++/4.8/bits/stl_construct.h:103

10 std::_Destroy<Stream::AudioFrame*> (last=, first=) at /usr/include/c++/4.8/bits/stl_construct.h:126

11 std::_Destroy<Stream::AudioFrame*, Stream::AudioFrame> (last=, first=) at /usr/include/c++/4.8/bits/stl_construct.h:151

12 std::deque<Stream::AudioFrame, std::allocator >::_M_destroy_data_aux (last=..., first=..., this=0x7f7dc04a1228) at /usr/include/c++/4.8/bits/deque.tcc:811

13 std::deque<Stream::AudioFrame, std::allocator >::_M_destroy_data (last=..., first=..., this=0x7f7dc04a1228) at /usr/include/c++/4.8/bits/stl_deque.h:1853

14 std::deque<Stream::AudioFrame, std::allocator >::~deque (this=0x7f7dc04a1228, __in_chrg=) at /usr/include/c++/4.8/bits/stl_deque.h:918

15 std::queue<Stream::AudioFrame, std::deque<Stream::AudioFrame, std::allocator > >::~queue (this=0x7f7dc04a1228, __in_chrg=) at /usr/include/c++/4.8/bits/stl_queue.h:93

16 Stream::AudioFrameQueue::~AudioFrameQueue (this=0x7f7dc04a1200, __in_chrg=) at ../h/media_queue.h:53

17 std::pair<std::basic_string<char, std::char_traits, std::allocator > const, Stream::AudioFrameQueue>::~pair (this=0x7f7dc04a11f8, __in_chrg=) at /usr/include/c++/4.8/bits/stl_pair.h:96

18 std::detail::_Hash_node<std::pair<std::basic_string<char, std::char_traits, std::allocator > const, Stream::AudioFrameQueue>, true>::~_Hash_node (this=0x7f7dc04a11f0, in_chrg=)

at /usr/include/c++/4.8/bits/hashtable_policy.h:170

19 gnu_cxx::new_allocator<std::detail::_Hash_node<std::pair<std::basic_string<char, std::char_traits, std::allocator > const, Stream::AudioFrameQueue>, true> >::destroy<std::__detail::_Hash_node<std::pair<std::basic_string const, Stream::AudioFrameQueue>, true> > (__p=0x7f7dc04a11f0, this=) at /usr/include/c++/4.8/ext/new_allocator.h:124

20 std::_Hashtable<std::string, std::pair<std::string const, Stream::AudioFrameQueue>, std::allocator<std::pair<std::string const, Stream::AudioFrameQueue> >, std::detail::_Select1st, std::equal_to, std::hash, std::detail::_Mod_range_hashing, std::detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::detail::_Hashtable_traits<true, false, true> >::_M_deallocate_node (this=, __n=0x7f7dc04a11f0)

at /usr/include/c++/4.8/bits/hashtable.h:746

21 0x00000000004a248b in std::_Hashtable<std::string, std::pair<std::string const, Stream::AudioFrameQueue>, std::allocator<std::pair<std::string const, Stream::AudioFrameQueue> >, std::detail::_Select1st, std::equal_to, std::hash, std::detail::_Mod_range_hashing, std::detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::detail::_Hashtable_traits<true, false, true> >::_M_erase (__n=,

__prev_n=<optimized out>, __bkt=19, this=0x1843a00 <Stream::MediaQueue::Instance()::s_instance+64>) at /usr/include/c++/4.8/bits/hashtable.h:1496

22 std::_Hashtable<std::string, std::pair<std::string const, Stream::AudioFrameQueue>, std::allocator<std::pair<std::string const, Stream::AudioFrameQueue> >, std::detail::_Select1st, std::equal_to, std::hash, std::detail::_Mod_range_hashing, std::detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::detail::_Hashtable_traits<true, false, true> >::_M_erase (

this=this@entry=0x1843a00 <Stream::MediaQueue::Instance()::s_instance+64>, __k="8460512") at /usr/include/c++/4.8/bits/hashtable.h:1523

23 0x000000000049f1e7 in std::_Hashtable<std::string, std::pair<std::string const, Stream::AudioFrameQueue>, std::allocator<std::pair<std::string const, Stream::AudioFrameQueue> >, std::detail::_Select1st, std::equal_to, std::hash, std::detail::_Mod_range_hashing, std::detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::detail::_Hashtable_traits<true, false, true> >::erase (__k="8460512",

this=0x1843a00 <Stream::MediaQueue::Instance()::s_instance+64>) at /usr/include/c++/4.8/bits/hashtable.h:685

24 std::unordered_map<std::string, Stream::AudioFrameQueue, std::hash, std::equal_to, std::allocator<std::pair<std::string const, Stream::AudioFrameQueue> > >::erase (__x="8460512",

this=0x1843a00 <Stream::MediaQueue::Instance()::s_instance+64>) at /usr/include/c++/4.8/bits/unordered_map.h:470

25 Stream::MediaQueue::clearMediaQueueByUid (this=0x18439c0 <Stream::MediaQueue::Instance()::s_instance>, uid="8460512") at media_queue.cpp:96

26 0x0000000000498adc in Stream::StreamThread::startPushStream (this=this@entry=0x24c6530) at stream_thread.cpp:164

27 0x00000000004991e5 in Stream::StreamThread::worker (param=0x24c6530) at stream_thread.cpp:128

28 0x00007f7dcdc616ba in start_thread (arg=0x7f7d6ffff700) at pthread_create.c:333

29 0x00007f7dcd0f641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109