... 64-@@ trap '' PIPE 64-@@ trap -p trap -- '' SIGPIPE 64-@@ sort tt | /usr/bin/less process attached to gdb using -p Terminate less with 'q' while process is running sort: write failed: 'standard output': Broken pipe sort: write error 64-@@ ./gdb.sh 6316 ... Attaching to process 6372 [New Thread 6372.0x1514] [New Thread 6372.0x13c4] [New Thread 6372.0x1160] 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 6372.0x1160 exited with code 0] Program received signal SIGPIPE, Broken pipe. [Switching to Thread 6372.0x1514] 0x00000001004026f6 in write_line (line=0xffffb9d0, fp=0x134, 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=0x134, 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. [Inferior 1 (process 6372) exited with code 01000] <==== NOT killed by me (gdb) quit 64-@@ =====