[compiler-rt] Revert "[compiler-rt][rtsan] intercept setbuf, setvbuf, setlinebuf an… (PR #121639)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 4 03:58:06 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve2-vla` running on `linaro-g4-02` while building `compiler-rt` at step 7 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/198/builds/815

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 22
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir --sparsifier="enable-runtime-library=false" | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/lib/libmlir_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir --sparsifier=enable-runtime-library=false
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/lib/libmlir_runner_utils.so
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# RUN: at line 26
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir --sparsifier="enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true" | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/lib/libmlir_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir '--sparsifier=enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true'
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-cpu-runner -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/lib/libmlir_c_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/lib/libmlir_runner_utils.so
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# RUN: at line 29
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir --sparsifier="enable-arm-sve=true enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true" | mlir-cpu-runner --march=aarch64 --mattr="+sve" -e main -entry-point-result=void -shared-libs=/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/./lib/libmlir_runner_utils.so,/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/./lib/libmlir_c_runner_utils.so | /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
# executed command: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir '--sparsifier=enable-arm-sve=true enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true'
# .---command stderr------------
# | mlir-opt: ../llvm/llvm/include/llvm/ADT/DenseMap.h:419: void llvm::DenseMapBase<llvm::DenseMap<llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>, (anonymous namespace)::ValueVectorMapInfo>, llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>>>::moveFromOldBuckets(BucketT *, BucketT *) [DerivedT = llvm::DenseMap<llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>, (anonymous namespace)::ValueVectorMapInfo>, KeyT = llvm::SmallVector<mlir::Value, 1>, ValueT = llvm::SmallVector<mlir::Value, 1>, KeyInfoT = (anonymous namespace)::ValueVectorMapInfo, BucketT = llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1>, llvm::SmallVector<mlir::Value, 1>>]: Assertion `!FoundVal && "Key already in new map?"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
# | Stack dump:
# | 0.	Program arguments: /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/llvm/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir "--sparsifier=enable-arm-sve=true enable-runtime-library=false vl=2 reassociate-fp-reductions=true enable-index-optimizations=true"
# |  #0 0x0000ca5fa0f4b440 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x431b440)
# |  #1 0x0000ca5fa0f4932c llvm::sys::RunSignalHandlers() (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x431932c)
# |  #2 0x0000ca5fa0f4bccc SignalHandler(int) Signals.cpp:0:0
# |  #3 0x0000e0d0b94308f8 (linux-vdso.so.1+0x8f8)
# |  #4 0x0000e0d0b8ecf200 __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
# |  #5 0x0000e0d0b8e8a67c gsignal ./signal/../sysdeps/posix/raise.c:27:6
# |  #6 0x0000e0d0b8e77130 abort ./stdlib/abort.c:81:7
# |  #7 0x0000e0d0b8e83fd0 __assert_fail_base ./assert/assert.c:89:7
# |  #8 0x0000e0d0b8e84040 __assert_perror_fail ./assert/assert-perr.c:31:1
# |  #9 0x0000ca5fa41e00b4 llvm::DenseMapBase<llvm::DenseMap<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>>, llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>>::grow(unsigned int) DialectConversion.cpp:0:0
# | #10 0x0000ca5fa41dfcc0 llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>* llvm::DenseMapBase<llvm::DenseMap<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>>, llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>, (anonymous namespace)::ValueVectorMapInfo, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>>::InsertIntoBucketImpl<llvm::SmallVector<mlir::Value, 1u>>(llvm::SmallVector<mlir::Value, 1u> const&, llvm::detail::DenseMapPair<llvm::SmallVector<mlir::Value, 1u>, llvm::SmallVector<mlir::Value, 1u>>*) DialectConversion.cpp:0:0
# | #11 0x0000ca5fa41d15d0 mlir::detail::ConversionPatternRewriterImpl::buildUnresolvedMaterialization((anonymous namespace)::MaterializationKind, mlir::OpBuilder::InsertPoint, mlir::Location, llvm::SmallVector<mlir::Value, 1u>, mlir::ValueRange, mlir::TypeRange, mlir::Type, mlir::TypeConverter const*, mlir::UnrealizedConversionCastOp*) DialectConversion.cpp:0:0
# | #12 0x0000ca5fa41d046c mlir::detail::ConversionPatternRewriterImpl::remapValues(llvm::StringRef, std::optional<mlir::Location>, mlir::PatternRewriter&, mlir::ValueRange, llvm::SmallVector<llvm::SmallVector<mlir::Value, 1u>, 2u>&) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x75a046c)
# | #13 0x0000ca5fa41d6d38 mlir::ConversionPattern::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x75a6d38)
# | #14 0x0000ca5fa70d6064 void llvm::function_ref<void ()>::callback_fn<mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>)::$_0>(long) PatternApplicator.cpp:0:0
# | #15 0x0000ca5fa70d289c mlir::PatternApplicator::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&, llvm::function_ref<bool (mlir::Pattern const&)>, llvm::function_ref<void (mlir::Pattern const&)>, llvm::function_ref<llvm::LogicalResult (mlir::Pattern const&)>) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0xa4a289c)
# | #16 0x0000ca5fa41d7db8 (anonymous namespace)::OperationLegalizer::legalize(mlir::Operation*, mlir::ConversionPatternRewriter&) DialectConversion.cpp:0:0
# | #17 0x0000ca5fa41d6f30 mlir::OperationConverter::convert(mlir::ConversionPatternRewriter&, mlir::Operation*) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x75a6f30)
# | #18 0x0000ca5fa41d7fd0 mlir::OperationConverter::convertOperations(llvm::ArrayRef<mlir::Operation*>) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x75a7fd0)
# | #19 0x0000ca5fa41ddbac mlir::applyPartialConversion(mlir::Operation*, mlir::ConversionTarget const&, mlir::FrozenRewritePatternSet const&, mlir::ConversionConfig) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x75adbac)
# | #20 0x0000ca5fa40f0458 (anonymous namespace)::ConvertVectorToLLVMPass::runOnOperation() ConvertVectorToLLVMPass.cpp:0:0
# | #21 0x0000ca5fa41797c0 mlir::detail::OpToOpPassAdaptor::run(mlir::Pass*, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x75497c0)
# | #22 0x0000ca5fa4179f9c mlir::detail::OpToOpPassAdaptor::runPipeline(mlir::OpPassManager&, mlir::Operation*, mlir::AnalysisManager, bool, unsigned int, mlir::PassInstrumentor*, mlir::PassInstrumentation::PipelineParentInfo const*) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x7549f9c)
# | #23 0x0000ca5fa417c5b0 mlir::PassManager::run(mlir::Operation*) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x754c5b0)
# | #24 0x0000ca5fa4174d44 performActions(llvm::raw_ostream&, std::shared_ptr<llvm::SourceMgr> const&, mlir::MLIRContext*, mlir::MlirOptMainConfig const&) MlirOptMain.cpp:0:0
# | #25 0x0000ca5fa41749b0 llvm::LogicalResult llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>::callback_fn<mlir::MlirOptMain(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:0:0
# | #26 0x0000ca5fa422e18c mlir::splitAndProcessBuffer(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::function_ref<llvm::LogicalResult (std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla/stage1/bin/mlir-opt+0x75fe18c)
...

```

</details>

https://github.com/llvm/llvm-project/pull/121639


More information about the llvm-commits mailing list