From yarn-dev-return-29378-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Jan 23 17:24:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 298CF180621 for ; Tue, 23 Jan 2018 17:24:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 110A0160C4F; Tue, 23 Jan 2018 16:24:05 +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 5A72E160C17 for ; Tue, 23 Jan 2018 17:24:04 +0100 (CET) Received: (qmail 68418 invoked by uid 500); 23 Jan 2018 16:24:03 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 68406 invoked by uid 99); 23 Jan 2018 16:24:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2018 16:24:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id ADFC61A0995 for ; Tue, 23 Jan 2018 16:24:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id TGC8l-iT1LlM for ; Tue, 23 Jan 2018 16:24:01 +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 7A3E45F640 for ; Tue, 23 Jan 2018 16:24:01 +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 0DDD0E01A7 for ; Tue, 23 Jan 2018 16:24:01 +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 BF88D20DF3 for ; Tue, 23 Jan 2018 16:24:00 +0000 (UTC) Date: Tue, 23 Jan 2018 16:24:00 +0000 (UTC) From: "Gergo Repas (JIRA)" To: yarn-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-7796) Container-executor fails with segfault for certain OS configurations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Gergo Repas created YARN-7796: --------------------------------- Summary: Container-executor fails with segfault for certain OS= configurations Key: YARN-7796 URL: https://issues.apache.org/jira/browse/YARN-7796 Project: Hadoop YARN Issue Type: Bug Components: nodemanager Affects Versions: 3.0.0 Reporter: Gergo Repas Assignee: Gergo Repas Attachments: YARN-7796.000.patch There is a relatively big (128K) buffer allocated on the stack in=C2=A0cont= ainer-executor.c for the purpose of copying files. As indicated by the belo= w gdb stack trace, this allocation=C2=A0can fail with SIGSEGV. This happens= only on certain OS configurations - I=C2=A0can=C2=A0reproduce this issue o= n RHEL 6.9: {code:java} [Thread debugging using libthread_db enabled] main : command provided 0 main : run as user is systest main : requested yarn user is systest Program received signal SIGSEGV, Segmentation fault. 0x00000000004069bc in copy_file (input=3D7, in_filename=3D0x7ffd669fd2d6 "/= yarn/nm/nmPrivate/container_1516711246952_0001_02_000001.tokens", out_filen= ame=3D0x932930 "/yarn/nm/usercache/systest/appcache/application_15167112469= 52_0001/container_1516711246952_0001_02_000001.tokens", perm=3D384) at /root/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hado= op-yarn-server-nodemanager/src/main/native/container-executor/impl/containe= r-executor.c:966 966=09 char buffer[buffer_size]; (gdb) bt #0 0x00000000004069bc in copy_file (input=3D7, in_filename=3D0x7ffd669fd2d= 6 "/yarn/nm/nmPrivate/container_1516711246952_0001_02_000001.tokens", out_f= ilename=3D0x932930 "/yarn/nm/usercache/systest/appcache/application_1516711= 246952_0001/container_1516711246952_0001_02_000001.tokens", perm=3D384) at /root/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hado= op-yarn-server-nodemanager/src/main/native/container-executor/impl/containe= r-executor.c:966 #1 0x0000000000409a81 in initialize_app (user=3D, app= _id=3D0x7ffd669fd2b7 "application_1516711246952_0001", nmPrivate_credential= s_file=3D0x7ffd669fd2d6 "/yarn/nm/nmPrivate/container_1516711246952_0001_02= _000001.tokens", local_dirs=3D0x9331c8, log_roots=3D, = args=3D0x7ffd669fb168) at /root/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hado= op-yarn-server-nodemanager/src/main/native/container-executor/impl/containe= r-executor.c:1122 #2 0x0000000000403f90 in main (argc=3D, argv=3D) at /root/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yar= n-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/= impl/main.c:558 {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-dev-help@hadoop.apache.org