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 7E2EB200C78 for ; Thu, 18 May 2017 22:33:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7CAF9160BB5; Thu, 18 May 2017 20:33:08 +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 C0F04160B9D for ; Thu, 18 May 2017 22:33:07 +0200 (CEST) Received: (qmail 22148 invoked by uid 500); 18 May 2017 20:33:07 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 22139 invoked by uid 99); 18 May 2017 20:33:06 -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, 18 May 2017 20:33:06 +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 8873B182881 for ; Thu, 18 May 2017 20:33:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id DeKL-3dbjJJN for ; Thu, 18 May 2017 20:33:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EB3665FB96 for ; Thu, 18 May 2017 20:33:04 +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 6870BE09F4 for ; Thu, 18 May 2017 20:33:04 +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 16C1621B57 for ; Thu, 18 May 2017 20:33:04 +0000 (UTC) Date: Thu, 18 May 2017 20:33:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MINIFI-320) In cases where users run TLSSocket, the context will cause a realloc in multiple threads. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 May 2017 20:33:08 -0000 [ https://issues.apache.org/jira/browse/MINIFI-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16016425#comment-16016425 ] ASF GitHub Bot commented on MINIFI-320: --------------------------------------- Github user phrocker commented on a diff in the pull request: https://github.com/apache/nifi-minifi-cpp/pull/100#discussion_r117346816 --- Diff: libminifi/include/utils/ThreadPool.h --- @@ -189,7 +195,8 @@ class ThreadPool { // atomic running boolean std::atomic running_; // worker queue of worker objects - std::queue> worker_queue_; + //std::queue> worker_queue_; --- End diff -- remove comment > In cases where users run TLSSocket, the context will cause a realloc in multiple threads. > ------------------------------------------------------------------------------------------ > > Key: MINIFI-320 > URL: https://issues.apache.org/jira/browse/MINIFI-320 > Project: Apache NiFi MiNiFi > Issue Type: Bug > Components: C++ > Reporter: marco polo > Priority: Blocker > Fix For: cpp-0.3.0 > > > An example stacktrace. . We can either move *back* to a singleton of simply move the ssl library initialization to a better place. > #0 0x10122d520 in wrap_realloc (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x56520) > #1 0x100fe80ae in CRYPTO_realloc (libcrypto.1.0.0.dylib:x86_64+0x20ae) > #2 0x10109880c in lh_insert (libcrypto.1.0.0.dylib:x86_64+0xb280c) > #3 0x100fea6e7 in OBJ_NAME_add (libcrypto.1.0.0.dylib:x86_64+0x46e7) > #4 0x1010a5b41 in OpenSSL_add_all_ciphers (libcrypto.1.0.0.dylib:x86_64+0xbfb41) > #5 0x1010a58d1 in OPENSSL_add_all_algorithms_noconf (libcrypto.1.0.0.dylib:x86_64+0xbf8d1) > #6 0x10012ad40 in org::apache::nifi::minifi::io::TLSContext::initialize() TLSSocket.cpp:60 > #7 0x100132255 in org::apache::nifi::minifi::io::TLSSocket::initialize() TLSSocket.cpp:166 > #8 0x100677a68 in org::apache::nifi::minifi::Site2SitePeer::Open() Site2SitePeer.cpp:42 > #9 0x100631543 in org::apache::nifi::minifi::Site2SiteClientProtocol::establish() Site2SiteClientProtocol.cpp:46 > #10 0x10063e9ff in org::apache::nifi::minifi::Site2SiteClientProtocol::bootstrap() Site2SiteClientProtocol.cpp:483 > #11 0x100600880 in org::apache::nifi::minifi::RemoteProcessorGroupPort::onTrigger(org::apache::nifi::minifi::core::ProcessContext*, org::apache::nifi::minifi::core::ProcessSession*) RemoteProcessorGroupPort.cpp:148 > #12 0x1002c1a3a in org::apache::nifi::minifi::core::Processor::onTrigger(org::apache::nifi::minifi::core::ProcessContext*, org::apache::nifi::minifi::core::ProcessSessionFactory*) Processor.cpp:235 > #13 0x10062cc20 in org::apache::nifi::minifi::SchedulingAgent::onTrigger(std::__1::shared_ptr, org::apache::nifi::minifi::core::ProcessContext*, org::apache::nifi::minifi::core::ProcessSessionFactory*) SchedulingAgent.cpp:66 > #14 0x10069b933 in org::apache::nifi::minifi::TimerDrivenSchedulingAgent::run(std::__1::shared_ptr, org::apache::nifi::minifi::core::ProcessContext*, org::apache::nifi::minifi::core::ProcessSessionFactory*) TimerDrivenSchedulingAgent.cpp:37 > #15 0x100690205 in org::apache::nifi::minifi::ThreadedSchedulingAgent::schedule(std::__1::shared_ptr)::$_0::operator()() const ThreadedSchedulingAgent.cpp:97 > #16 0x10068f37d in void* std::__1::__thread_proxy)::$_0> >(void*) __functional_base:416 > #17 0x7fffb45cf9ae in _pthread_body (libsystem_pthread.dylib:x86_64+0x39ae) > #18 0x7fffb45cf8fa in _pthread_start (libsystem_pthread.dylib:x86_64+0x38fa) > #19 0x7fffb45cf100 in thread_start (libsystem_pthread.dylib:x86_64+0x3100) -- This message was sent by Atlassian JIRA (v6.3.15#6346)