Skip to content

Instantly share code, notes, and snippets.

@sheenobu
Created July 6, 2019 02:34
Show Gist options
  • Save sheenobu/0be4ed7f9224f5b995156c47aca48bb7 to your computer and use it in GitHub Desktop.
Save sheenobu/0be4ed7f9224f5b995156c47aca48bb7 to your computer and use it in GitHub Desktop.
gdb) i thr
Id Target Id Frame
* 1 Thread 0x7ffff539b080 (LWP 18338) "waybar" 0x00007ffff7123dc9 in pthread_mutex_lock () from /lib64/libpthread.so.0
2 Thread 0x7fffe83ed700 (LWP 18346) "gmain" 0x00007ffff70435c7 in poll () from /lib64/libc.so.6
3 Thread 0x7fffe7bec700 (LWP 18347) "pool-waybar" 0x00007ffff7048fad in syscall () from /lib64/libc.so.6
4 Thread 0x7fffe73ad700 (LWP 18348) "gdbus" 0x00007ffff70435c7 in poll () from /lib64/libc.so.6
5 Thread 0x7fffe6bac700 (LWP 18349) "dconf worker" 0x00007ffff70435c7 in poll () from /lib64/libc.so.6
6 Thread 0x7fffe60ac700 (LWP 18354) "waybar" 0x00007ffff712a93d in __lll_lock_wait () from /lib64/libpthread.so.0
7 Thread 0x7fffe58ab700 (LWP 18355) "waybar" 0x00007ffff712ae7c in recv () from /lib64/libpthread.so.0
9 Thread 0x7fffe48a9700 (LWP 18359) "threaded-ml" 0x00007ffff70435c7 in poll () from /lib64/libc.so.6
10 Thread 0x7fffcbfff700 (LWP 18360) "waybar" 0x00007ffff712788a in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
11 Thread 0x7fffcb7fe700 (LWP 18361) "waybar" 0x00007ffff704e63e in epoll_wait () from /lib64/libc.so.6
12 Thread 0x7fffcaffd700 (LWP 18362) "waybar" 0x00007ffff712788a in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
13 Thread 0x7fffca7fc700 (LWP 18363) "waybar" 0x00007ffff712788a in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
14 Thread 0x7fffc9ffb700 (LWP 18364) "waybar" 0x00007ffff712788a in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
15 Thread 0x7fffc97fa700 (LWP 18365) "waybar" 0x00007ffff704e63e in epoll_wait () from /lib64/libc.so.6
16 Thread 0x7fffc8ff9700 (LWP 18366) "waybar" 0x00007ffff712788a in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
17 Thread 0x7fffb3fff700 (LWP 18367) "waybar" 0x00007ffff712abec in read () from /lib64/libpthread.so.0
18 Thread 0x7fffb37fe700 (LWP 18368) "waybar" 0x00007ffff712788a in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib64/libpthread.so.0
(gdb) bt
#0 0x00007ffff712a93d in __lll_lock_wait () at /lib64/libpthread.so.0
#1 0x00007ffff7123dc9 in pthread_mutex_lock () at /lib64/libpthread.so.0
#2 0x000000000042ebb9 in __gthread_mutex_lock(__gthread_mutex_t*) (__mutex=0x636268)
at /usr/include/c++/9/x86_64-redhat-linux/bits/gthr-default.h:749
#3 0x000000000042ed7a in std::mutex::lock() (this=0x636268) at /usr/include/c++/9/bits/std_mutex.h:100
#4 0x000000000042f3cc in std::lock_guard<std::mutex>::lock_guard(std::mutex&) (this=0x7fffffffce38, __m=...)
at /usr/include/c++/9/bits/std_mutex.h:159
#5 0x0000000000487809 in waybar::modules::sway::Ipc::sendCmd(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0x636240, type=0, payload="workspace \"3\"") at ../src/modules/sway/ipc/client.cpp:128
#6 0x000000000049015c in waybar::modules::sway::Workspaces::handleScroll(_GdkEventScroll*) (this=0x636000, e=0x592140)
at ../src/modules/sway/workspaces.cpp:240
#7 0x000000000042a3c0 in sigc::bound_mem_functor1<bool, waybar::AModule, _GdkEventScroll*>::operator()(_GdkEventScroll* const&) const (this=0x647ad8, _A_a1=@0x7fffffffcfe8: 0x592140) at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:2066
#8 0x000000000042a05d in sigc::adaptor_functor<sigc::bound_mem_functor1<bool, waybar::AModule, _GdkEventScroll*> >::operator()<_GdkEventScroll* const&>(_GdkEventScroll* const&) const (this=0x647ad0, _A_arg1=@0x7fffffffcfe8: 0x592140)
at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:89
#9 0x0000000000429bae in sigc::internal::slot_call1<sigc::bound_mem_functor1<bool, waybar::AModule, _GdkEventScroll*>, bool, _GdkEventScroll*>::call_it(sigc::internal::slot_rep*, _GdkEventScroll* const&) (rep=0x647aa0, a_1=@0x7fffffffcfe8: 0x592140)
at /usr/include/sigc++-2.0/sigc++/functors/slot.h:170
#10 0x00007ffff7d83961 in () at /lib64/libgtkmm-3.0.so.1
#11 0x00007ffff6b5c8fb in () at /lib64/libgtk-3.so.0
#12 0x00007ffff7556742 in g_closure_invoke () at /lib64/libgobject-2.0.so.0
#13 0x00007ffff756a03b in () at /lib64/libgobject-2.0.so.0
#14 0x00007ffff75729c1 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#15 0x00007ffff7573973 in g_signal_emit () at /lib64/libgobject-2.0.so.0
#16 0x00007ffff6b08d13 in () at /lib64/libgtk-3.so.0
#17 0x00007ffff69c4f58 in () at /lib64/libgtk-3.so.0
#18 0x00007ffff69c716b in gtk_main_do_event () at /lib64/libgtk-3.so.0
#19 0x00007ffff75dbec9 in () at /lib64/libgdk-3.so.0
#20 0x00007ffff7638e16 in () at /lib64/libgdk-3.so.0
#21 0x00007ffff66a2edd in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#22 0x00007ffff66a3270 in () at /lib64/libglib-2.0.so.0
#23 0x00007ffff66a3313 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#24 0x00007ffff6528485 in g_application_run () at /lib64/libgio-2.0.so.0
#25 0x0000000000470b77 in waybar::Client::main(int, char**) (this=0x554d60, argc=1, argv=0x7fffffffe398) at ../src/client.cpp:278
#26 0x000000000046439d in main(int, char**) (argc=1, argv=0x7fffffffe398) at ../src/main.cpp:22
(gdb) thread 6
[Switching to thread 6 (Thread 0x7fffe60ac700 (LWP 18354))]
#0 0x00007ffff712a93d in __lll_lock_wait () from /lib64/libpthread.so.0
(gdb) bt
#0 0x00007ffff712a93d in __lll_lock_wait () at /lib64/libpthread.so.0
#1 0x00007ffff7123dc9 in pthread_mutex_lock () at /lib64/libpthread.so.0
#2 0x000000000042ebb9 in __gthread_mutex_lock(__gthread_mutex_t*) (__mutex=0x6361b0)
at /usr/include/c++/9/x86_64-redhat-linux/bits/gthr-default.h:749
#3 0x000000000042ed7a in std::mutex::lock() (this=0x6361b0) at /usr/include/c++/9/bits/std_mutex.h:100
#4 0x000000000042f3cc in std::lock_guard<std::mutex>::lock_guard(std::mutex&) (this=0x7fffe60ab548, __m=...)
at /usr/include/c++/9/bits/std_mutex.h:159
#5 0x000000000048dfb7 in waybar::modules::sway::Workspaces::onCmd(waybar::modules::sway::Ipc::ipc_response const&)
(this=0x636000, res=...) at ../src/modules/sway/workspaces.cpp:40
#6 0x00000000004951eb in sigc::bound_mem_functor1<void, waybar::modules::sway::Workspaces, waybar::modules::sway::Ipc::ipc_response const&>::operator()(waybar::modules::sway::Ipc::ipc_response const&) const (this=0x64a9d8, _A_a1=...)
at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:2066
#7 0x0000000000494851 in sigc::adaptor_functor<sigc::bound_mem_functor1<void, waybar::modules::sway::Workspaces, waybar::modules::sway::Ipc::ipc_response const&> >::operator()<waybar::modules::sway::Ipc::ipc_response const&>(waybar::modules::sway::Ipc::ipc_response const&) const (this=0x64a9d0, _A_arg1=...) at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:89
#8 0x000000000049402e in sigc::internal::slot_call<sigc::bound_mem_functor1<void, waybar::modules::sway::Workspaces, waybar::modules::sway::Ipc::ipc_response const&>, void, waybar::modules::sway::Ipc::ipc_response const&>::call_it(sigc::internal::slot_rep*, waybar::modules::sway::Ipc::ipc_response const&) (rep=0x64a9a0, a_#0=...) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:451
#9 0x00000000004882e6 in sigc::internal::signal_emit1<void, waybar::modules::sway::Ipc::ipc_response const&, sigc::nil>::emit(sigc::internal::signal_impl*, waybar::modules::sway::Ipc::ipc_response const&) (impl=0x7fc7c0, _A_a1=...)
at /usr/include/sigc++-2.0/sigc++/signal.h:1041
#10 0x0000000000487fbb in sigc::signal1<void, waybar::modules::sway::Ipc::ipc_response const&, sigc::nil>::emit(waybar::modules::sway::Ipc::ipc_response const&) const (this=0x636250, _A_a1=...) at /usr/include/sigc++-2.0/sigc++/signal.h:2951
#11 0x0000000000487841 in waybar::modules::sway::Ipc::sendCmd(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (this=0x636240, type=1, payload="") at ../src/modules/sway/ipc/client.cpp:130
#12 0x000000000048dda5 in waybar::modules::sway::Workspaces::onEvent(waybar::modules::sway::Ipc::ipc_response const&)
(this=0x636000, res=...) at ../src/modules/sway/workspaces.cpp:30
#13 0x00000000004951eb in sigc::bound_mem_functor1<void, waybar::modules::sway::Workspaces, waybar::modules::sway::Ipc::ipc_response const&>::operator()(waybar::modules::sway::Ipc::ipc_response const&) const (this=0x64a8b8, _A_a1=...)
at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:2066
#14 0x0000000000494851 in sigc::adaptor_functor<sigc::bound_mem_functor1<void, waybar::modules::sway::Workspaces, waybar::modules::sway::Ipc::ipc_response const&> >::operator()<waybar::modules::sway::Ipc::ipc_response const&>(waybar::modules::sway::Ipc::ipc_response const&) const (this=0x64a8b0, _A_arg1=...) at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:89
#15 0x000000000049402e in sigc::internal::slot_call<sigc::bound_mem_functor1<void, waybar::modules::sway::Workspaces, waybar::modules::sway::Ipc::ipc_response const&>, void, waybar::modules::sway::Ipc::ipc_response const&>::call_it(sigc::internal::slot_rep*, waybar::modules::sway::Ipc::ipc_response const&) (rep=0x64a880, a_#0=...) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:451
#16 0x00000000004882e6 in sigc::internal::signal_emit1<void, waybar::modules::sway::Ipc::ipc_response const&, sigc::nil>::emit(sigc::internal::signal_impl*, waybar::modules::sway::Ipc::ipc_response const&) (impl=0x78bf20, _A_a1=...)
at /usr/include/sigc++-2.0/sigc++/signal.h:1041
#17 0x0000000000487fbb in sigc::signal1<void, waybar::modules::sway::Ipc::ipc_response const&, sigc::nil>::emit(waybar::modules::sway::Ipc::ipc_response const&) const (this=0x636240, _A_a1=...) at /usr/include/sigc++-2.0/sigc++/signal.h:2951
#18 0x0000000000487984 in waybar::modules::sway::Ipc::handleEvent() (this=0x636240) at ../src/modules/sway/ipc/client.cpp:142
#19 0x000000000048e6c4 in waybar::modules::sway::Workspaces::<lambda()>::operator()(void) const (__closure=0x6a4500)
at ../src/modules/sway/workspaces.cpp:105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment