| commit | 009b9f4fb8f029f98767b5cb2c1f939119953503 | [log] [tgz] |
|---|---|---|
| author | David Garcia Orozco <david.garcia.orozco@intel.com> | Tue May 06 13:05:03 2025 -0400 |
| committer | GitHub <noreply@github.com> | Tue May 06 17:05:03 2025 +0000 |
| tree | bcb28aaabebee049304bddfcb02edac6a3b59cb4 | |
| parent | 573721bf0c302c453620a883a4adf37935646d4a [diff] |
[lit] Fix lit hang on pool join when exception is thrown (#131881) Fixes #133914 When using the internal shell with a timeout set lit will hang on the following call if an exception is thrown and not immediately caught https://github.com/llvm/llvm-project/blob/19970535f92c0f2dcda01b7fc60f95945166e424/llvm/utils/lit/lit/run.py#L93 This can occur when using the internal lit shell and trying to run a program that does not exist. In this case `_executeShCmd` will throw an internal shell error, which will not be caught by the function directly calling it, `executeShCmd`, rather it is caught one function higher in the call stack in `executeScriptInternal`. Because that exception is percolated up the call stack instead of being immediately caught lit will hang until the test timeout expires. This patch changes the location where we catch this exception to `executeShCmd` instead to avoid this. For more background on what causes this hang see: https://stackoverflow.com/questions/15314189/python-multiprocessing-pool-hangs-at-join
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.