[ 
https://issues.apache.org/jira/browse/IMPALA-5031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854789#comment-16854789
 ] 

ASF subversion and git services commented on IMPALA-5031:
---------------------------------------------------------

Commit e10d56762d26a6364e915d8693f936944f43d3ab in impala's branch 
refs/heads/master from Jim Apple
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=e10d567 ]

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
Reviewed-on: http://gerrit.cloudera.org:8080/13433
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> UBSAN clean and method for testing UBSAN cleanliness
> ----------------------------------------------------
>
>                 Key: IMPALA-5031
>                 URL: https://issues.apache.org/jira/browse/IMPALA-5031
>             Project: IMPALA
>          Issue Type: Task
>          Components: Backend, Infrastructure
>    Affects Versions: Impala 2.9.0
>            Reporter: Jim Apple
>            Assignee: Jim Apple
>            Priority: Minor
>
> http://releases.llvm.org/3.8.0/tools/clang/docs/UndefinedBehaviorSanitizer.html
>  builds are supported after https://gerrit.cloudera.org/#/c/6186/, but 
> Impala's test suite triggers many errors under UBSAN. Those errors should be 
> fixed and then there should be a way to run the test suite under UBSAN and 
> fail if there were any errors detected.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to