Jim Apple has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/13433


Change subject: IMPALA-5031: signed overflow is undefined behavior
......................................................................

IMPALA-5031: signed overflow is undefined behavior

This undefined behavior was caught with UBSAN in the end-to-end
tests. The interesting part of the backtrace is:

    gutil/atomicops-internals-x86.h:283:15: runtime error: signed
       integer overflow: -9223370395229620599 + -9223371946660462582
       cannot be represented in type 'long'
    #0 base::subtle::Barrier_AtomicIncrement(long volatile*, long)
       gutil/atomicops-internals-x86.h:283:15
    #1 internal::AtomicInt<long>::Add(long) common/atomic.h:93:12
    #2 RuntimeProfile::Counter::Add(long) util/runtime-profile.h:93
    #3 HdfsOrcScanner::AssembleRows(RowBatch*)
       exec/hdfs-orc-scanner.cc:636:50
    #4 HdfsOrcScanner::GetNextInternal(RowBatch*)
       exec/hdfs-orc-scanner.cc:507:19
    #5 HdfsOrcScanner::ProcessSplit() exec/hdfs-orc-scanner.cc:426:21
    #6 HdfsScanNode::ProcessSplit(vector<FilterContext> const&,
       MemPool*, io::ScanRange*, long*) exec/hdfs-scan-node.cc:514:21
    #7 HdfsScanNode::ScannerThread(bool, long)
       exec/hdfs-scan-node.cc:415:7
    #8 HdfsScanNode::ThreadTokenAvailableCb(ThreadResourcePool*)::
       $_0::operator()() const exec/hdfs-scan-node.cc:337:13

Change-Id: Ic638ff4959eaaffc79caa3453dbccaaabcbe95c9
---
M be/src/gutil/atomicops-internals-x86.h
1 file changed, 8 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/33/13433/1
--
To view, visit http://gerrit.cloudera.org:8080/13433
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic638ff4959eaaffc79caa3453dbccaaabcbe95c9
Gerrit-Change-Number: 13433
Gerrit-PatchSet: 1
Gerrit-Owner: Jim Apple <[email protected]>

Reply via email to