Opened 5 years ago

Closed 5 years ago

#183 closed defect (fixed)

valgrind error in CU::isGBiIdxCoded

Reported by: fbossen Owned by:
Priority: minor Milestone:
Component: VTM Version:
Keywords: Cc: ksuehring, XiangLi, fbossen, jvet@…


with commit d403235c

EncoderApp -c cfg/per-sequence/BQSquare.cfg -c cfg/encoder_randomaccess_vtm.cfg -dph 1
==46870== Conditional jump or move depends on uninitialised value(s)
==46870==    at 0x1001190F3: CU::isGBiIdxCoded(CodingUnit const&) (UnitTools.cpp:5626)
==46870==    by 0x10016BF2B: CABACWriter::cu_pred_data(CodingUnit const&) (CABACWriter.cpp:918)
==46870==    by 0x1001FD58C: InterSearch::xGetSymbolFracBitsInter(CodingStructure&, Partitioner&) (InterSearch.cpp:7258)
==46870==    by 0x1001FC11A: InterSearch::encodeResAndCalcRdInterCU(CodingStructure&, Partitioner&, bool const&, bool, bool) (InterSearch.cpp:7114)
==46870==    by 0x100194A3D: EncCu::xEncodeInterResidual(CodingStructure*&, CodingStructure*&, Partitioner&, EncTestMode const&, int, CodingStructure*, bool*, double*) (EncCu.cpp:4334)
==46870==    by 0x100188322: EncCu::xCheckRDCostAffineMerge2Nx2N(CodingStructure*&, CodingStructure*&, Partitioner&, EncTestMode const&) (EncCu.cpp:3214)
==46870==    by 0x1001838D4: EncCu::xCompressCU(CodingStructure*&, CodingStructure*&, Partitioner&, LutMotionCand*&, LutMotionCand*&) (EncCu.cpp:833)
==46870==    by 0x1001827D7: EncCu::compressCtu(CodingStructure&, UnitArea const&, unsigned int, int const*, int const*) (EncCu.cpp:445)
==46870==    by 0x1001DAC74: EncSlice::encodeCtus(Picture*, bool, bool, unsigned int, unsigned int, EncLib*) (EncSlice.cpp:1673)
==46870==    by 0x1001D996C: EncSlice::compressSlice(Picture*, bool, bool) (EncSlice.cpp:1386)
==46870==    by 0x10019F8F5: EncGOP::compressGOP(int, int, std::__1::list<Picture*, std::__1::allocator<Picture*> >&, std::__1::list<UnitBuf<short>*, std::__1::allocator<UnitBuf<short>*> >&, bool, bool, InputColourSpaceConversion, bool, bool) (EncGOP.cpp:2327)

The line with the reported error is:

  if( cu.firstPU->interDir == 3 && !cu.firstPU->mergeFlag )

Change history (4)

comment:1 Changed 5 years ago by ksuehring

  • Milestone VTM-4.0 deleted

comment:2 Changed 5 years ago by fbossen

Issue still present in commit 2411a1a (Feb 15)

comment:3 Changed 5 years ago by yuchi

This issue is resulted from uninitialized mrgCtx.interDirNeighbours[count] in the function getInterMergeSubPuMvpCand().

A fix is provided in

comment:4 Changed 5 years ago by fbossen

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.