You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2020/01/03 03:51:00 UTC

[jira] [Updated] (ORC-581) C++ library could crash in orc::TypeImpl::addStructField

     [ https://issues.apache.org/jira/browse/ORC-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Quanlong Huang updated ORC-581:
-------------------------------
    Affects Version/s: 1.1.2
                       1.2.0
                       1.2.1
                       1.2.2
                       1.2.3
                       1.3.0
                       1.3.1
                       1.3.2
                       1.3.3
                       1.3.4
                       1.4.0
                       1.4.1
                       1.4.2
                       1.4.3
                       1.4.4
                       1.4.5
                       1.5.0
                       1.5.1
                       1.5.2
                       1.5.3
                       1.5.4
                       1.5.5
                       1.5.6
                       1.5.7
                       1.5.8
                       1.6.0
                       1.6.1
                       1.6.2

> 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
>    Affects Versions: 1.1.2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.6.0, 1.6.1, 1.6.2
>            Reporter: Quanlong Huang
>            Assignee: Quanlong Huang
>            Priority: Major
>         Attachments: alltypes_year=2010_month=1_000005_0.orc
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)