[llvm-bugs] [Bug 34999] New: libFuzzer: fuzz executable does not respect SIGPIPE

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 19 03:36:24 PDT 2017


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: unassignedbugs at nondot.org
          Reporter: Sanne.Wouda at arm.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171019/d5244379/attachment.html>


More information about the llvm-bugs mailing list