You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Anuj Phadke (JIRA)" <ji...@apache.org> on 2018/01/24 07:37:00 UTC

[jira] [Resolved] (IMPALA-6435) Codegen crash when UNIONing CHAR(n) literals

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

Anuj Phadke resolved IMPALA-6435.
---------------------------------
       Resolution: Fixed
    Fix Version/s: Impala 2.12.0

https://github.com/apache/impala/commit/11d1784c0a41d24db8bb0dadcedacfbf7f256a18

> Codegen crash when UNIONing CHAR(n) literals
> --------------------------------------------
>
>                 Key: IMPALA-6435
>                 URL: https://issues.apache.org/jira/browse/IMPALA-6435
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 2.8.0, Impala 2.9.0, Impala 2.10.0, Impala 2.11.0
>            Reporter: Balazs Jeszenszky
>            Assignee: Anuj Phadke
>            Priority: Blocker
>              Labels: codegen, crash
>             Fix For: Impala 2.12.0
>
>
> A simple repro:
> {code:java}
> create table test (c1 int);
> select cast ('a' as char(30)) as m from test
> union all
> select cast ('a' as char(30)) as m from test
> ;
> {code}
> Stack trace:
> {code:java}
> #0  0x00007fb0085275e5 in raise () from /lib64/libc.so.6
> #1  0x00007fb008528dc5 in abort () from /lib64/libc.so.6
> #2  0x00007fb00a663a55 in os::abort(bool) () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> #3  0x00007fb00a7e3f87 in VMError::report_and_die() ()
>    from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> #4  0x00007fb00a66896f in JVM_handle_linux_signal ()
>    from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> #5  <signal handler called>
> #6  0x0000000001a9042d in llvm::FunctionType::get(llvm::Type*, llvm::ArrayRef<llvm::Type*>, bool) ()
> #7  0x0000000000c2b62f in impala::LlvmCodeGen::FnPrototype::GeneratePrototype(impala::LlvmBuilder*, llvm::Value**, bool) ()
> #8  0x0000000000846617 in impala::Expr::CreateIrFunctionPrototype(impala::LlvmCodeGen*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, llvm::Value* (*) [2]) ()
> #9  0x000000000085960c in impala::Literal::GetCodegendComputeFn(impala::LlvmCodeGen*, llvm::Function**) ()
> #10 0x0000000000a78467 in impala::Tuple::CodegenMaterializeExprs(impala::LlvmCodeGen*, bool, impala::TupleDescriptor const&, std::vector<impala::ExprContext*, std::allocator<impala::ExprContext*> > const&, bool, llvm::Function**) ()
> #11 0x0000000000d11df8 in impala::UnionNode::Codegen(impala::RuntimeState*) ()
> #12 0x0000000000a7dd4e in impala::FragmentInstanceState::Prepare() ()
> #13 0x0000000000a7e311 in impala::FragmentInstanceState::Exec() ()
> #14 0x0000000000a6a2f6 in impala::QueryState::ExecFInstance(impala::FragmentInstanceState*) ()
> {code}
> A debug build will fail a bit differently, hitting the DCHECK in codegen-anyval.cc.



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