Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D4B118F4E for ; Mon, 30 Nov 2015 23:36:12 +0000 (UTC) Received: (qmail 74571 invoked by uid 500); 30 Nov 2015 23:36:11 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 74185 invoked by uid 500); 30 Nov 2015 23:36:11 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 74160 invoked by uid 99); 30 Nov 2015 23:36:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2015 23:36:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E47812C14F0 for ; Mon, 30 Nov 2015 23:36:10 +0000 (UTC) Date: Mon, 30 Nov 2015 23:36:10 +0000 (UTC) From: "James Clampffer (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-9486) Valgrind failures when using more than 1 io_service worker thread. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 James Clampffer created HDFS-9486: ------------------------------------- Summary: Valgrind failures when using more than 1 io_service worker thread. Key: HDFS-9486 URL: https://issues.apache.org/jira/browse/HDFS-9486 Project: Hadoop HDFS Issue Type: Sub-task Reporter: James Clampffer Assignee: James Clampffer Valgrind catches an invalid read of size 8. Setup: 4 io_service worker threads, 64 threads doing open-read-close on a small file. Stack: ==8351== Invalid read of size 8 ==8351== at 0x51F45C: asio::detail::reactive_socket_recv_op >, asio::mutable_buffers_1, asio::detail::transfer_all_t, std::_Bind > >::*)(std::error_code const&, unsigned long)> (hdfs::RpcConnectionImpl > >*, std::_Placeholder<1>, std::_Placeholder<2>)> > >::do_complete(asio::detail::task_io_service*, asio::detail::task_io_service_operation*, std::error_code const&, unsigned long) (functional:601) ==8351== by 0x508B10: hdfs::IoServiceImpl::Run() (task_io_service_operation.hpp:37) ==8351== by 0x55BCBEF: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19) ==8351== by 0x5A2D181: start_thread (pthread_create.c:312) ==8351== by 0x5D3D47C: clone (clone.S:111) ==8351== Address 0x67e3eb0 is 0 bytes inside a block of size 216 free'd ==8351== at 0x4C2C2BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==8351== by 0x51F7B2: hdfs::RpcConnectionImpl > >::~RpcConnectionImpl() (rpc_connection.h:32) ==8351== by 0x50C104: hdfs::FileSystemImpl::~FileSystemImpl() (unique_ptr.h:67) ==8351== by 0x503A10: hdfs::HadoopFileSystem::~HadoopFileSystem() (unique_ptr.h:67) ==8351== by 0x503B28: hdfs::HadoopFileSystem::~HadoopFileSystem() (hdfs_cpp.cc:140) ==8351== by 0x503580: hdfs_internal::~hdfs_internal() (unique_ptr.h:67) ==8351== by 0x502FEE: hdfsDisconnect (hdfs.cc:127) ==8351== by 0x5010B7: main (threaded_stress_test.cc:74) ==8351== pure virtual method called terminate called without an active exception -- This message was sent by Atlassian JIRA (v6.3.4#6332)