$ gdb --pid=`pidof /usr/bin/XWin` GNU gdb (GDB) (Cygwin 8.2.1-1) 8.2.1 Copyright (C) 2018 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-pc-cygwin". 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". Attaching to process 2952 [New Thread 2952.0x1144] [New Thread 2952.0x2178] [New Thread 2952.0x22c4] [New Thread 2952.0x95c] [New Thread 2952.0x3958] [New Thread 2952.0x3e88] [New Thread 2952.0x3cdc] [New Thread 2952.0x474] [New Thread 2952.0x35e0] [New Thread 2952.0x4398] [New Thread 2952.0x2f04] [New Thread 2952.0x40c0] [New Thread 2952.0x3d9c] [New Thread 2952.0x2d10] [New Thread 2952.0xb40] [New Thread 2952.0x138] [New Thread 2952.0x2f38] [New Thread 2952.0x261c] [New Thread 2952.0x3f98] [New Thread 2952.0xcc0] [New Thread 2952.0x3ee0] [New Thread 2952.0x3c08] [New Thread 2952.0x1670] [New Thread 2952.0x2b7c] [New Thread 2952.0x2bf0] [New Thread 2952.0xbc8] [New Thread 2952.0x128c] Reading symbols from /usr/bin/XWin.exe...Reading symbols from /usr/lib/debug//usr/bin/XWin.exe.dbg...done. done. (gdb) c Continuing. [Thread 2952.0x128c exited with code 0] [New Thread 2952.0x2530] [New Thread 2952.0x3cd4] [Thread 2952.0x2530 exited with code 0] [Thread 2952.0x3cd4 exited with code 0] [New Thread 2952.0x30b4] [New Thread 2952.0x30a0] Thread 1 received signal SIGPIPE, Broken pipe. [Switching to Thread 2952.0x1144] 0x000000010053f250 in _XSERVTransSocketWritev (ciptr=0xffffbb18, buf=0xffffbc10, size=-17396) at /usr/include/X11/Xtrans/Xtranssock.c:2382 2382 /usr/include/X11/Xtrans/Xtranssock.c: No such file or directory. (gdb) bt full #0 0x000000010053f250 in _XSERVTransSocketWritev (ciptr=0xffffbb18, buf=0xffffbc10, size=-17396) at /usr/include/X11/Xtrans/Xtranssock.c:2382 No locals. #1 0x0000000000000000 in ?? () No symbol table info available. Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb)