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 12516] [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) #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 set = {__val = {0, 93847666162722, 1, 140737313090992, 0, 0, 206158430256, 140737313091224, 140737313091024, 7964136623682261760, 93847687695936, 93847666162129, 815868477601, 93847665738592, 140737313091264, 734439407632}} pid = tid = ret = #1 0x00007fd638611801 in __GI_abort () at abort.c:79 save_stage = 1 act = {__sigaction_handler = {sa_handler = 0x35, sa_sigaction = 0x35}, sa_mask = {__val = {140557556360532, 0, 0, 140558016723644, 93847665917347, 93847742574376, 216266629781715687, 472925007949136087, 281474976729975, 7957688057311552003, 2314885536443492717, 7017278248329355296, 7308335181711286387, 139776480141671, 140737313091536, 140737313091824}}, sa_flags = -175263792, sa_restorer = 0x1000} sigs = {__val = {32, 0 }} __cnt = __set = __cnt = __set = #2 0x00007fd63865a897 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fd638787b9a "%s\n") at ../sysdeps/posix/libc_fatal.c:181 ap = {{gp_offset = 24, fp_offset = 21850, overflow_arg_area = 0x7ffff58db100, reg_save_area = 0x7ffff58db090}} fd = list = nlist = cp = written = on_2 = next = str = len = newp = iov = total = cnt = buf = wp = old = cnt = result = #3 0x00007fd63866190a in malloc_printerr (str=str@entry=0x7fd638789870 "double free or corruption (out)") at malloc.c:5350 No locals. #4 0x00007fd638668e75 in _int_free (have_lock=0, p=0x555aa2b9e6e0, av=0x7fd6389bcc40 ) 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=0x555aa2b9e6f0) at malloc.c:3124 ar_ptr = 0x7fd6389bcc40 p = 0x555aa2b9e6e0 hook = mem = 0x555aa2b9e6f0 ar_ptr = p = hook = __x = ar_ptr = p = hook = __x = #6 0x0000555a9cc5d859 in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x555aa2bc7610) at /usr/include/c++/7/bits/shared_ptr_base.h:154 this = 0x555aa2bc7610 #7 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0x7ffff58db188, __in_chrg=) at /usr/include/c++/7/bits/shared_ptr_base.h:684 No locals. #8 std::__shared_ptr::~__shared_ptr (this=0x7ffff58db180, __in_chrg=) at /usr/include/c++/7/bits/shared_ptr_base.h:1123 No locals. #9 std::shared_ptr::~shared_ptr (this=0x7ffff58db180, __in_chrg=) at /usr/include/c++/7/bits/shared_ptr.h:93 No locals. #10 bg_on_ready_loopback (tid=, tick=, id=, data=) at battleground.cpp:678 queue = __FUNCTION__ = "bg_on_ready_loopback" bg = std::shared_ptr (use count 2, weak count 0) = {get() = 0x555aa1519af0} #11 0x0000555a9cc1183a in do_timer (tick=) at timer.cpp:374 tid = 217 diff = -5 diff = tid = _i_ = _lchild_ = _rchild_ = #12 main (argc=, argv=) at core.cpp:368 next =