[Lldb-commits] [PATCH] D70277: [Signal] Allow llvm clients to opt into one-shot SIGPIPE handling

Nick Desaulniers via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 7 13:21:42 PST 2021


nickdesaulniers added a comment.

This causes:

  $ clang -E -fno-integrated-cc1 x.c | tee foo.txt |head

to crash. If I revert 9a3f892d018238dce5181e458905311db8e682f5 <https://reviews.llvm.org/rG9a3f892d018238dce5181e458905311db8e682f5> and 4624e83ce7b124545b55e45ba13f2d900ed65654 <https://reviews.llvm.org/rG4624e83ce7b124545b55e45ba13f2d900ed65654>, the crash goes away.

This is causing our build logs to be flooded with:

  LLVM ERROR: IO failure on output stream: Broken pipe

where x.c looks like:

  #include <assert.h>
  #include <complex.h>
  #include <ctype.h>
  #include <errno.h>
  #include <fenv.h>
  #include <float.h>
  #include <inttypes.h>
  #include <iso646.h>
  #include <limits.h>
  #include <locale.h>
  #include <math.h>
  #include <setjmp.h>
  #include <signal.h>
  #include <stdalign.h>
  #include <stdarg.h>
  #include <stdatomic.h>
  #include <stdbool.h>
  #include <stddef.h>
  #include <stdint.h>
  #include <stdio.h>
  #include <stdlib.h>
  #include <stdnoreturn.h>
  #include <string.h>
  #include <tgmath.h>
  #include <time.h>
  #include <uchar.h>
  #include <wchar.h>
  #include <wctype.h>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70277/new/

https://reviews.llvm.org/D70277



More information about the lldb-commits mailing list