Created
May 13, 2014 00:36
-
-
Save umireon/6d4298973ca4c8ac9087 to your computer and use it in GitHub Desktop.
Debug igloo-test with gdb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdb bin/igloo-tests | |
GNU gdb (Ubuntu 7.7-0ubuntu3) 7.7 | |
Copyright (C) 2014 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
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: | |
<http://www.gnu.org/software/gdb/bugs/>. | |
Find the GDB manual and other documentation resources online at: | |
<http://www.gnu.org/software/gdb/documentation/>. | |
For help, type "help". | |
Type "apropos word" to search for commands related to "word"... | |
Reading symbols from bin/igloo-tests...(no debugging symbols found)...done. | |
(gdb) run | |
Starting program: /home/umireon/igloo/build/bin/igloo-tests | |
Program received signal SIGSEGV, Segmentation fault. | |
0x00007ffff7b4ac4a in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | |
(gdb) bt | |
#0 0x00007ffff7b4ac4a in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | |
#1 0x0000000000619b5f in std::_Rb_tree_iterator<std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo> >::operator--() | |
() | |
#2 0x0000000000619656 in std::_Rb_tree<std::string, std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo>, std::_Select1st<std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo> >, std::less<std::string>, std::allocator<std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo> > >::_M_get_insert_unique_pos(std::string const&) () | |
#3 0x00000000006194af in std::_Rb_tree<std::string, std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo>, std::_Select1st<std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo> >, std::less<std::string>, std::allocator<std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo> > >::_M_insert_unique(std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo> const&) () | |
#4 0x0000000000619379 in std::map<std::string, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo, std::less<std::string>, std::allocator<std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo> > >::insert(std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo> const&) () | |
#5 0x0000000000619267 in igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::RegisterSpec(std::string const&, void (igloo_example::ANewlyStartedGame::*)(), bool, bool) () | |
#6 0x000000000061084a in igloo_example::ANewlyStartedGame::SpecRegistrar_ShouldHaveAnEmptyBoard::SpecRegistrar_ShouldHaveAnEmptyBoard() () | |
#7 0x000000000060d8d3 in igloo_example::ANewlyStartedGame::ANewlyStartedGame() () | |
#8 0x000000000060d888 in igloo::ContextRunner<void, igloo_example::ANewlyStartedGame>::InstantiateContext() const () | |
#9 0x000000000060d762 in void igloo::TestRunner::RegisterContext<igloo::ContextRunner<void, igloo_example::ANewlyStartedGame> >(std::string const&, char const*, int) () | |
#10 0x000000000060d647 in igloo_example::ContextRegistrar_ANewlyStartedGame::ContextRegistrar_ANewlyStartedGame() () | |
#11 0x00000000005ffa41 in __cxx_global_var_init4 () | |
#12 0x00000000005ffa68 in global constructors keyed to a () | |
#13 0x00000000007335bd in __libc_csu_init () | |
#14 0x00007ffff7215e55 in __libc_start_main (main=0x6acbe0 <main>, argc=1, argv=0x7fffffffe638, init=0x733570 <__libc_csu_init>, fini=<optimized out>, | |
rtld_fini=<optimized out>, stack_end=0x7fffffffe628) at libc-start.c:246 | |
#15 0x00000000006004e9 in _start () | |
(gdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment