GNU gdb (Ubuntu 7.7-0ubuntu3) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from emacs...Reading symbols from /usr/lib/debug/.build-id/03/327e010f548b8c61532289d810e812ceae5172.debug...done. done. (gdb) info inferiors Num Description Executable * 1 /usr/bin/emacs (gdb) add-invferior -excec emec emacsclient Added inferior 2 Reading symbols from emacsclient...(no debugging symbols found)...done. (gdb) handle SIG33 pass nostop noprint Signal Stop Print Pass to program Description SIG33 No No Yes Real-time event 33 (gdb) set pagination 0 (gdb) inferior  info inferiors Num Description Executable 2 /usr/bin/emacsclient * 1 /usr/bin/emacs (gdb) infeiorior 2 [Switching to inferior 2 [] (/usr/bin/emacsclient)] (gdb) run try.txt Starting program: /usr/bin/emacsclient try.txt Waiting for Emacs... Program received signal SIGINT, Interrupt. 0x00007ffff7b1003d in __libc_recv (fd=3, buf=0x7fffffffbaf0, n=8192, flags=-1) at ../sysdeps/unix/sysv/linux/x86_64/recv.c:29 29 ../sysdeps/unix/sysv/linux/x86_64/recv.c: No such file or directory. (gdb) backtrace full #0 0x00007ffff7b1003d in __libc_recv (fd=3, buf=0x7fffffffbaf0, n=8192, flags=-1) at ../sysdeps/unix/sysv/linux/x86_64/recv.c:29 resultvar = 18446744073709551104 oldtype = -17663 #1 0x0000000000401caa in ?? () No symbol table info available. #2 0x00007ffff7a35ec5 in __libc_start_main (main=0x401690, argc=2, argv=0x7fffffffdc18, init=, fini=, rtld_fini=, stack_end=0x7fffffffdc08) at libc-start.c:285 result = unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 1256261073157481417, 4203315, 140737488346128, 0, 0, -1256261072236321847, -1256278290590997559}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x403200, 0x7fffffffdc18}, data = {prev = 0x0, cleanup = 0x0, canceltype = 4207104}}} not_first_call = #3 0x000000000040235c in ?? () No symbol table info available. (gdb) info registers rax 0xfffffffffffffe00 -512 rbx 0x7fffffffbb01 140737488337665 rcx 0xffffffffffffffff -1 rdx 0x2000 8192 rsi 0x7fffffffbaf0 140737488337648 rdi 0x3 3 rbp 0x7fffffffbb01 0x7fffffffbb01 rsp 0x7fffffffba98 0x7fffffffba98 r8 0x0 0 r9 0x0 0 r10 0x0 0 r11 0x246 582 r12 0x7ffff7fbf6a0 140737353873056 r13 0x11 17 r14 0x2 2 r15 0x7fffffffdc18 140737488346136 rip 0x7ffff7b1003d 0x7ffff7b1003d <__libc_recv+29> eflags 0x246 [ PF ZF IF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 (gdb) x/16i $pc => 0x7ffff7b1003d <__libc_recv+29>: cmp $0xfffffffffffff000,%rax 0x7ffff7b10043 <__libc_recv+35>: ja 0x7ffff7b10046 <__libc_recv+38> 0x7ffff7b10045 <__libc_recv+37>: retq 0x7ffff7b10046 <__libc_recv+38>: mov 0x2c2e1b(%rip),%rdx # 0x7ffff7dd2e68 0x7ffff7b1004d <__libc_recv+45>: neg %eax 0x7ffff7b1004f <__libc_recv+47>: mov %eax,%fs:(%rdx) 0x7ffff7b10052 <__libc_recv+50>: or $0xffffffffffffffff,%rax 0x7ffff7b10056 <__libc_recv+54>: retq 0x7ffff7b10057 <__libc_recv+55>: push %rbp 0x7ffff7b10058 <__libc_recv+56>: push %rbx 0x7ffff7b10059 <__libc_recv+57>: mov $0x2d,%ebx 0x7ffff7b1005e <__libc_recv+62>: sub $0x28,%rsp 0x7ffff7b10062 <__libc_recv+66>: mov %ecx,0x1c(%rsp) 0x7ffff7b10066 <__libc_recv+70>: mov %rdx,0x10(%rsp) 0x7ffff7b1006b <__libc_recv+75>: mov %rsi,0x8(%rsp) 0x7ffff7b10070 <__libc_recv+80>: mov %edi,0x18(%rsp) (gdb) thread apply all backtrace Thread 1 (process 5977): #0 0x00007ffff7b1003d in __libc_recv (fd=3, buf=0x7fffffffbaf0, n=8192, flags=-1) at ../sysdeps/unix/sysv/linux/x86_64/recv.c:29 #1 0x0000000000401caa in ?? () #2 0x00007ffff7a35ec5 in __libc_start_main (main=0x401690, argc=2, argv=0x7fffffffdc18, init=, fini=, rtld_fini=, stack_end=0x7fffffffdc08) at libc-start.c:285 #3 0x000000000040235c in ?? () (gdb) quit A debugging session is active. Inferior 2 [process 5977] will be killed. Quit anyway? (y or n)