GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from map-test...done. [New LWP 26771] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `./map-test'. Program terminated with signal SIGABRT, Aborted. #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt full #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 set = {__val = {0 , 3544383690974588489, 2891437607586832432, 4785954420367044144, 3467835833181827887}} pid = tid = ret = #1 0x00007fb5cc169801 in __GI_abort () at abort.c:79 save_stage = 1 act = {__sigaction_handler = {sa_handler = 0x55e6e3d1f768, sa_sigaction = 0x55e6e3d1f768}, sa_mask = {__val = {94450153024952, 0, 131, 163, 94450066088561, 1, 94450173155200, 68719476921, 94450066220848, 140732130245792, 98784247808, 938448, 20, 94450175181080, 140732130245728, 140732130246016}}, sa_flags = -1063142304, sa_restorer = 0x1000} sigs = {__val = {32, 0 }} __cnt = __set = __cnt = __set = #2 0x00007fb5cc1b2897 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fb5cc2dfb9a "%s\n") at ../sysdeps/posix/libc_fatal.c:181 ap = {{gp_offset = 24, fp_offset = 32693, overflow_arg_area = 0x7ffec0a1bd90, reg_save_area = 0x7ffec0a1bd20}} fd = list = nlist = cp = written = on_2 = next = str = len = newp = iov = total = cnt = buf = wp = old = cnt = result = #3 0x00007fb5cc1b990a in malloc_printerr (str=str@entry=0x7fb5cc2e1870 "double free or corruption (out)") at malloc.c:5350 No locals. #4 0x00007fb5cc1c0e75 in _int_free (have_lock=0, p=0x55e6e53e36e0, av=0x7fb5cc514c40 ) at malloc.c:4278 fb = nextsize = nextinuse = prevsize = fwd = size = nextchunk = bck = size = fb = nextchunk = nextsize = nextinuse = prevsize = bck = fwd = tc_idx = idx = old = old2 = fail = ignore1 = ignore2 = ignore3 = ignore = __atg1_result = ret = ret = ret = ret = ignore1 = ignore2 = ignore3 = heap = ignore = #5 __GI___libc_free (mem=0x55e6e53e36f0) at malloc.c:3124 ar_ptr = 0x7fb5cc514c40 p = 0x55e6e53e36e0 hook = mem = 0x55e6e53e36f0 ar_ptr = p = hook = __x = ar_ptr = p = hook = __x = #6 0x000055e6de9b714f in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x55e6e547e390) at /usr/include/c++/7/bits/shared_ptr_base.h:154 this = 0x55e6e547e390 #7 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=, __in_chrg=) at /usr/include/c++/7/bits/shared_ptr_base.h:684 No locals. #8 std::__shared_ptr::~__shared_ptr (this=, __in_chrg=) at /usr/include/c++/7/bits/shared_ptr_base.h:1123 No locals. #9 std::shared_ptr::~shared_ptr (this=, __in_chrg=) at /usr/include/c++/7/bits/shared_ptr.h:93 No locals. #10 bg_queue_start_battleground (queue=queue@entry=0x55e6e53e36f0) at battleground.cpp:1352 bg = std::shared_ptr (use count 2, weak count 0) = {get() = } map_idx = bg_team_1 = bg_team_2 = #11 0x000055e6de9b7213 in bg_on_ready_start (tid=, tick=, id=, data=94450176898800) at battleground.cpp:729 queue = 0x55e6e53e36f0 __FUNCTION__ = "bg_on_ready_start" #12 0x000055e6de96883a in do_timer (tick=) at timer.cpp:374 tid = 76 diff = 0 diff = tid = _i_ = _lchild_ = _rchild_ = #13 main (argc=, argv=) at core.cpp:368 next =