You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/12/05 09:49:34 UTC

[GitHub] [doris] jacktengg opened a new issue, #14823: [Bug] coredump of cast expr

jacktengg opened a new issue, #14823:
URL: https://github.com/apache/doris/issues/14823

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   master 1190fd4cd62132d3704feb49b16c0fb6cd451a1e
   
   ### What's Wrong?
   
   The following sql will cause be coredump:
   ```
   select
       ref_0.`game_code` as c1
   from
       regression_test_usercases_37Wan.dwd_online_detail as ref_0
   where
       cast(
           case
               when BITMAP_EMPTY() is NULL then null
               else null
           end as bitmap
       ) is NULL;
   ```
   
   coredump callstack:
   ```
   *** Query id: 5b5d2f3de41c40d9-bba9f60dd4ac5ecc ***
   *** Aborted at 1670232381 (unix time) try "date -d @1670232381" if you are using GNU date ***
   *** Current BE git commitID: 0650915bd ***
   *** SIGSEGV address not mapped to object (@0x0) received by PID 3102731 (TID 0x7db14f5ff700) from PID 0; stack trace: ***
    0# doris::signal::(anonymous namespace)::FailureSignalHandler(int, siginfo_t*, void*) at /mnt/disk1/tengjianping/doris-test/be/src/common/signal_handler.h:420
    1# os::Linux::chained_handler(int, siginfo*, void*) in /mnt/disk1/tengjianping/local/jdk1.8.0_131/jre/lib/amd64/server/libjvm.so
    2# JVM_handle_linux_signal in /mnt/disk1/tengjianping/local/jdk1.8.0_131/jre/lib/amd64/server/libjvm.so
    3# signalHandler(int, siginfo*, void*) in /mnt/disk1/tengjianping/local/jdk1.8.0_131/jre/lib/amd64/server/libjvm.so
    4# 0x00007F0010EEB400 in /lib64/libc.so.6
    5# doris::vectorized::VScanNode::_eval_const_conjuncts(doris::vectorized::VExpr*, doris::vectorized::VExprContext*, doris::vectorized::VScanNode::PushDownType*) at /mnt/disk1/tengjianping/doris-test/be/src/vec/exec/scan/vscan_node.cpp:575
    6# doris::vectorized::VScanNode::_normalize_predicate(doris::vectorized::VExpr*) at /mnt/disk1/tengjianping/doris-test/be/src/vec/exec/scan/vscan_node.cpp:431
    7# doris::vectorized::VScanNode::_normalize_conjuncts() at /mnt/disk1/tengjianping/doris-test/be/src/vec/exec/scan/vscan_node.cpp:373
    8# doris::vectorized::NewOlapScanNode::_process_conjuncts() at /mnt/disk1/tengjianping/doris-test/be/src/vec/exec/scan/new_olap_scan_node.cpp:171
    9# doris::vectorized::VScanNode::open(doris::RuntimeState*) at /mnt/disk1/tengjianping/doris-test/be/src/vec/exec/scan/vscan_node.cpp:95
   10# doris::PlanFragmentExecutor::open_vectorized_internal() at /mnt/disk1/tengjianping/doris-test/be/src/runtime/plan_fragment_executor.cpp:278
   11# doris::PlanFragmentExecutor::open() at /mnt/disk1/tengjianping/doris-test/be/src/runtime/plan_fragment_executor.cpp:250
   12# doris::FragmentExecState::execute() at /mnt/disk1/tengjianping/doris-test/be/src/runtime/fragment_mgr.cpp:252
   13# doris::FragmentMgr::_exec_actual(std::shared_ptr<doris::FragmentExecState>, std::function<void (doris::PlanFragmentExecutor*)>) at /mnt/disk1/tengjianping/doris-test/be/src/runtime/fragment_mgr.cpp:499
   14# std::_Function_handler<void (), doris::FragmentMgr::exec_plan_fragment(doris::TExecPlanFragmentParams const&, std::function<void (doris::PlanFragmentExecutor*)>)::{lambda()#1}>::_M_invoke(std::_Any_data const&) at /mnt/disk1/tengjianping/local/ldb_toolchain_clang13/include/c++/11/bits/std_function.h:291
   15# doris::ThreadPool::dispatch_thread() at /mnt/disk1/tengjianping/doris-test/be/src/util/threadpool.cpp:542
   16# doris::Thread::supervise_thread(void*) at /mnt/disk1/tengjianping/doris-test/be/src/util/thread.cpp:455
   17# start_thread in /lib64/libpthread.so.0
   18# __GI___clone in /lib64/libc.so.6
   ```
   
   ### What You Expected?
   
   no coredump
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] yiguolei closed issue #14823: [Bug] coredump of cast expr

Posted by GitBox <gi...@apache.org>.
yiguolei closed issue #14823: [Bug] coredump of cast expr
URL: https://github.com/apache/doris/issues/14823


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org