Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-19695

valgrind error running aggds1.ecl

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: Roxie
    • Labels:
      None

      Description

      $ eclccd ../testing/regress/ecl/aggds1.ecl -DmultiPart=false -DuseSequential=true
      $ valgrind ./a.out --daliservers=.
      ==24350== Memcheck, a memory error detector
      ==24350== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
      ==24350== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
      ==24350== Command: ./a.out --daliservers=.
      ==24350== 
      ==24350== Warning: set address range perms: large range [0x39600000, 0x79600000) (undefined)
      ==24350== Invalid read of size 4
      ==24350==    at 0x4FA6289: RtlRecord::~RtlRecord() (rtlrecord.cpp:330)
      ==24350==    by 0x4FA7C16: COutputMetaData::~COutputMetaData() (rtlrecord.cpp:811)
      ==24350==    by 0x4F3F5F1: CDeserializedOutputMetaData::~CDeserializedOutputMetaData() (eclhelper_dyn.cpp:40)
      ==24350==    by 0x4F3F627: CDeserializedOutputMetaData::~CDeserializedOutputMetaData() (eclhelper_dyn.cpp:40)
      ==24350==    by 0x4F504E9: RtlCInterface::Release() const (eclrtl.cpp:6027)
      ==24350==    by 0x408717: COutputMetaData::Release() const (rtlrecord.hpp:367)
      ==24350==    by 0x4FB5DA8: void Release<IInterface>(IInterface*) (in /home/rchapman/HPCC-Platform/ossd/Debug/libs/libeclrtl.so)
      ==24350==    by 0x555481A: OwnedPointerArrayMapper<IInterface>::destruct(IInterface*&) (jarray.hpp:407)
      ==24350==    by 0x5554579: ArrayOf<IInterface*, IInterface*, OwnedPointerArrayMapper<IInterface> >::destruct(unsigned int) (jarray.hpp:361)
      ==24350==    by 0x5553806: ArrayOf<IInterface*, IInterface*, OwnedPointerArrayMapper<IInterface> >::kill(bool) (jarray.hpp:227)
      ==24350==    by 0x5551E02: ArrayOf<IInterface*, IInterface*, OwnedPointerArrayMapper<IInterface> >::~ArrayOf() (jarray.hpp:128)
      ==24350==    by 0x553CBE7: OwnedPointerArrayOf<IInterface>::~OwnedPointerArrayOf() (jarray.hpp:413)
      ==24350==  Address 0xdb32130 is 32 bytes inside a block of size 40 free'd
      ==24350==    at 0x4C2F24B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==24350==    by 0x4F70D9B: CRtlFieldTypeDeserializer::deleteType(RtlTypeInfo const*) (rtldynfield.cpp:695)
      ==24350==    by 0x4F70541: CRtlFieldTypeDeserializer::~CRtlFieldTypeDeserializer() (rtldynfield.cpp:545)
      ==24350==    by 0x4F705CD: CRtlFieldTypeDeserializer::~CRtlFieldTypeDeserializer() (rtldynfield.cpp:546)
      ==24350==    by 0x4F770D5: CInterfaceOf<IRtlFieldTypeDeserializer>::Release() const (jiface.hpp:144)
      ==24350==    by 0x4F3F1AB: void Release<IRtlFieldTypeDeserializer>(IRtlFieldTypeDeserializer*) (in /home/rchapman/HPCC-Platform/ossd/Debug/libs/libeclrtl.so)
      ==24350==    by 0x4F3EFD0: Shared<IRtlFieldTypeDeserializer>::~Shared() (jscm.hpp:93)
      ==24350==    by 0x4F3E015: Owned<IRtlFieldTypeDeserializer>::~Owned() (jscm.hpp:130)
      ==24350==    by 0x4F3F5E5: CDeserializedOutputMetaData::~CDeserializedOutputMetaData() (eclhelper_dyn.cpp:40)
      ==24350==    by 0x4F3F627: CDeserializedOutputMetaData::~CDeserializedOutputMetaData() (eclhelper_dyn.cpp:40)
      ==24350==    by 0x4F504E9: RtlCInterface::Release() const (eclrtl.cpp:6027)
      ==24350==    by 0x408717: COutputMetaData::Release() const (rtlrecord.hpp:367)
      ==24350==  Block was alloc'd at
      ==24350==    at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
      ==24350==    by 0x4F71B04: CRtlFieldTypeDeserializer::deserializeType(MemoryBuffer&) (rtldynfield.cpp:860)
      ==24350==    by 0x4F7093F: CRtlFieldTypeDeserializer::deserialize(MemoryBuffer&) (rtldynfield.cpp:626)
      ==24350==    by 0x4F3CD8C: CDeserializedOutputMetaData::CDeserializedOutputMetaData(MemoryBuffer&, bool, IThorIndexCallback*) (eclhelper_dyn.cpp:59)
      ==24350==    by 0x4F3D059: createTypeInfoOutputMetaData(MemoryBuffer&, bool, IThorIndexCallback*) (eclhelper_dyn.cpp:82)
      ==24350==    by 0x827073D: getDaliLayoutInfo(IPropertyTree const&) (thorcommon.cpp:2030)
      ==24350==    by 0x560D5C6: CResolvedFile::addFile(char const*, IFileDescriptor*, IFileDescriptor*) (ccdfile.cpp:1844)
      ==24350==    by 0x560E390: CResolvedFile::CResolvedFile(char const*, char const*, IDistributedFile*, RoxieFileType, IRoxieDaliHelper*, bool, bool, bool, bool) (ccdfile.cpp:1931)
      ==24350==    by 0x56053ED: createResolvedFile(char const*, char const*, IDistributedFile*, IRoxieDaliHelper*, bool, bool, bool) (ccdfile.cpp:2595)
      ==24350==    by 0x56826FF: CRoxiePackageNode::resolveLFNusingDaliOrLocal(char const*, bool, bool, bool, bool, bool) (ccdstate.cpp:479)
      ==24350==    by 0x5682BEF: CRoxiePackageNode::lookupExpandedFileName(char const*, bool, bool, bool, bool, bool) const (ccdstate.cpp:531)
      ==24350==    by 0x5683BD5: CRoxiePackageNode::lookupFileName(char const*, bool, bool, bool, IConstWorkUnit*, bool) const (ccdstate.cpp:685)
      ==24350== 
      

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              richardkchapman Richard Chapman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: