close(0) = 0 dup(6) = 0 close(1) = 0 dup(11) = 1 close(2) = 0 dup(11) = 2 --- SIGSEGV (Segmentation fault) @ 0 (0) ---