Created
May 12, 2014 17:15
-
-
Save umireon/d6898c3b6cd3a72674da to your computer and use it in GitHub Desktop.
Debug igloo-test with lldb
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
$ lldb-3.4 bin/igloo-tests | |
(lldb) run | |
Process 10885 launched: '/home/umireon/igloo/build/bin/igloo-tests' (x86_64) | |
Process 10885 stopped | |
* thread #1: tid = 10885, 0x00007ff6f341fc4a libstdc++.so.6`??? + 10, name = 'igloo-tests', stop reason = invalid address (fault address: 0x8) | |
frame #0: 0x00007ff6f341fc4a libstdc++.so.6`??? + 10 | |
libstdc++.so.6`??? + 10: | |
-> 0x7ff6f341fc4a: movq 0x8(%rax), %rax | |
0x7ff6f341fc4e: cmpq %rdi, %rax | |
0x7ff6f341fc51: je 0x7ff6f341fc6e ; ??? + 46 | |
0x7ff6f341fc53: movq 0x10(%rdi), %rax | |
(lldb) bt | |
* thread #1: tid = 10885, 0x00007ff6f341fc4a libstdc++.so.6`??? + 10, name = 'igloo-tests', stop reason = invalid address (fault address: 0x8) | |
* frame #0: 0x00007ff6f341fc4a libstdc++.so.6`??? + 10 | |
frame #1: 0x0000000000619b5f igloo-tests`std::_Rb_tree_iterator<std::pair<std::string const, igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::SpecInfo> >::operator--(this=0x00007fffd77d0f00) + 31 at stl_tree.h:204 | |
frame #2: 0x0000000000619656 igloo-tests`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(this=0x0000000000a067d8, __k=0x00007fffd77d10a8) + 294 at stl_tree.h:1333 | |
frame #3: 0x00000000006194af igloo-tests`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(this=0x0000000000a067d8, __v=0x00007fffd77d10a8) + 63 at stl_tree.h:1377 | |
frame #4: 0x0000000000619379 igloo-tests`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(this=0x0000000000a067d8, __x=0x00007fffd77d10a8) + 25 at stl_map.h:595 | |
frame #5: 0x0000000000619267 igloo-tests`igloo::ContextRegistry<igloo_example::ANewlyStartedGame>::RegisterSpec(name=0x00007fffd77d1160, spec=49 00 00 00 00 00 00 00, skip=false, only=false)(), bool, bool) + 231 at contextregistry.h:59 | |
frame #6: 0x000000000061084a igloo-tests`SpecRegistrar_ShouldHaveAnEmptyBoard(this=0x00007fffd77d11e0) + 90 at bdd_tests.cpp:74 | |
frame #7: 0x000000000060d8d3 igloo-tests`ANewlyStartedGame(this=0x00007fffd77d11c8) + 51 at bdd_tests.cpp:72 | |
frame #8: 0x000000000060d888 igloo-tests`igloo::ContextRunner<void, igloo_example::ANewlyStartedGame>::InstantiateContext(this=0x0000000001a1c2d0) const + 24 at contextrunner.h:77 | |
frame #9: 0x000000000060d762 igloo-tests`void igloo::TestRunner::RegisterContext<igloo::ContextRunner<void, igloo_example::ANewlyStartedGame> >(name=0x00007fffd77d12d0, fileName=0x0000000000733e32, lineNumber=72) + 162 at testrunner.h:144 | |
frame #10: 0x000000000060d647 igloo-tests`ContextRegistrar_ANewlyStartedGame(this=0x0000000000a066f1) + 71 at bdd_tests.cpp:72 | |
frame #11: 0x00000000005ffa41 igloo-tests`__cxx_global_var_init4 + 17 at bdd_tests.cpp:72 | |
frame #12: 0x00000000005ffa68 igloo-tests`_GLOBAL__I_a + 24 at bdd_tests.cpp:24 | |
frame #13: 0x00000000007335bd igloo-tests`__libc_csu_init + 77 | |
frame #14: 0x00007ff6f2aeae55 libc.so.6`__libc_start_main(main=0x00000000006acbe0, argc=1, argv=0x00007fffd77d1428, init=0x0000000000733570, fini=<unavailable>, rtld_fini=<unavailable>, stack_end=0x00007fffd77d1418) + 133 at libc-start.c:246 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment