Skip to content

Instantly share code, notes, and snippets.

(gdb) bt
#0 bx::debugBreak () at ../../../dm/include/dm/../../3rdparty/bx/debug.h:49
#1 0x00000000004ae49c in dm::Memory::Heap::addSpace (this=0xd49910 <dm::s_memory+75536>, _ptr=0x7fffa2a1c2c8, _size=1265666928) at ../../../dm/include/dm/allocator/allocator.h:1077
#2 0x00000000004af8a1 in dm::Memory::Heap::free (this=0xd49910 <dm::s_memory+75536>, _ptr=0x7fffc60c19f0) at ../../../dm/include/dm/allocator/allocator.h:1653
#3 0x00000000004ac9b7 in dm::Memory::free (this=0xd37200 <dm::s_memory>, _ptr=0x7fffc60c19f0) at ../../../dm/include/dm/allocator/allocator.h:381
#4 0x00000000004aac13 in operator delete (_ptr=0x7fffc60c19f0) at ../../src/common/allocator.cpp:273
#5 0x0000000000499d90 in __gnu_cxx::new_allocator<FaceTuple>::deallocate (this=0x7fff973163e0, __p=0x7fffc60c19f0) at /usr/include/c++/4.8/ext/new_allocator.h:110
#6 0x0000000000495e84 in std::_Vector_base<FaceTuple, std::allocator<FaceTuple> >::_M_deallocate (this=0x7fff973163e0, __p=0x7fffc60c19f0, __n=7161506) at /usr/include/c++/4.8/bits/s
@AndrewJDR
AndrewJDR / cfipt.sh
Last active August 10, 2024 23:38
Cloudflare whitelist iptables update cron script
#!/bin/bash
# Based on a template iptables config file, create a new
# iptables file that includes whitelist rules for CloudFlare's
# servers to connect to our HTTP and HTTPS ports. This is useful
# if you want to really lock down your web server so that it only
# communicates with cloudflare's servers, not with the general public.
# It works like this:
# * Get an up-to-date list of CloudFlare's server IPs
# * Read in config template from /etc/sysconfig/iptables.template
# * Output an iptables configuration file /etc/sysconfig/iptables
@AndrewJDR
AndrewJDR / handmade_git.sh
Last active August 29, 2015 14:10
Creates a git repository based off of the handmade hero source zip
echo Syntax:
echo $0 handmade_hero_nnn_source.zip
echo
if [ ! -s "$1" ]; then
echo "specified file doesn't exist!"
exit
fi
STARTDIR=$PWD