Quanlong Huang created ORC-581:
----------------------------------
Summary: C++ library could crash in orc::TypeImpl::addStructField
Key: ORC-581
URL: https://issues.apache.org/jira/browse/ORC-581
Project: ORC
Issue Type: Bug
Reporter: Quanlong Huang
Attachments: alltypes_year=2010_month=1_000005_0.orc
Encounter a crash when reading the corrupt orc file (attached) using the C++
orc-scan tool.
{code}
#0 0x00007fe33e40d32b in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::basic_string(std::string const&) () from
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x00000000005be394 in construct<std::basic_string<char>,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>
(__p=<optimized out>, this=0x18170c0)
at
/home/quanlong/workspace/Impala/toolchain/gcc-4.9.2/include/c++/4.9.2/ext/new_allocator.h:120
#2 _S_construct<std::basic_string<char>, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&> (__p=<optimized out>,
__a=...)
at
/home/quanlong/workspace/Impala/toolchain/gcc-4.9.2/include/c++/4.9.2/bits/alloc_traits.h:253
#3 construct<std::basic_string<char>, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&> (__p=<optimized out>,
__a=...)
at
/home/quanlong/workspace/Impala/toolchain/gcc-4.9.2/include/c++/4.9.2/bits/alloc_traits.h:399
#4 push_back (__x=..., this=0x18170c0) at
/home/quanlong/workspace/Impala/toolchain/gcc-4.9.2/include/c++/4.9.2/bits/stl_vector.h:917
#5 orc::TypeImpl::addStructField (this=this@entry=0x1817080, fieldName=...,
fieldType=...) at /home/quanlong/workspace/orc/c++/src/TypeImpl.cc:148
#6 0x00000000005beba3 in orc::convertType (type=..., footer=...) at
/home/quanlong/workspace/orc/c++/src/TypeImpl.cc:414
#7 0x000000000059c257 in orc::ReaderImpl::ReaderImpl
(this=this@entry=0x1818300, _contents=<error reading variable: access outside
bounds of object referenced via synthetic pointer>, opts=...,
_fileLength=_fileLength@entry=1795,
_postscriptLength=_postscriptLength@entry=25) at
/home/quanlong/workspace/orc/c++/src/Reader.cc:413
#8 0x000000000059f53e in orc::createReader (stream=..., options=...) at
/home/quanlong/workspace/orc/c++/src/Reader.cc:1135
#9 0x0000000000597880 in scanFile (out=..., filename=0x7ffc567e2377
"/home/quanlong/workspace/Impala/alltypes_year=2010_month=1_000005_0.orc",
batchSize=batchSize@entry=1024)
at /home/quanlong/workspace/orc/tools/src/FileScan.cc:32
#10 0x0000000000597178 in main (argc=1, argv=<optimized out>) at
/home/quanlong/workspace/orc/tools/src/FileScan.cc:84
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)