GCC Valgrind Failures
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 524
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 46
Description
While trying to reproduce #9914, I came across the following GCC valgrind failures:
1. `firtool/include-dirs.fir`:
```
******************** TEST 'CIRCT :: firtool/include-dirs.fir' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
rm -rf /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp && mkdir -p /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/subdir /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/alt/subdir # RUN: at line 4
+ rm -rf /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp
+ mkdir -p /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/subdir /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/alt/subdir
echo -e "foo\ngenerate_bad_circuit" > /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/subdir/source.dummy # RUN: at line 5
+ echo -e 'foo\ngenerate_bad_circuit'
echo -e "foo\nalternate" > /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/alt/subdir/source.dummy # RUN: at line 6
+ echo -e 'foo\nalternate'
not /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs.fir 2>&1 | /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/FileCheck /repos/github.com/llvm/circt/test/firtool/include-dirs.fir --check-prefixes=COMMON,MISSING # RUN: at line 9
+ not /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs.fir
+ /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/FileCheck /repos/github.com/llvm/circt/test/firtool/include-dirs.fir --check-prefixes=COMMON,MISSING
not /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs.fir -I /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/subdir 2>&1 | /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/FileCheck /repos/github.com/llvm/circt/test/firtool/include
-dirs.fir --check-prefixes=COMMON,MISSING # RUN: at line 10
+ not /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs.fir -I /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/subdir
+ /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/FileCheck /repos/github.com/llvm/circt/test/firtool/include-dirs.fir --check-prefixes=COMMON,MISSING
not /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs.fir -I /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp -I /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/subdir 2>&1 | /scratch/repos/
github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/FileCheck /repos/github.com/llvm/circt/test/firtool/include-dirs.fir --check-prefixes=COMMON,FOUND # RUN: at line 13
+ not /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs.fir -I /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp -I /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs.fir.tmp/subdir
+ /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/FileCheck /repos/github.com/llvm/circt/test/firtool/include-dirs.fir --check-prefixes=COMMON,FOUND
/repos/github.com/llvm/circt/test/firtool/include-dirs.fir:29:11: error: COMMON: expected string not found in input
; COMMON: subdir/source.dummy:2:3:
^
:1:1: note: scanning from here
==3310220== Conditional jump or move depends on uninitialised value(s)
^
:7:100: note: possible intended match here
==3310220== by 0x10B7BF1: mlir::detail::SourceMgrDiagnosticHandlerImpl::getSourceMgrBufferIDForFile(llvm::SourceMgr&, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
^
Input file:
Check file: /repos/github.com/llvm/circt/test/firtool/include-dirs.fir
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: ==3310220== Conditional jump or move depends on uninitialised value(s)
check:29'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: ==3310220== at 0x9F395B: llvm::WritableMemoryBuffer::getNewUninitMemBuffer(unsigned long, llvm::Twine const&, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: ==3310220== by 0x9F4B4C: llvm::ErrorOr > > getOpenFileImpl(int, llvm::Twine const&, unsigned long, unsigned long, long, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: ==3310220== by 0x9F548C: llvm::MemoryBuffer::getFile(llvm::Twine const&, bool, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: ==3310220== by 0xA024F2: llvm::SourceMgr::OpenIncludeFile(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: ==3310220== by 0xA035BD: llvm::SourceMgr::AddIncludeFile(std::__cxx11::basic_string, std::allocator > const&, llvm::SMLoc, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: ==3310220== by 0x10B7BF1: mlir::detail::SourceMgrDiagnosticHandlerImpl::getSourceMgrBufferIDForFile(llvm::SourceMgr&, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:29'1 ? possible intended match
8: ==3310220== by 0x10B7FD8: mlir::SourceMgrDiagnosticHandler::convertLocToSMLoc(mlir::FileLineColLoc) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9: ==3310220== by 0x10B808B: mlir::SourceMgrDiagnosticHandler::emitDiagnostic(mlir::Location, llvm::Twine, mlir::DiagnosticSeverity, bool) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10: ==3310220== by 0x10B8B0C: mlir::SourceMgrDiagnosticHandler::emitDiagnostic(mlir::Diagnostic&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11: ==3310220== by 0x10B91AB: llvm::LogicalResult llvm::detail::UniqueFunctionBase::CallImpl&&)::{lambda(mlir::Diagnostic&)#1}, void>(mlir::SourceMgrDiagnosticHandler::SourceMgrDiagnosticHandler(llvm::SourceMgr&, mlir::MLIRC
ontext*, llvm::raw_ostream&, llvm::unique_function&&)::{lambda(mlir::Diagnostic&)#1}&&)::{lambda(mlir::Diagnostic&)#1}>(void*, mlir::Diagnostic&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12: ==3310220== by 0x10B6E91: mlir::detail::DiagnosticEngineImpl::emit(mlir::Diagnostic&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
check:29'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
--
********************
```
2. `firtool/include-dirs-annotations.fir`:
```
******************** TEST 'CIRCT :: firtool/include-dirs-annotations.fir' FAILED ********************
Exit Code: 123
Command Output (stdout):
--
firrtl.circuit "Test" attributes {annotations = [{class = "circt.test"}]} {
--
Command Output (stderr):
--
rm -rf /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs-annotations.fir.tmp && mkdir -p /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs-annotations.fir.tmp # RUN: at line 4
+ rm -rf /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs-annotations.fir.tmp
+ mkdir -p /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs-annotations.fir.tmp
echo '[{ "class": "circt.test", "target": "~Test" }]' > /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs-annotations.fir.tmp/test.anno.json # RUN: at line 5
+ echo '[{ "class": "circt.test", "target": "~Test" }]'
not /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs-annotations.fir --parse-only --annotation-file test.anno.json # RUN: at line 8
+ not /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs-annotations.fir --parse-only --annotation-file test.anno.json
cannot open input annotation file 'test.anno.json': No such file or directory
/scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs-annotations.fir --parse-only --annotation-file test.anno.json -I /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs-annotations.fir.tmp | grep circt.test # RUN: at line 10
+ grep circt.test
+ /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool /repos/github.com/llvm/circt/test/firtool/include-dirs-annotations.fir --parse-only --annotation-file test.anno.json -I /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/tools/circt/test/firtool/Output/include-dirs-annotations.fir.tmp
==3307897== Conditional jump or move depends on uninitialised value(s)
==3307897== at 0x9F395B: llvm::WritableMemoryBuffer::getNewUninitMemBuffer(unsigned long, llvm::Twine const&, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9F4B4C: llvm::ErrorOr > > getOpenFileImpl(int, llvm::Twine const&, unsigned long, unsigned long, long, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9F548C: llvm::MemoryBuffer::getFile(llvm::Twine const&, bool, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA024F2: llvm::SourceMgr::OpenIncludeFile(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA035BD: llvm::SourceMgr::AddIncludeFile(std::__cxx11::basic_string, std::allocator > const&, llvm::SMLoc, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9BEA8B: processBuffer(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, llvm::SourceMgr&, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9C219C: processInputSplit(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, std::unique_ptr >, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9B14E1: main (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897==
==3307897== Conditional jump or move depends on uninitialised value(s)
==3307897== at 0x4C3912F: malloc (vg_replace_malloc.c:442)
==3307897== by 0x9F399D: llvm::WritableMemoryBuffer::getNewUninitMemBuffer(unsigned long, llvm::Twine const&, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9F4B4C: llvm::ErrorOr > > getOpenFileImpl(int, llvm::Twine const&, unsigned long, unsigned long, long, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9F548C: llvm::MemoryBuffer::getFile(llvm::Twine const&, bool, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA024F2: llvm::SourceMgr::OpenIncludeFile(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA035BD: llvm::SourceMgr::AddIncludeFile(std::__cxx11::basic_string, std::allocator > const&, llvm::SMLoc, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9BEA8B: processBuffer(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, llvm::SourceMgr&, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9C219C: processInputSplit(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, std::unique_ptr >, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9B14E1: main (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897==
==3307897== Conditional jump or move depends on uninitialised value(s)
==3307897== at 0x9F39CB: llvm::WritableMemoryBuffer::getNewUninitMemBuffer(unsigned long, llvm::Twine const&, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9F4B4C: llvm::ErrorOr > > getOpenFileImpl(int, llvm::Twine const&, unsigned long, unsigned long, long, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9F548C: llvm::MemoryBuffer::getFile(llvm::Twine const&, bool, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA024F2: llvm::SourceMgr::OpenIncludeFile(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA035BD: llvm::SourceMgr::AddIncludeFile(std::__cxx11::basic_string, std::allocator > const&, llvm::SMLoc, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9BEA8B: processBuffer(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, llvm::SourceMgr&, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9C219C: processInputSplit(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, std::unique_ptr >, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9B14E1: main (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897==
==3307897== Use of uninitialised value of size 8
==3307897== at 0x9F39E1: llvm::WritableMemoryBuffer::getNewUninitMemBuffer(unsigned long, llvm::Twine const&, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9F4B4C: llvm::ErrorOr > > getOpenFileImpl(int, llvm::Twine const&, unsigned long, unsigned long, long, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9F548C: llvm::MemoryBuffer::getFile(llvm::Twine const&, bool, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA024F2: llvm::SourceMgr::OpenIncludeFile(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA035BD: llvm::SourceMgr::AddIncludeFile(std::__cxx11::basic_string, std::allocator > const&, llvm::SMLoc, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9BEA8B: processBuffer(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, llvm::SourceMgr&, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9C219C: processInputSplit(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, std::unique_ptr >, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9B14E1: main (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897==
==3307897== Conditional jump or move depends on uninitialised value(s)
==3307897== at 0x9F4B6C: llvm::ErrorOr > > getOpenFileImpl(int, llvm::Twine const&, unsigned long, unsigned long, long, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9F548C: llvm::MemoryBuffer::getFile(llvm::Twine const&, bool, bool, bool, std::optional) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA024F2: llvm::SourceMgr::OpenIncludeFile(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0xA035BD: llvm::SourceMgr::AddIncludeFile(std::__cxx11::basic_string, std::allocator > const&, llvm::SMLoc, std::__cxx11::basic_string, std::allocator >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9BEA8B: processBuffer(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, llvm::SourceMgr&, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9C219C: processInputSplit(mlir::MLIRContext&, circt::firtool::FirtoolOptions&, mlir::TimingScope&, std::unique_ptr >, std::optional > >&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
==3307897== by 0x9B14E1: main (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/firtool)
--
********************
```
3. `Dialect/FIRRTL/parse-basic.fir`
```
******************** TEST 'CIRCT :: Dialect/FIRRTL/parse-basic.fir' FAILED ********************
Exit Code: 123
Command Output (stderr):
--
/scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate -import-firrtl -verify-diagnostics -split-input-file /repos/github.com/llvm/circt/test/Dialect/FIRRTL/parse-basic.fir | /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-opt | /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/FileCheck /repos/github.com/llvm/circt/test/Dialect/FIRRTL/parse-basic.fir # RUN: at line 1
+ /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate -import-firrtl -verify-diagnostics -split-input-file /repos/github.com/llvm/circt/test/Dialect/FIRRTL/parse-basic.fir
+ /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-opt
+ /scratch/repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/FileCheck /repos/github.com/llvm/circt/test/Dialect/FIRRTL/parse-basic.fir
==3301124== Conditional jump or move depends on uninitialised value(s)
==3301124== at 0x84E57C: (anonymous namespace)::FIRCircuitParser::skipToModuleEnd(unsigned int) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x8655DE: (anonymous namespace)::FIRCircuitParser::parseModule(circt::firrtl::CircuitOp, bool, unsigned int) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x881633: circt::firrtl::importFIRFile(llvm::SourceMgr&, mlir::MLIRContext*, mlir::TimingScope&, circt::firrtl::FIRParserOptions) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x8826A5: std::_Function_handler (llvm::SourceMgr&, mlir::MLIRContext*), circt::firrtl::registerFromFIRFileTranslation()::{lambda(llvm::SourceMgr&, mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, llvm::SourceMgr&, mlir::MLIRContext*&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D577C: std::_Function_handler (std::shared_ptr const&, mlir::MLIRContext*), mlir::TranslateToMLIRRegistration::TranslateToMLIRRegistration(llvm::StringRef, llvm::StringRef, std::function (llvm::SourceMgr&, mlir::MLIRContext*)> const&, std::function const&, std::optional)::{lambda(std::shared_ptr const&, mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr const&, mlir::MLIRContext*&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D66FF: std::_Function_handler const&, llvm::raw_ostream&, mlir::MLIRContext*), registerTranslateToMLIRFunction(llvm::StringRef, llvm::StringRef, std::function const&, std::optional, std::function (std::shared_ptr const&, mlir::MLIRContext*)> const&)::{lambda(std::shared_ptr const&, llvm::raw_ostream&, mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr const&, llvm::raw_ostream&, mlir::MLIRContext*&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D2A85: mlir::mlirTranslateMain(int, char**, llvm::StringRef)::{lambda(std::unique_ptr >, llvm::raw_ostream&)#1}::operator()(std::unique_ptr >, llvm::raw_ostream&) const (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D320D: llvm::LogicalResult llvm::function_ref >, llvm::raw_ostream&)>::callback_fn >, llvm::raw_ostream&)#1}>(long, std::unique_ptr >, llvm::raw_ostream&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x16119D2: llvm::LogicalResult llvm::function_ref >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>::callback_fn >, llvm::function_ref >, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef)::{lambda(std::unique_ptr >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)#1}>(long, std::unique_ptr >, llvm::MemoryBufferRef const&, llvm::raw_ostream&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1611B4A: mlir::splitAndProcessBuffer(std::unique_ptr >, llvm::function_ref >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef)::{lambda(llvm::StringRef)#1}::operator()(llvm::StringRef) const (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1612071: mlir::splitAndProcessBuffer(std::unique_ptr >, llvm::function_ref >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1612458: mlir::splitAndProcessBuffer(std::unique_ptr >, llvm::function_ref >, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124==
==3301124== Thread 2 llvm-worker-0:
==3301124== Conditional jump or move depends on uninitialised value(s)
==3301124== at 0x87E807: (anonymous namespace)::FIRStmtParser::parseWhen(unsigned int) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x87B963: (anonymous namespace)::FIRStmtParser::parseSimpleStmt(unsigned int) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x87EF74: (anonym.ous namespace)::FIRCircuitParser::parseModuleBody(mlir::SymbolTable const&, (anonymous namespace)::FIRCircuitParser::DeferredModuleToParse&, (anonymous namespace)::InnerSymFixups&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x882757: void llvm::detail::UniqueFunctionBase::CallImpl, (anonymous namespace)::FIRCircuitParser::parseCircuit(llvm::SmallVectorImpl&, mlir::TimingScope&)::{lambda(unsigned long)#1}>(mlir::MLIRContext*, llvm::detail::SafeIntIterator, llvm::detail::SafeIntIterator, (anonymous namespace)::FIRCircuitParser::parseCircuit(llvm::SmallVectorImpl&, mlir::TimingScope&)::{lambda(unsigned long)#1}&&)::{lambda()#1}>(void*) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x796794: std::_Function_handler (), std::__future_base::_Task_setter, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker > >, void> >::_M_invoke(std::_Any_data const&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x796BEA: std::__future_base::_State_baseV2::_M_do_set(std::function ()>*, bool*) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x4E5BB06: __pthread_once_slow (in /usr/lib64/libpthread-2.28.so)
==3301124== by 0x7969C0: std::__future_base::_Deferred_state > >, void>::_M_complete_async() (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x796AAF: void llvm::detail::UniqueFunctionBase::CallImpl(llvm::unique_function, llvm::ThreadPoolTaskGroup*)::{lambda()#1}>(void*) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x161F7B5: llvm::StdThreadPool::processTasks(llvm::ThreadPoolTaskGroup*) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1620A6E: void* llvm::thread::ThreadProxy >(void*) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x4E541C9: start_thread (in /usr/lib64/libpthread-2.28.so)
==3301124==
==3301124== Thread 1:
==3301124== Conditional jump or move depends on uninitialised value(s)
==3301124== at 0x866E07: (anonymous namespace)::FIRCircuitParser::parseToplevelDefinition(circt::firrtl::CircuitOp, unsigned int) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x881633: circt::firrtl::importFIRFile(llvm::SourceMgr&, mlir::MLIRContext*, mlir::TimingScope&, circt::firrtl::FIRParserOptions) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x8826A5: std::_Function_handler (llvm::SourceMgr&, mlir::MLIRContext*), circt::firrtl::registerFromFIRFileTranslation()::{lambda(llvm::SourceMgr&, mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, llvm::SourceMgr&, mlir::MLIRContext*&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D577C: std::_Function_handler (std::shared_ptr const&, mlir::MLIRContext*), mlir::TranslateToMLIRRegistration::TranslateToMLIRRegistration(llvm::StringRef, llvm::StringRef, std::function (llvm::SourceMgr&, mlir::MLIRContext*)> const&, std::function const&, std::optional)::{lambda(std::shared_ptr const&, mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr const&, mlir::MLIRContext*&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D66FF: std::_Function_handler const&, llvm::raw_ostream&, mlir::MLIRContext*), registerTranslateToMLIRFunction(llvm::StringRef, llvm::StringRef, std::function const&, std::optional, std::function (std::shared_ptr const&, mlir::MLIRContext*)> const&)::{lambda(std::shared_ptr const&, llvm::raw_ostream&, mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr const&, llvm::raw_ostream&, mlir::MLIRContext*&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D2A85: mlir::mlirTranslateMain(int, char**, llvm::StringRef)::{lambda(std::unique_ptr >, llvm::raw_ostream&)#1}::operator()(std::unique_ptr >, llvm::raw_ostream&) const (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D320D: llvm::LogicalResult llvm::function_ref >, llvm::raw_ostream&)>::callback_fn >, llvm::raw_ostream&)#1}>(long, std::unique_ptr >, llvm::raw_ostream&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x16119D2: llvm::LogicalResult llvm::function_ref >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>::callback_fn >, llvm::function_ref >, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef)::{lambda(std::unique_ptr >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)#1}>(long, std::unique_ptr >, llvm::MemoryBufferRef const&, llvm::raw_ostream&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1611B4A: mlir::splitAndProcessBuffer(std::unique_ptr >, llvm::function_ref >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef)::{lambda(llvm::StringRef)#1}::operator()(llvm::StringRef) const (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1612113: mlir::splitAndProcessBuffer(std::unique_ptr >, llvm::function_ref >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1612458: mlir::splitAndProcessBuffer(std::unique_ptr >, llvm::function_ref >, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D3BFA: mlir::mlirTranslateMain(int, char**, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124==
==3301124== Conditional jump or move depends on uninitialised value(s)
==3301124== at 0x86638F: (anonymous namespace)::FIRCircuitParser::parseToplevelDefinition(circt::firrtl::CircuitOp, unsigned int) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x881633: circt::firrtl::importFIRFile(llvm::SourceMgr&, mlir::MLIRContext*, mlir::TimingScope&, circt::firrtl::FIRParserOptions) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x8826A5: std::_Function_handler (llvm::SourceMgr&, mlir::MLIRContext*), circt::firrtl::registerFromFIRFileTranslation()::{lambda(llvm::SourceMgr&, mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, llvm::SourceMgr&, mlir::MLIRContext*&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D577C: std::_Function_handler (std::shared_ptr const&, mlir::MLIRContext*), mlir::TranslateToMLIRRegistration::TranslateToMLIRRegistration(llvm::StringRef, llvm::StringRef, std::function (llvm::SourceMgr&, mlir::MLIRContext*)> const&, std::function const&, std::optional)::{lambda(std::shared_ptr const&, mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr const&, mlir::MLIRContext*&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D66FF: std::_Function_handler const&, llvm::raw_ostream&, mlir::MLIRContext*), registerTranslateToMLIRFunction(llvm::StringRef, llvm::StringRef, std::function const&, std::optional, std::function (std::shared_ptr const&, mlir::MLIRContext*)> const&)::{lambda(std::shared_ptr const&, llvm::raw_ostream&, mlir::MLIRContext*)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr const&, llvm::raw_ostream&, mlir::MLIRContext*&&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D2A85: mlir::mlirTranslateMain(int, char**, llvm::StringRef)::{lambda(std::unique_ptr >, llvm::raw_ostream&)#1}::operator()(std::unique_ptr >, llvm::raw_ostream&) const (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D320D: llvm::LogicalResult llvm::function_ref >, llvm::raw_ostream&)>::callback_fn >, llvm::raw_ostream&)#1}>(long, std::unique_ptr >, llvm::raw_ostream&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x16119D2: llvm::LogicalResult llvm::function_ref >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>::callback_fn >, llvm::function_ref >, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef)::{lambda(std::unique_ptr >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)#1}>(long, std::unique_ptr >, llvm::MemoryBufferRef const&, llvm::raw_ostream&) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1611B4A: mlir::splitAndProcessBuffer(std::unique_ptr >, llvm::function_ref >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef)::{lambda(llvm::StringRef)#1}::operator()(llvm::StringRef) const (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1612113: mlir::splitAndProcessBuffer(std::unique_ptr >, llvm::function_ref >, llvm::MemoryBufferRef const&, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x1612458: mlir::splitAndProcessBuffer(std::unique_ptr >, llvm::function_ref >, llvm::raw_ostream&)>, llvm::raw_ostream&, llvm::StringRef, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124== by 0x9D3BFA: mlir::mlirTranslateMain(int, char**, llvm::StringRef) (in /repos/github.com/llvm/circt/build-gcc-g++-Release-on-vg/bin/circt-translate)
==3301124==
--
********************
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the GCC Valgrind failures in test/firtool/include-dirs.fir and test/firtool/include-dirs-annotations.fir. Inspect the reported MLIR SourceMgr diagnostic-handler stack and verify the named tests no longer emit uninitialized-value failures under Valgrind.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100