... LC_LOCCATE=C sort tt | /usr/bin/less process attached to gdb using -p Terminate less with 'q' while process is running @@ ./gdb.sh 5704 ... Attaching to process 1576 [New Thread 1576.0xf30] [New Thread 1576.0x14d4] [New Thread 1576.0x1118] Reading symbols from /usr/bin/sort.exe...Reading symbols from /usr/lib/debug//usr/bin/sort.exe.dbg...done. done. 0x7711000d in ntdll!DbgBreakPoint () from /drv/c/Windows/SysWOW64/ntdll.dll (gdb) cont Continuing. [Thread 1576.0x1118 exited with code 0] Program received signal SIGPIPE, Broken pipe. [Switching to Thread 1576.0xf30] 0x0040273f in write_line (line=0x148, fp=0x28be38, output_file=0xc5d665ee ) 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 0x0040273f in write_line (line=0x148, fp=0x28be38, output_file=0xc5d665ee ) at /usr/src/debug/coreutils-8.26-2/src/sort.c:2792 #1 0xffffffff in ?? () #2 0x00000000 in ?? () (gdb) cont Continuing. Program received signal SIGPIPE, Broken pipe. 0x0040273f in write_line (line=0x148, fp=0x28bb58, output_file=0xc5d660ce ) 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 0x0040273f in write_line (line=0x148, fp=0x28bb58, output_file=0xc5d660ce ) at /usr/src/debug/coreutils-8.26-2/src/sort.c:2792 #1 0xffffffff in ?? () #2 0x00000000 in ?? () (gdb) cont Continuing. [Inferior 1 (process 1576) exited with code 015] (gdb) quit @@ =====