Skip to content

Instantly share code, notes, and snippets.

@jjthrash
Created December 2, 2014 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjthrash/f9889ec3e0380ebda95d to your computer and use it in GitHub Desktop.
Save jjthrash/f9889ec3e0380ebda95d to your computer and use it in GitHub Desktop.
diannao:kakoune (11:16) $ lldb kak
(lldb) target create "kak"
Current executable set to 'kak' (x86_64).
(lldb) run
Process 58924 launched: '/usr/local/bin/kak' (x86_64)
Process 58924 stopped
* thread #1: tid = 0x468020, 0x00007fff8b16094a libsystem_kernel.dylib`poll + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff8b16094a libsystem_kernel.dylib`poll + 10
libsystem_kernel.dylib`poll + 10:
-> 0x7fff8b16094a: jae 0x7fff8b160954 ; poll + 20
0x7fff8b16094c: movq %rax, %rdi
0x7fff8b16094f: jmp 0x7fff8b15c19a ; cerror
0x7fff8b160954: retq
(lldb) bt
* thread #1: tid = 0x468020, 0x00007fff8b16094a libsystem_kernel.dylib`poll + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff8b16094a libsystem_kernel.dylib`poll + 10
frame #1: 0x00000001000eb028 kak`Kakoune::EventManager::handle_next_events(this=0x00007fff5fbfdd80, mode=Urgent) + 3560 at event_manager.cc:74
frame #2: 0x00000001003352c0 kak`Kakoune::ShellManager::pipe(this=0x00007fff5fbfdc70, input=StringView at 0x00007fff5fbfadd0, cmdline=StringView at 0x00007fff5fbfadc0, context=0x00007fff5fbfda30, params=<unavailable>, env_vars=0x00007fff5fbfc338, exit_status=0x0000000000000000) + 928 at shell_manager.cc:86
frame #3: 0x0000000100334eff kak`Kakoune::ShellManager::eval(this=0x00007fff5fbfdc70, cmdline=StringView at 0x00007fff5fbfb728, context=0x00007fff5fbfda30, params=memoryview<Kakoune::String> at 0x00007fff5fbfb760, env_vars=0x00007fff5fbfc338, exit_status=0x0000000000000000) + 271 at shell_manager.cc:36
frame #4: 0x0000000100059965 kak`Kakoune::(anonymous namespace)::eval_token(token=0x0000000102001758, context=0x00007fff5fbfda30, shell_params=memoryview<Kakoune::String> at 0x00007fff5fbfb868, env_vars=0x00007fff5fbfc338)::Token const&, Kakoune::Context&, Kakoune::memoryview<Kakoune::String>, std::__1::unordered_map<Kakoune::String, Kakoune::String, std::__1::hash<Kakoune::String>, std::__1::equal_to<Kakoune::String>, std::__1::allocator<std::__1::pair<Kakoune::String const, Kakoune::String> > > const&) + 309 at command_manager.cc:311
frame #5: 0x0000000100056d57 kak`Kakoune::CommandManager::execute(this=0x00007fff5fbfdc48, command_line=StringView at 0x00007fff5fbfbbd8, context=0x00007fff5fbfda30, shell_params=memoryview<Kakoune::String> at 0x00007fff5fbfbbc8, env_vars=0x00007fff5fbfc338) + 1911 at command_manager.cc:419
frame #6: 0x000000010009c4bd kak`Kakoune::(anonymous namespace)::$_20::operator(this=0x0000000100906fd0, parser=0x00007fff5fbfc908, context=0x00007fff5fbfda30)(Kakoune::ParametersParser const&, Kakoune::Context&) const + 829 at commands.cc:820
frame #7: 0x000000010009c170 kak`Kakoune::(anonymous namespace)::$_20::__invoke(parser=0x00007fff5fbfc908, context=0x00007fff5fbfda30) + 32 at commands.cc:815
frame #8: 0x00000001000bb50c kak`std::__1::__function::__func<void (*)(Kakoune::ParametersParser const&, Kakoune::Context&), std::__1::allocator<void (*)(Kakoune::ParametersParser const&, Kakoune::Context&)>, void (Kakoune::ParametersParser const&, Kakoune::Context&)>::operator()(Kakoune::ParametersParser const&, Kakoune::Context&) [inlined] decltype(this=0x0000000100906fd8, __f=0x0000000100906fd8, __args=0x00007fff5fbfc908, __args=0x00007fff5fbfda30)(Kakoune::ParametersParser const&, Kakoune::Context&)>(fp)(std::__1::forward<Kakoune::ParametersParser const&, Kakoune::Context&>(fp0))) std::__1::__invoke<void (*&)(Kakoune::ParametersParser const&, Kakoune::Context&), Kakoune::ParametersParser const&, Kakoune::Context&>(void (*&&&)(Kakoune::ParametersParser const&, Kakoune::Context&), Kakoune::ParametersParser const&&&, Kakoune::Context&&&) + 124 at __functional_base:413
frame #9: 0x00000001000bb4e3 kak`std::__1::__function::__func<void (this=0x0000000100906fd0, __arg=0x00007fff5fbfc908, __arg=0x00007fff5fbfda30)(Kakoune::ParametersParser const&, Kakoune::Context&), std::__1::allocator<void (*)(Kakoune::ParametersParser const&, Kakoune::Context&)>, void (Kakoune::ParametersParser const&, Kakoune::Context&)>::operator()(Kakoune::ParametersParser const&, Kakoune::Context&) + 83 at functional:1370
frame #10: 0x0000000100066dd4 kak`std::__1::function<void (this=0x0000000100906fd0, __arg=0x00007fff5fbfc908, __arg=0x00007fff5fbfda30)>::operator()(Kakoune::ParametersParser const&, Kakoune::Context&) const + 196 at functional:1755
frame #11: 0x0000000100056004 kak`Kakoune::CommandManager::execute_single_command(this=0x00007fff5fbfdc48, params=Kakoune::CommandParameters at 0x00007fff5fbfc990, context=0x00007fff5fbfda30, pos=CharCoord at 0x00007fff5fbfc988) const + 996 at command_manager.cc:366
frame #12: 0x00000001000578ac kak`Kakoune::CommandManager::execute(this=0x00007fff5fbfdc48, command_line=StringView at 0x00007fff5fbfcdf8, context=0x00007fff5fbfda30, shell_params=memoryview<Kakoune::String> at 0x00007fff5fbfcde8, env_vars=0x00007fff5fbfd9a0) + 4812 at command_manager.cc:435
frame #13: 0x000000010021f073 kak`run_server(session=StringView at 0x00007fff5fbfde90, init_command=StringView at 0x00007fff5fbfde80, ignore_kakrc=false, daemon=false, files=<unavailable>) + 2323 at main.cc:371
frame #14: 0x0000000100223a83 kak`main(argc=1, argv=0x00007fff5fbff678) + 9395 at main.cc:583
frame #15: 0x00007fff8d4615fd libdyld.dylib`start + 1
frame #16: 0x00007fff8d4615fd libdyld.dylib`start + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment