Skip to content

Nightly Clang Valgrind Failures #9914

@seldridge

Description

@seldridge

There are a couple of nightly valgrind failures with clang the past couple of nights. See: https://github.com/llvm/circt/actions/runs/22951700485/job/66617724677

Specifically:

  1. arcilator/arcilator.mlir:
******************** TEST 'CIRCT :: arcilator/arcilator.mlir' FAILED ********************
Exit Code: 123

Command Output (stderr):
--
/__w/circt/circt/build/bin/arcilator /__w/circt/circt/test/arcilator/arcilator.mlir | /__w/circt/circt/build/bin/FileCheck /__w/circt/circt/test/arcilator/arcilator.mlir --check-prefix=LLVM # RUN: at line 1
+ /__w/circt/circt/build/bin/arcilator /__w/circt/circt/test/arcilator/arcilator.mlir
+ /__w/circt/circt/build/bin/FileCheck /__w/circt/circt/test/arcilator/arcilator.mlir --check-prefix=LLVM
==30723== Conditional jump or move depends on uninitialised value(s)
==30723==    at 0x497E8CD: (anonymous namespace)::AssemblyWriter::printFunction(llvm::Function const*) (in /__w/circt/circt/build/bin/arcilator)
==30723==    by 0x4981986: llvm::Module::print(llvm::raw_ostream&, llvm::AssemblyAnnotationWriter*, bool, bool) const (in /__w/circt/circt/build/bin/arcilator)
==30723==    by 0x18B5431: processBuffer(mlir::MLIRContext&, mlir::TimingScope&, llvm::SourceMgr&, std::optional<std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile> > >&) (in /__w/circt/circt/build/bin/arcilator)
==30723==    by 0x18B3E73: processInputSplit(mlir::MLIRContext&, mlir::TimingScope&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, std::optional<std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile> > >&) (in /__w/circt/circt/build/bin/arcilator)
==30723==    by 0x18B127F: executeArcilator(mlir::MLIRContext&) (in /__w/circt/circt/build/bin/arcilator)
==30723==    by 0x18B087B: main (in /__w/circt/circt/build/bin/arcilator)
==30723== 

--

********************
  1. arcilator/compreg.mlir
******************** TEST 'CIRCT :: arcilator/compreg.mlir' FAILED ********************
Exit Code: 123

Command Output (stdout):
--
; ModuleID = 'LLVMDialectModule'
source_filename = "LLVMDialectModule"

@_arc_mod_name_arbitrary_reset_value = internal constant [22 x i8] c"arbitrary_reset_value\00"
@arcRuntimeModel_arbitrary_reset_value = global { i64, i64, ptr, ptr } { i64 1, i64 32, ptr @_arc_mod_name_arbitrary_reset_value, ptr null }

declare void @exit(i32)

define void @arbitrary_reset_value_eval(ptr %0) {
  %2 = getelementptr i8, ptr %0, i32 12
  %3 = load i1, ptr %2, align 1
  %4 = getelementptr i8, ptr %0, i32 20
  %5 = load i1, ptr %4, align 1
  store i1 %3, ptr %4, align 1
  %6 = xor i1 %5, %3
  %7 = and i1 %6, %3
  br i1 %7, label %8, label %17

8:                                                ; preds = %1
  %9 = getelementptr i8, ptr %0, i32 13
  %10 = load i1, ptr %9, align 1
  %11 = getelementptr i8, ptr %0, i32 16
  %12 = load i32, ptr %11, align 4
  %13 = getelementptr i8, ptr %0, i32 8
  %14 = load i32, ptr %13, align 4
  %15 = select i1 %10, i32 %12, i32 %14
  %16 = getelementptr i8, ptr %0, i32 24
  store i32 %15, ptr %16, align 4
  br label %17

17:                                               ; preds = %8, %1
  %18 = getelementptr i8, ptr %0, i32 24
  %19 = load i32, ptr %18, align 4
  %20 = getelementptr i8, ptr %0, i32 28
  store i32 %19, ptr %20, align 4
  ret void
}

!llvm.module.flags = !{!0}

!0 = !{i32 2, !"Debug Info Version", i32 3}

--
Command Output (stderr):
--
/__w/circt/circt/build/bin/arcilator /__w/circt/circt/test/arcilator/compreg.mlir # RUN: at line 1
+ /__w/circt/circt/build/bin/arcilator /__w/circt/circt/test/arcilator/compreg.mlir
==30727== Conditional jump or move depends on uninitialised value(s)
==30727==    at 0x497E8CD: (anonymous namespace)::AssemblyWriter::printFunction(llvm::Function const*) (in /__w/circt/circt/build/bin/arcilator)
==30727==    by 0x4981986: llvm::Module::print(llvm::raw_ostream&, llvm::AssemblyAnnotationWriter*, bool, bool) const (in /__w/circt/circt/build/bin/arcilator)
==30727==    by 0x18B5431: processBuffer(mlir::MLIRContext&, mlir::TimingScope&, llvm::SourceMgr&, std::optional<std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile> > >&) (in /__w/circt/circt/build/bin/arcilator)
==30727==    by 0x18B3E73: processInputSplit(mlir::MLIRContext&, mlir::TimingScope&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, std::optional<std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile> > >&) (in /__w/circt/circt/build/bin/arcilator)
==30727==    by 0x18B127F: executeArcilator(mlir::MLIRContext&) (in /__w/circt/circt/build/bin/arcilator)
==30727==    by 0x18B087B: main (in /__w/circt/circt/build/bin/arcilator)
==30727== 

--

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions