https://bugs.llvm.org/show_bug.cgi?id=34999

            Bug ID: 34999
           Summary: libFuzzer: fuzz executable does not respect SIGPIPE
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedb...@nondot.org
          Reporter: sanne.wo...@arm.com
                CC: llvm-bugs@lists.llvm.org

I'm seeing the following behaviour on HEAD. 

In bash, I run the following command:

./fuzz_target 2>&1 | less

As I understand it, when I quit less, bash sends SIGPIPE to fuzz_target. I'd
expect fuzz_target to exit() in response since its output pipe is broken.
However, fuzz_target keeps running (no output though, because the pipe is
broken).

./fuzz_target is compiled by linking fuzz_target.o (which defines
LLVMFuzzerTestOneInput) with a statically linked libFuzzer.a .

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to