Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

unable to execute command: Broken pipe #26201

Open Quuxplusone opened 8 years ago

Quuxplusone commented 8 years ago
Bugzilla Link PR26202
Status NEW
Importance P normal
Reported by frank.dittrich@mailbox.org
Reported on 2016-01-18 16:05:40 -0800
Last modified on 2016-02-08 10:37:26 -0800
Version 3.8
Hardware PC MacOS X
CC andrew.pennebaker@gmail.com, llvm-bugs@lists.llvm.org, rafael@espindo.la
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
$ clang -dM -E -x c /dev/null |grep
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
clang: error: unable to execute command: Broken pipe
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/null-a7a941.c
clang: note: diagnostic msg: /tmp/null-a7a941.sh
clang: note: diagnostic msg:

********************

$ cat /tmp/null-a7a941.c
# 1 "<built-in>"
# 1 "/dev/null"

$ cat /tmp/null-a7a941.sh
# Crash reproducer for clang version 3.7.0 (tags/RELEASE_370/final)
# Driver args: "-dM" "-E" "-x" "c" "/dev/null"
# Original command:  "/usr/bin/clang" "-cc1" "-triple" "x86_64-redhat-linux-
gnu" "-E" "-disable-free" "-disable-llvm-verifier" "-main-file-name" "null" "-
mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-
fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-
init-array" "-target-cpu" "x86-64" "-target-linker-version" "2.25" "-dwarf-
column-info" "-resource-dir" "/usr/bin/../lib/clang/3.7.0" "-internal-isystem"
"/usr/local/include" "-internal-isystem" "/usr/bin/../lib/clang/3.7.0/include"
"-internal-externc-isystem" "/include" "-internal-externc-isystem"
"/usr/include" "-fdebug-compilation-dir" "/home/fd" "-ferror-limit" "19" "-
fmessage-length" "190" "-mstackrealign" "-fobjc-runtime=gcc" "-fdiagnostics-
show-option" "-fcolor-diagnostics" "-dM" "-o" "-" "-x" "c" "/dev/null"
 "/usr/bin/clang" "-cc1" "-triple" "x86_64-redhat-linux-gnu" "-E" "-disable-free" "-disable-llvm-verifier" "-main-file-name" "null" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array" "-target-cpu" "x86-64" "-target-linker-version" "2.25" "-dwarf-column-info" "-ferror-limit" "19" "-fmessage-length" "190" "-mstackrealign" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-dM" "-x" "c" "null-a7a941.c"
Quuxplusone commented 8 years ago
Here's my trace:

{{{
$ infer -- make
mkdir -p bin/
clang -O2 -Wall -Wextra -Wmost -Weverything -o bin/modulino -DMODULINO
modulino.c
mkdir -p bin/
clang -O2 -Wall -Wextra -Wmost -Weverything -o bin/test test.c modulino.c
clang: error: unable to execute command: Broken pipe: 13
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0
Target: x86_64-apple-darwin15.2.0
Thread model: posix
InstalledDir:
/usr/local/Cellar/infer/0.6.0/libexec/infer/lib/clang_wrappers/../../../facebook-clang-plugins/clang/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/g6/kpqw5r_j50b6c48v238rmm6400018s/T/test-5d872f.c
clang: note: diagnostic msg:
/var/folders/g6/kpqw5r_j50b6c48v238rmm6400018s/T/modulino-eb2238.c
clang: note: diagnostic msg:
/var/folders/g6/kpqw5r_j50b6c48v238rmm6400018s/T/test-5d872f.sh
clang: note: diagnostic msg:

********************
make: *** [bin/test] Error 254
}}}

With diagnostic files uploaded to Gist:

https://gist.github.com/mcandre/2ce162f60ae3f06eccb5
Quuxplusone commented 8 years ago

Same error with https://github.com/mcandre/ios7crypt/tree/master/c

Quuxplusone commented 8 years ago

Same error for QuickCheck as well:

https://github.com/mcandre/qc

Quuxplusone commented 8 years ago

Same error when running infer -- make for charm:

https://github.com/mcandre/charm

Quuxplusone commented 8 years ago

Same error with infer -- make in my modulinos project.

https://github.com/mcandre/modulinos/tree/master/objc

Quuxplusone commented 8 years ago

Same error with infer -- make in objcheck:

https://github.com/mcandre/objcheck