C++ Debugging Tips
For a better traceback of C++ containers, install debug version of libstdc++ per http://nanxiao.me/en/install-libstdc-debug-package-on-ubuntu/. For example, on my ubuntu 16.04 installation, this was sudo apt-get install libstdc++6-5-dbg