Impala Public Jenkins has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/13434 )

Change subject: IMPALA-5031: memcpy requires two non-null arguments
......................................................................

IMPALA-5031: memcpy requires two non-null arguments

Counterintuitively, even passing 0 as the third argument of memcpy
does not avoid undefined behavior. This occurred during an end-to-end
test. The interesting part of the backtrace is:

    util/dict-encoding.h:451:20: runtime error: null pointer passed
       as argument 2, which is declared to never be null
    /usr/include/string.h:43:45: note: nonnull attribute specified
       here
    #0 DictEncoder<StringValue>::AddToTable(StringValue const&,
       unsigned short*) util/dict-encoding.h:451:3
    #1 DictEncoder<StringValue>::Put(StringValue const&)
       util/dict-encoding.h:422:10
    #2 HdfsParquetTableWriter::ColumnWriter<StringValue>::
       ProcessValue(void*, long*)
       exec/parquet/hdfs-parquet-table-writer.cc:436:38
    #3 HdfsParquetTableWriter::BaseColumnWriter::AppendRow(TupleRow*)
       exec/parquet/hdfs-parquet-table-writer.cc:662:9
    #4 HdfsParquetTableWriter::AppendRows(RowBatch*,
       vector<int> const&, bool*)
       exec/parquet/hdfs-parquet-table-writer.cc:1192:60
    #5 HdfsTableSink::WriteRowsToPartition(RuntimeState*, RowBatch*,
       pair<unique_ptr<OutputPartition>, vector<int>>*)
       exec/hdfs-table-sink.cc:253:71
    #6 HdfsTableSink::Send(RuntimeState*, RowBatch*)
       exec/hdfs-table-sink.cc:588:45

Change-Id: I2e8e57c34c2848f0dc7dbf32892cc6e86df63506
Reviewed-on: http://gerrit.cloudera.org:8080/13434
Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
---
M be/src/util/dict-encoding.h
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

--
To view, visit http://gerrit.cloudera.org:8080/13434
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2e8e57c34c2848f0dc7dbf32892cc6e86df63506
Gerrit-Change-Number: 13434
Gerrit-PatchSet: 3
Gerrit-Owner: Jim Apple <jbap...@apache.org>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Tim Armstrong <tarmstr...@cloudera.com>

Reply via email to