travis: Randomly try to suppress OSX segfaults #40243
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a complete random shot in the dark to help suppress the OSX linker
segfaults being found on #38878. The segfault happens apparently during an
assertion in this source file. That apparently is related to a worker
thread pool for parsing a bunch of object files. Presumably there's some
concurrency bug triggering the segfault?
Poking around the source to see if we could disable this multithreading behavior
didn't turn up many results, but one check in the file above was related to
_options.pipelineEnabled()
which seemed suspicious. That in turn is read from[this file] in the
fPipelineFifo
instance variable (if it's non-null).That instance variable is in turn set from another file as a result of
getenv("LD_PIPELINE_FIFO")
. This PR now sets that env var for all builders,including the OSX ones.
Will this help? I have no idea! But it at least seems related and hopefully
isn't too hard to try out and/or back out.