SimonKagstrom / kcov

Code coverage tool for compiled programs, Python and Bash which uses debugging information to collect and report data without special compilation options
http://simonkagstrom.github.io/kcov/
GNU General Public License v2.0
720 stars 110 forks source link

Bash on macOS: Failed to exchange stderr for pipe. #293

Closed kimkim19642004 closed 5 years ago

kimkim19642004 commented 5 years ago

Dear Mr.Simon Kagstrom,

Please tell me the solution to the following problems:

Items Description
phenomenon When I run kcov on macOS, it says "Failed to exchange stderr for pipe".
causing The maximum number of file descriptors specified inside of kcov is larger than the system value.
Error log https://travis-ci.com/kimkim19642004/po2bats-autotools/jobs/199193095#L2853
One proposal for solving this problem https://github.com/kimkim19642004/po2bats-autotools/blob/master/bash-engine.cc#L140-L149
Impact range Mac OS X 10.13/10.14
Remarks See https://man.cx/getrlimit

I look forward to hearing from you.

SimonKagstrom commented 5 years ago

Sorry for not replying yet!

The solution looks solid, so please submit a pull request for it!

kimkim19642004 commented 5 years ago

Thank you for the merge. I close this issue.