Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EF2FC200CAF for ; Thu, 8 Jun 2017 05:39:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EDD1C160BE2; Thu, 8 Jun 2017 03:39:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D0E0160BD0 for ; Thu, 8 Jun 2017 05:39:23 +0200 (CEST) Received: (qmail 69260 invoked by uid 500); 8 Jun 2017 03:39:22 -0000 Mailing-List: contact issues-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list issues@impala.incubator.apache.org Received: (qmail 69251 invoked by uid 99); 8 Jun 2017 03:39:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jun 2017 03:39:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C55851806B4 for ; Thu, 8 Jun 2017 03:39:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GMjoRcUwXP81 for ; Thu, 8 Jun 2017 03:39:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1BA0D5FDDC for ; Thu, 8 Jun 2017 03:39:19 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 49FCEE0634 for ; Thu, 8 Jun 2017 03:39:18 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0EEEC20DF1 for ; Thu, 8 Jun 2017 03:39:18 +0000 (UTC) Date: Thu, 8 Jun 2017 03:39:18 +0000 (UTC) From: "Lars Volker (JIRA)" To: issues@impala.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IMPALA-5457) OOM during profile serialization leads to crash MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 08 Jun 2017 03:39:24 -0000 Lars Volker created IMPALA-5457: ----------------------------------- Summary: OOM during profile serialization leads to crash Key: IMPALA-5457 URL: https://issues.apache.org/jira/browse/IMPALA-5457 Project: IMPALA Issue Type: Bug Components: Backend Affects Versions: Impala 2.9.0 Reporter: Lars Volker Priority: Critical It looks like an oom exception during thrift serialization is not handled correctly and can lead to a crash. Here is the stack trace of the crashing thread from a minidump. {noformat} 0 libc-2.12.so!__GI_raise + 0x35 1 libc-2.12.so!__GI_abort + 0x175 2 libstdc++.so.6!__gnu_cxx::__verbose_terminate_handler() + 0x15d 3 libstdc++.so.6!std::rethrow_exception(std::__exception_ptr::exception_ptr) + 0x76 4 libstdc++.so.6!std::terminate() + 0x11 5 libstdc++.so.6!__cxa_throw + 0x68 6 impalad!(anonymous namespace)::handle_oom(void* (*)(void*), void*, bool, bool) [clone .constprop.53] + 0x3a8 7 impalad!operator new(unsigned long) + 0x2b0 8 impalad!std::vector >::reserve(unsigned long) [new_allocator.h : 104 + 0x10] 9 impalad!impala::RuntimeProfile::ToThrift(std::vector >*) const [runtime-profile.cc : 755 + 0x8] 10 impalad!impala::RuntimeProfile::SerializeToArchiveString(std::basic_stringstream, std::allocator >*) const [runtime-profile.cc : 724 + 0x5] 11 impalad!impala::ImpalaServer::GetRuntimeProfileStr(impala::TUniqueId const&, bool, std::basic_stringstream, std::allocator >*) [impala-server.cc : 571 + 0x5] 12 impalad!impala::ImpalaHttpHandler::QueryProfileEncodedHandler(std::map, std::allocator > > const&, rapidjson::GenericDocument, rapidjson::MemoryPoolAllocator >*) [impala-http-handler.cc : 219 + 0x1c] 13 impalad!impala::Webserver::RenderUrlWithTemplate(std::map, std::allocator > > const&, impala::Webserver::UrlHandler const&, std::basic_stringstream, std::allocator >*, impala::ContentType*) [function_template.hpp : 767 + 0x11] 14 impalad!impala::Webserver::BeginRequestCallback(sq_connection*, sq_request_info*) [webserver.cc : 418 + 0x1c] 15 impalad!handle_request + 0x740 16 impalad!process_new_connection + 0x16d 17 impalad!worker_thread + 0x2dd 18 libpthread-2.12.so!start_thread + 0xd1 19 libc-2.12.so!clone + 0x6d {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)