Skip to content

Instantly share code, notes, and snippets.

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 antifuchs/456914 to your computer and use it in GitHub Desktop.
Save antifuchs/456914 to your computer and use it in GitHub Desktop.
asf@baker:~> gdb -p 8405
GNU gdb 6.8-debian
Copyright (C) 2008 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".
Attaching to process 8405
Reading symbols from /usr/local/stow/tmux/bin/tmux...done.
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libutil.so.1...done.
Loaded symbols for /lib/libutil.so.1
Reading symbols from /usr/local/lib/libevent-1.4.so.2...done.
Loaded symbols for /usr/local/lib/libevent-1.4.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 0x7f4e943ab6e0 (LWP 8405)]
Loaded symbols for /lib/libpthread.so.0
0x00007f4e9368fbd3 in epoll_wait () from /lib/libc.so.6
(gdb) backtrace
#0 0x00007f4e9368fbd3 in epoll_wait () from /lib/libc.so.6
#1 0x00007f4e93926526 in epoll_dispatch (base=0x67ad00, arg=0x67b330, tv=<value optimized out>)
at epoll.c:198
#2 0x00007f4e9391a057 in event_base_loop (base=0x67ad00, flags=<value optimized out>) at event.c:516
#3 0x000000000042aaf2 in server_loop () at server.c:233
#4 0x000000000042aad8 in server_start (path=0x675c50 "/tmp//tmux-1000/default") at server.c:224
#5 0x0000000000403b5e in client_init (path=0x675c50 "/tmp//tmux-1000/default", cmdflags=7, flags=1)
at client.c:86
#6 0x0000000000431fa0 in main (argc=4, argv=0x7fffffffbf10) at tmux.c:543
(gdb) backtrace full
#0 0x00007f4e9368fbd3 in epoll_wait () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f4e93926526 in epoll_dispatch (base=0x67ad00, arg=0x67b330, tv=<value optimized out>)
at epoll.c:198
events = (struct epoll_event *) 0x67b360
evep = <value optimized out>
res = <value optimized out>
timeout = -1
#2 0x00007f4e9391a057 in event_base_loop (base=0x67ad00, flags=<value optimized out>) at event.c:516
evsel = (const struct eventop *) 0x7f4e93b2bb40
evbase = (void *) 0x67b330
tv = {tv_sec = 0, tv_usec = 43987}
tv_p = (struct timeval *) 0x7fffffffa3a0
res = <value optimized out>
#3 0x000000000042aaf2 in server_loop () at server.c:233
No locals.
#4 0x000000000042aad8 in server_start (path=0x675c50 "/tmp//tmux-1000/default") at server.c:224
wp = (struct window_pane *) 0x675c50
pair = {4, 5}
retval = 0
cause = 0x3 <Address 0x3 out of bounds>
tv = {tv_sec = 1, tv_usec = 0}
i = 32590
__func__ = "server_start"
#5 0x0000000000403b5e in client_init (path=0x675c50 "/tmp//tmux-1000/default", cmdflags=7, flags=1)
at client.c:86
sa = {sun_family = 1, sun_path = "/tmp//tmux-1000/default", '\0' <repeats 84 times>}
size = 23
fd = 3
mode = 0
__func__ = "client_init"
#6 0x0000000000431fa0 in main (argc=4, argv=0x7fffffffbf10) at tmux.c:543
cmdlist = (struct cmd_list *) 0x675c30
cmd = (struct cmd *) 0x0
msg = MSG_COMMAND
pw = (struct passwd *) 0x7fffffffbf08
oo = (struct options *) 0x671890
so = (struct options *) 0x671870
wo = (struct options *) 0x6717a0
keylist = (struct keylist *) 0x674d20
envdata = {path = 0x0, pid = -1, idx = 0}
cmddata = {pid = -1, idx = 0, argc = 4,
argv = "attach-session\000-d\000-t\000baker\000?\030\000\000\000\000\000\000\000?\215?\223N\177\000\000\000\000\000\000\000\000\000\000\020\n<\224N\177\000\000\000\000\200j????\000\0006\2076(\235?", '\0' <repeats 28 times>, "\003\000\n\000\000????\177\000\000(?:\224N\177\000\000\b\000\000\000\000\000\000\000R?td\004\000\000\000\220????\177\000\000\000????\177\000\000\000\000\000\000\000\000\000\000?P\032\224N\177\000\000\001\000\000\000\000\000\000\000X\005<\224N\177\000\000?9\033\224N\177", '\0' <repeats 14 times>, "\002", '\0' <repeats 20 times>, "???"...}
s = 0x7fffffffdfa5 "de_AT.UTF-8"
shellcmd = 0x0
path = 0x675c50 "/tmp//tmux-1000/default"
label = 0x675c30 "EDITOR"
home = 0x7fffffffdcc0 "/home/asf"
cause = 0x0
cwd = "/home/asf", '\0' <repeats 399 times>, "O?\032\224N\177", '\0' <repeats 75 times>, "`\001\000\000\000\000\000?\\\001\000\000\000\000\000?\\\001", '\0' <repeats 13 times>, "\005\000\000\000\000\000\000\000\000`!\000\000\000\000\000\000\200!\000\000\000\000\000Pr!\000\000\000\000\000p?!\000\000\000\000\000\000`\001\000\000\000\000\000\003", '\0' <repeats 111 times>, "UP\033\224N\177\000\000\000\000\000\000\000\000\000\000(5<\224N\177\000\000??\222N\177\000\0004?\032\224N\177", '\0' <repeats 26 times>, "=?\032\224N\177\000\000\000\000\000\000\000\000\000\000/\000\000\000\000\000\000\000\230?:\224N\177"...
var = (char **) 0x7fffffffc018
buf = (void *) 0x7fffffffb570
len = 2060
opt = -1
flags = 1
quiet = 0
cmdflags = 7
events = 0
__func__ = "main"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment