You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Tim Armstrong (JIRA)" <ji...@apache.org> on 2018/06/11 22:48:00 UTC

[jira] [Resolved] (IMPALA-5747) Crash with --asm_module_dir set

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

Tim Armstrong resolved IMPALA-5747.
-----------------------------------
       Resolution: Fixed
         Assignee: Manaswini
    Fix Version/s: Impala 3.0
                   Impala 2.12.0

commit eea8ade36de084aac01ca81c71a3ce00254cd396
Author: manaswinimaharana <ma...@gmail.com>
Date:   Fri Dec 29 10:40:31 2017 -0500

    IMPALA-6296: Avoid crash caused by DCHECK in Codegen in debug mode
    
    Currently, when debug mode is enabled, any query using codegen can result
    in an Impala daemon crash as it hits a DCHECK.
    
    This patch ensures the DCHECK is hit only when specific condition is met to
    avoid the crash. That condition here is to DCHECK only when 'emit_perf_map_'
    evaluates to True ensuring 'perf_map_lock_' is not empty when asserted.
    
    Change-Id: I93e2b1efb325100d01d398e68e789d87b877167e
    Reviewed-on: http://gerrit.cloudera.org:8080/8923
    Reviewed-by: Tim Armstrong <ta...@cloudera.com>
    Reviewed-by: Thomas Tauber-Marshall <tm...@cloudera.com>
    Tested-by: Impala Public Jenkins


> Crash with --asm_module_dir set
> -------------------------------
>
>                 Key: IMPALA-5747
>                 URL: https://issues.apache.org/jira/browse/IMPALA-5747
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 2.10.0
>            Reporter: Tim Armstrong
>            Assignee: Manaswini
>            Priority: Minor
>             Fix For: Impala 2.12.0, Impala 3.0
>
>
> I saw a crash with this backtrace where I set --asm_module_dir
> {code}
> F0731 15:44:11.182677 18143 codegen-symbol-emitter.cc:90] Check failed: perf_map_.find(obj.getData().data()) != perf_map_.end()
> *** Check failure stack trace: ***
>     @          0x293ceed  google::LogMessage::Fail()
>     @          0x293e792  google::LogMessage::SendToLog()
>     @          0x293c8c7  google::LogMessage::Flush()
>     @          0x293fe8e  google::LogMessageFatal::~LogMessageFatal()
>     @          0x16ff65d  impala::CodegenSymbolEmitter::NotifyFreeingObject()
>     @          0x248de31  llvm::MCJIT::NotifyFreeingObject()
>     @          0x248deb1  llvm::MCJIT::~MCJIT()
>     @          0x248e549  llvm::MCJIT::~MCJIT()
>     @          0x16f04b2  std::default_delete<>::operator()()
>     @          0x16edd63  std::unique_ptr<>::reset()
>     @          0x16dc1dc  impala::LlvmCodeGen::~LlvmCodeGen()
>     @          0x13f864f  boost::checked_delete<>()
>     @          0x13f7b05  boost::scoped_ptr<>::~scoped_ptr()
>     @          0x13f81c7  boost::scoped_ptr<>::reset()
>     @          0x13f6bb6  impala::RuntimeState::ReleaseResources()
>     @          0x14903a9  impala::FragmentInstanceState::Close()
>     @          0x148d71a  impala::FragmentInstanceState::Exec()
>     @          0x1453b7a  impala::QueryState::ExecFInstance()
>     @          0x14526aa  _ZZN6impala10QueryState15StartFInstancesEvENKUlvE_clEv
>     @          0x145482b  _ZN5boost6detail8function26void_function_obj_invoker0IZN6impala10QueryState15StartFInstancesEvEUlvE_vE6invokeERNS1_15function_bufferE
>     @          0x13c7eaa  boost::function0<>::operator()()
>     @          0x1686aa7  impala::Thread::SuperviseThread()
>     @          0x168f5ae  boost::_bi::list4<>::operator()<>()
>     @          0x168f4f1  boost::_bi::bind_t<>::operator()()
>     @          0x168f4b4  boost::detail::thread_data<>::run()
>     @          0x1b6d94a  thread_proxy
>     @     0x7f3de50e86ba  start_thread
>     @     0x7f3de4e1e82d  clone
> {code}
> Priority is not too high since this is a debug-only option.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org