... LC_COLLATE=C sort tt | /usr/bin/less process attached to gdb using -p Terminate less with 'q' while process is running 64-@@ ./gdb.sh 7036 ... Attaching to process 6888 [New Thread 6888.0x1ae4] [New Thread 6888.0x1ad4] [New Thread 6888.0x1630] Reading symbols from /usr/bin/sort.exe...Reading symbols from /usr/lib/debug//usr/bin/sort.exe.dbg...done. done. 0x0000000076f6afb1 in ntdll!DbgBreakPoint () from /drv/c/Windows/SYSTEM32/ntdll.dll (gdb) cont Continuing. [Thread 6888.0x1630 exited with code 0] Program received signal SIGPIPE, Broken pipe. [Switching to Thread 6888.0x1ae4] 0x00000001004026f6 in write_line (line=0xffffb9d0, fp=0x130, output_file=0xb0 ) at /usr/src/debug/coreutils-8.26-2/src/sort.c:2792 2792 if (fwrite (buf, 1, n_bytes, fp) != n_bytes) (gdb) bt #0 0x00000001004026f6 in write_line (line=0xffffb9d0, fp=0x130, output_file=0xb0 ) at /usr/src/debug/coreutils-8.26-2/src/sort.c:2792 #1 0x00000000ffffb9cc in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) cont Continuing. Program received signal SIGPIPE, Broken pipe. 0x00000001004026f6 in write_line (line=0xffffb520, fp=0x130, output_file=0xb0 ) at /usr/src/debug/coreutils-8.26-2/src/sort.c:2792 2792 if (fwrite (buf, 1, n_bytes, fp) != n_bytes) (gdb) bt #0 0x00000001004026f6 in write_line (line=0xffffb520, fp=0x130, output_file=0xb0 ) at /usr/src/debug/coreutils-8.26-2/src/sort.c:2792 #1 0x00000000ffffb51c in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) cont Continuing. [Inferior 1 (process 6888) exited with code 015] <==== NOT killed by me (gdb) quit 64-@@ =====