[PATCH] D124607: Add an error message to the default SIGPIPE handler

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 24 23:32:01 PDT 2022


jhenderson added a comment.

Both llvm-symbolizer and llvm-cxxfilt, if called without positional arguments, are run interactively, essentially taking a line of input then writing some output before waiting for more input. This would allow you to force output to be written (by writing to stdin) after the pipe has been closed. Maybe that'll solve the issue, although I'm not sure I understand why the python script doesn't work in its current form: llvm-nm should try to write many bytes of output (> 1 byte), but the pipe is closed after the very first byte is written. Before going and changing the script, I'd like to understand whether this statement is actually true, and if so, why:

> That does not appear to be enough. You can either run a tool that runs longer or run llvm-nm with something that produces more output.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124607



More information about the llvm-commits mailing list