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

CHOOSEN(ALL, n) failing in hthor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2.16
    • Component/s: EclAgent
    • Labels:
      None
    • Environment:
      gcc 8.1 or later (e.g. Ubuntu 18.04)

      Description

      The code in void CHThorFirstNActivity::ready()

          if (limit + skip >= limit)
      

      gets optimized into

      if (skip > 0)
      

      by gcc 8.1 and later, resulting in incorrect behaviour when limit is 0x7fffffffffffffff (i.e. ALL) and skip is positive.

      Roxie and thor have similar code constructs but use unsigned __int64 members and therefore do not fail (though there is some iffy code in CFirstNSlaveBase::getMetaInfo which is not allowing for skip when setting info.totalRowsMax

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: