Message ID | 20230815194941.540603-1-vladimir.mezentsev@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <binutils-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3811B385559C for <patchwork@sourceware.org>; Tue, 15 Aug 2023 19:50:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3811B385559C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692129018; bh=HdUXyw2mOkNN+sr6xhVKc7WWCEV91an9VszwjOyl8zI=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=JeoCefzdn30hvcE36xim3UzK6eoHLDEw47CkW9nr7o5dRPAe2bINwfISxSJe3Y8ZB lM1m3siGYVxebYI4b4IZPQ7PX3M/Rxtfxa/U8mAX1JGKaHUU7arqrumUGHujaRlqIG 1baF1V0Oix8fkTi8zf/O8UqSveU/FMaFf4E2lD0c= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id 79E0A3855592 for <binutils@sourceware.org>; Tue, 15 Aug 2023 19:49:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 79E0A3855592 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37FJjVQC025637 for <binutils@sourceware.org>; Tue, 15 Aug 2023 19:49:49 GMT Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3se2yfngty-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 15 Aug 2023 19:49:48 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 37FJGYkR019807 for <binutils@sourceware.org>; Tue, 15 Aug 2023 19:49:48 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3sey3vrhfu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 15 Aug 2023 19:49:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TZXgsIiXdUK9Q6wocLSNBg1WQmHFI2swMbAOUCNdpXJZ/PT1G9tzxcjDesn0dGSX1OIhUUpGNyD4QDYZJ+IzwflzF/wxk9VKI/K/calQh2/UU5i4R6/RDN/qGK8W45s/jyGVTWCxJP7flnNJG/d3MyzAE2V8UfEW0SET2d2hDXf7UdIQt2E3au49t3d5bgAJn9ZfTWhSWda50AQ0ALnunmPZFwFBZqMt0V+yRU6zk1jEh4kZxQ2QkRbZMdnE5mmAUvA5+S+cVe7tfksLSsnf/VeVU6PnMUCQfHHeNCLG7tj/eXUh8S7UN/DO8DY2FcnjEwh80pPfAPcQFRGTrII2QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HdUXyw2mOkNN+sr6xhVKc7WWCEV91an9VszwjOyl8zI=; b=YAtPfAFk5byO2Bb1TN7C2kp1yBr76mVvxIQNcDspfI2EnT5nPKQbBDen/m/UDNqNC9YvfIR12QOy294Co8GgtFxx1lRwBoXCzJzOuad86+8TF7SGKn8ziLTutc7NT80UbWI1xy+928w/yUGcamDgpFXKemgvytDJBZeRK70ZdXBXXy80hVIBYljOSmBdlTpk1KkgIpMZWijVUU/5Z6qZfdQCvDYmF0q3oTl6hyytsiPeQHqSIf/zS+PO+TZugopGnW+gk/ZVU2lPe4U7i8IyH5X9s5uHvk0QTybqXIoo09gkYtqCImfqMr1FlWl75n0G8Ujzp4FAdAccPhU7Fhlzfw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from SA2PR10MB4636.namprd10.prod.outlook.com (2603:10b6:806:11e::10) by BN0PR10MB5383.namprd10.prod.outlook.com (2603:10b6:408:124::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.26; Tue, 15 Aug 2023 19:49:46 +0000 Received: from SA2PR10MB4636.namprd10.prod.outlook.com ([fe80::a15b:c87d:10e3:5765]) by SA2PR10MB4636.namprd10.prod.outlook.com ([fe80::a15b:c87d:10e3:5765%7]) with mapi id 15.20.6678.025; Tue, 15 Aug 2023 19:49:46 +0000 To: binutils@sourceware.org Cc: Vladimir Mezentsev <vladimir.mezentsev@oracle.com> Subject: [PATCH] gprofng: Use execvp instead of execv Date: Tue, 15 Aug 2023 12:49:41 -0700 Message-Id: <20230815194941.540603-1-vladimir.mezentsev@oracle.com> X-Mailer: git-send-email 2.31.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SA1P222CA0114.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c5::21) To SA2PR10MB4636.namprd10.prod.outlook.com (2603:10b6:806:11e::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PR10MB4636:EE_|BN0PR10MB5383:EE_ X-MS-Office365-Filtering-Correlation-Id: 7335dabe-56c7-4425-58f7-08db9dc8c6c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m+nOzVVn8/omKd3lEEy0H+EOVGFaW1oqaQRdPAoroo1bjHKC2ucOjZ2Tct/U16zf5s9rZDnDlJpvBZvjVupzhBnI4GlCFwpf2nnuhwQyv2js2+ist8WXBbpiD3/cxTW9VbiFbTVDOaoS8nhzKsKvTuyBv2GI0fkkSjR6vkSzVFLwuANNtVaFnfaLXgeFbicI3l5g74G3LfRGecrJw9fNy+A1ShhfivHyiE8VKeb+e8T+yVQQPLj5zQSvG50dmgE7R2oxaQLV3oaFw0WkgDXR0C5tS016EzebOPHnlIEx3uKu7Qc11i4ik4E8hB5H7rWpDinyuzLaAs9Yn8cEsruckAi6BUO3WN0Y4fqznsBINRXAZIl9oHGjWF+nL84VvjGBNdRVRipiRmZcPcOM8Xw1ckmzd1RDZn66v7ObZMtQfkb189/h6V4fvE+EyhuffCpwutcic8qZDUjbgoGv8JV6kfry1xeGILfN8CFEe13UjgOPXD6rXk9eWZqlqWEpYx2WyUSZ2x6dbferp+5eSKgR8A6jlWG8/SYsXD7BojZlPMyuljX1XIL4HI14R+toQn0M X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4636.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(346002)(366004)(396003)(39860400002)(376002)(1800799009)(186009)(451199024)(41300700001)(8936002)(6666004)(107886003)(1076003)(38100700002)(5660300002)(36756003)(86362001)(4744005)(66476007)(66946007)(66556008)(316002)(6916009)(6512007)(9686003)(4326008)(478600001)(83380400001)(6486002)(2616005)(8676002)(2906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iqS1qk5az0PITeDRrbYR4vUkdY1v5+J9dbs2/yKD3b1MkbZfV6Put/lLafy7KCTWOONzcUnlVq1wXyz950lZJWBaAWdVf9dztqb2WigZVehNVor4hYmm12mDzO3BxnXgDIQmsul37MttCqAPNEShOKry/6wGzZvwQ2L7wtKNHl+2M39IW0MqqYcGuglIP/lCgwCoh+ssTYpEX6/U+NujsVnWvNBn0sNOOv5pUdLosQeQAeoBbMw9ND/F2CIccZ0/c+BOxF9wVnn8k4b4y+I2um0WnGcFZrXW9bt0BA8ZK6QHGTyEcf/LtbfmW0DFQpFPYzMQCrZscx6gmDEF84ZiZ1DWe1kZUJ2Q1rQm6hAq/HSoemyJ7JGXrsJfWw8X2OzjUtyrXJtWYGiIUQog5aw8dq76MYCd70lwfPNJQzGzcJYTvWol8RPBonob3y6 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7335dabe-56c7-4425-58f7-08db9dc8c6c7 X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4636.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2023 19:49:46.2424 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3eFpERxgNZLfdK5pNXnK98QUJk8lt+Y5y70UFwZDE/POwWsa5I4GSumNpRXtZGhjW3zIE5mXas+RcMvHDzKXcYjojGeedxK0Qx7VlmZTBWQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5383 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-15_18,2023-08-15_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=975 spamscore=0 mlxscore=0 adultscore=0 bulkscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308150179 X-Proofpoint-ORIG-GUID: fzFS1yYgobb7WI1Ze3t2MpgTUfKu1ybU X-Proofpoint-GUID: fzFS1yYgobb7WI1Ze3t2MpgTUfKu1ybU X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Vladimir Mezentsev via Binutils <binutils@sourceware.org> Reply-To: vladimir.mezentsev@oracle.com Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org Sender: "Binutils" <binutils-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
gprofng: Use execvp instead of execv
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 | warning | Patch is already merged |
linaro-tcwg-bot/tcwg_binutils_check--master-arm | warning | Patch is already merged |
linaro-tcwg-bot/tcwg_binutils_build--master-arm | warning | Patch is already merged |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | warning | Patch is already merged |
Commit Message
Vladimir Mezentsev
Aug. 15, 2023, 7:49 p.m. UTC
From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
gprofng/ChangeLog
2023-08-15 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
* src/gp-display-text.cc (reexec): Use execvp instead of execv.
---
gprofng/src/gp-display-text.cc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gprofng/src/gp-display-text.cc b/gprofng/src/gp-display-text.cc index 0d0a5e75e44..85ae274fc63 100644 --- a/gprofng/src/gp-display-text.cc +++ b/gprofng/src/gp-display-text.cc @@ -20,6 +20,7 @@ #include "config.h" #include <unistd.h> // isatty +#include <errno.h> #include "gp-print.h" #include "ipcio.h" @@ -55,7 +56,11 @@ reexec () { if (dbeSession != NULL) dbeSession->unlink_tmp_files (); - execv (exe_name, new_argv); + execvp (exe_name, new_argv); + fprintf (stderr, GTXT ("Error: reexec() failed (%d: %s)\n"), errno, + STR(strerror (errno))); + fflush (stderr); + exit (1); } /**