From patchwork Mon Sep 10 05:06:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 146276 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2078962ljw; Sun, 9 Sep 2018 22:08:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY1RMDMkC2itRHUb0KnHKvXYr7bxyMG4iYcRVFCEWwFE2c1yx+kez75DQI2IVP9j4CrKNRb X-Received: by 2002:a17:902:1101:: with SMTP id d1-v6mr20205920pla.131.1536556107475; Sun, 09 Sep 2018 22:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536556107; cv=none; d=google.com; s=arc-20160816; b=a6w6jsSWTHA6qesL+LzR0LaHnkj2VA31YlYWLlWQ2Azutna3pR2jpBAu57gSU/rYmB 8NN2JMctp3WIfMeBGZ8/PapBPD4E+XIQOV+cUY9YcQLcmb64WeKQ1U36YIn/0qI5GqiG 2lJ03WGm95raNhLGXvT+SqXDKqq726U/etM6d10QfmhNWjboAu31VRVvHOKeXH3fBFrw oX3KlPjPQejvh8eXJFgWXhQ0lKe2LQBiN4dFontt0Thatv+Ff0HANqSfUVZgCmiDwyd4 ovPiuRA8c+IrUxPn6QHrtGaG6u/Ktpy9zm2xLI48Cpr7JsmfnJFlfTn7rO5e+9oFRXLH D21A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=oMzkiMYHs2eGYK2mH0BLW4pt3GUstTyFwdgSsOFXToU=; b=JMl0SE7/Zq/AvbYLt1K/WKH8h4s24usXpKNJ/fDSkC34ohvkFWT6SXJ6P9niIOlprN kaSxc0QKLm9LmvXLK8K/jFNDdr8Tg7LJOEvnRVG4/9uAb7bE1ILiqm4uJZXVdwVR8CtX lFY7urFVb28crDI8FMJDk33/mKQg1959El1tkmw03Y0tym8kWqCkYnZnG4dA3VOJueYU FmzyUEwEPGxC+at297BxNil8GW6Ws+/J4wa6ve4ZTg0LjNjBV8PINLNZ5BvcHT3bUZcP R82ujD0KkVm6OoUkxF3bMImMFBu8jGYeh+DjOJCebTIUyJ7DeClSwqihy2z7Jj2ZnXN+ Y1EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=e37WuuiG; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id e22-v6si15803999pgi.111.2018.09.09.22.08.27; Sun, 09 Sep 2018 22:08:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=e37WuuiG; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 93AAF79748; Mon, 10 Sep 2018 05:07:46 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mail.openembedded.org (Postfix) with ESMTP id 781257951E for ; Mon, 10 Sep 2018 05:06:44 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id b11-v6so9837513pfo.3 for ; Sun, 09 Sep 2018 22:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HFdKsVij6b3su3pPNYPrOOa4Bjzbj4lbL3p/mMNPOQ0=; b=e37WuuiGNX5JFMXJgS3NHDW0ZrF+jZpapvHkRhNxMrWLGjERhAuCywRLNrRPv/OKjR /SBfufA6DPNO5lj67BESOWzLmhTmkU5ZzxqumK+/HKom12FgU+1StL5Jcj1tGzY9WsGG gvI//18+R2BRnSvAvLavI8txQeDjtYt6AMSyKydHzCoZw+brHTdhuiKbigviZ/waCbS1 oj2TVxOjifqIa5SOTuMF3ueCJxSB1NhZlv8CHaTHTFG2RVCyA36Ohr0DkR6DxEQpB356 +RFzvo7kgZ1+dJ1nV4HW7YwAhvlULPLZroUvN+z2OKCciodHFUsW3kSk10too17WaRUT ni2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HFdKsVij6b3su3pPNYPrOOa4Bjzbj4lbL3p/mMNPOQ0=; b=I6gcEAHdN9nLp4/gIUJyH77yDrFxIihC3sDQUvWtJSGLsopWju00KOTC6B7zRPMROa stY37NuZG2VvUHtKnrg0wfOSmTF0arphub49M+30kg9yMLoFr2D7mcWB/ocP9i2Zf4JC zQSdrOAllzkmJCHv/OV9eCsbfsop+WdvtsCm7htH0XxMJEnaaYOmBEGnKQegBsn/l8/L A6rfrkc58GbKAeLaflRsE1xjc4sQSU84k8kxl+Mlg/QD8DH79Cgc01r1dncmFcWMOehQ z0wXFfMKF99vfE3/n/W0NN8AYWqVVoV04AxbgrNcsZ9nivWcOdIO1YQNrEpE1klxNAsx UhAw== X-Gm-Message-State: APzg51C2UVUA/+odC+x7EmdnPLFua26y0o4H6aoRdo4BeHZ+H3A71Hb6 Tny1RbcXCjyHh4QUQb9xwb4FT0eS X-Received: by 2002:a62:9e08:: with SMTP id s8-v6mr21724537pfd.23.1536556005120; Sun, 09 Sep 2018 22:06:45 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::2887]) by smtp.gmail.com with ESMTPSA id x24-v6sm18819188pfh.67.2018.09.09.22.06.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Sep 2018 22:06:44 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 9 Sep 2018 22:06:27 -0700 Message-Id: <20180910050629.16170-8-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180910050629.16170-1-raj.khem@gmail.com> References: <20180910050629.16170-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 08/10] breakpad: Pass correct type name to sizeof() X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org memset is clearing memory area address starting at contect.context but it needs the correct size of type 'ucontext_t', currently its getting size of 'ucontext_t*' Signed-off-by: Khem Raj Cc: Andre McCurdy --- ...01-disable-calls-to-getcontext-with-musl.patch | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) -- 2.18.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-devtools/breakpad/breakpad/0001-disable-calls-to-getcontext-with-musl.patch b/meta-oe/recipes-devtools/breakpad/breakpad/0001-disable-calls-to-getcontext-with-musl.patch index c762754ad1..bc79727edd 100644 --- a/meta-oe/recipes-devtools/breakpad/breakpad/0001-disable-calls-to-getcontext-with-musl.patch +++ b/meta-oe/recipes-devtools/breakpad/breakpad/0001-disable-calls-to-getcontext-with-musl.patch @@ -8,11 +8,11 @@ Signed-off-by: Andre McCurdy src/client/linux/handler/exception_handler.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc -index cca023f..f3e460c 100644 ---- a/src/client/linux/handler/exception_handler.cc -+++ b/src/client/linux/handler/exception_handler.cc -@@ -495,7 +495,19 @@ bool ExceptionHandler::SimulateSignalDelivery(int sig) { +Index: git/src/client/linux/handler/exception_handler.cc +=================================================================== +--- git.orig/src/client/linux/handler/exception_handler.cc ++++ git/src/client/linux/handler/exception_handler.cc +@@ -495,7 +495,19 @@ bool ExceptionHandler::SimulateSignalDel siginfo.si_code = SI_USER; siginfo.si_pid = getpid(); ucontext_t context; @@ -42,11 +42,8 @@ index cca023f..f3e460c 100644 return false; +#else + // Extreme hack - see comments above. -+ memset (&context.context, 0, sizeof(&context.context)); ++ memset (&context.context, 0, sizeof(context.context)); +#endif #if defined(__i386__) // In CPUFillFromUContext in minidumpwriter.cc the stack pointer is retrieved --- -1.9.1 -