From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id g0BmBY3EO2qEORYAWB0awg (envelope-from ) for ; Wed, 24 Jun 2026 07:50:37 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=do0k85XR; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 07AA01E024; Wed, 24 Jun 2026 07:50:37 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 617701E024 for ; Wed, 24 Jun 2026 07:50:35 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 860424BA2E11 for ; Wed, 24 Jun 2026 11:50:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 860424BA2E11 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=do0k85XR Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 9D69A4BA2E04 for ; Wed, 24 Jun 2026 11:50:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9D69A4BA2E04 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9D69A4BA2E04 Authentication-Results: sourceware.org; arc=fail smtp.remote-ip=148.163.156.1 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1782301806; cv=fail; b=D1Awvx7iHHHufXzgBWNV13alZOglfHE1NDOhWnlM+QbfLm1hQe9vkNES6WNgNSRXh1k0FDC8ZtygSdPyf4cbd++NIxo6rFBLd5d2aQ4DBOlYFpSCnT0sSt2sTU/7ifWXfWdmhYCtUAfP5bZ9fLOEQicQT4vmO9gttssg6k0y/oA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1782301806; c=relaxed/simple; bh=sThGXJioIXPhI7SQR/OGhswsg5Oh5gz/VERjfPOI6ZM=; h=DKIM-Signature:From:To:Date:Message-ID:MIME-Version:Subject; b=TXB6bEI0PC6blYWsDaICb2XUfcXhy4UZtCQxFgaVTvaNUR6J0Rk+n4fwi0iwQ0N1bzk+ygMingruDeuXxnaLDE+BgglpAsva+iLnEXE/VjvsqPXSKrPTRhTV3kQO+B7GG7d3wCqlfCLCBb4Dw0Fz5c+vEu02XUqVb9fW7Nz/SH0= ARC-Authentication-Results: i=2; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=do0k85XR DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D69A4BA2E04 Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65OAmCpc865981; Wed, 24 Jun 2026 11:50:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=pp1; bh=sThGXJioIXPhI7SQR/OGhswsg5Oh5g z/VERjfPOI6ZM=; b=do0k85XRKGH/uFaucJCFM8bS2yag2d+Wsk3Vut5h6nt7Di +40WfRIVpMMEI60wOBMGuR9sFo+l0ZPScjh+WIPbd6z+eKcZn1q/HX+X5bPVQ8kv Dda9+JocP/GvrBZeiCiq7/YY5eFfND8rf0GvwAj1R836DEqdcxvL0wqTfmk3cwtq PRSrhNxo9rQA/WhdihfmhQJWf7g3PO5NuOzaqciYANd28T4n2YahrL6nrTM02udN 7hTLnJ+9GQyBgfepvfdVtQuGpiZ+wSr116ylG4ZQlcsfAjpiQTB6Ut28tB+vrLVu CfWesiIRvyd59yMcqHpDh8XRC+wV8FlxJAKR7uPw== Received: from sn4pr2101cu001.outbound.protection.outlook.com (mail-southcentralusazon11012013.outbound.protection.outlook.com [40.93.195.13]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4ewjhquu1c-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 24 Jun 2026 11:50:03 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UJG8cvBpxVfhpH2eK3zGSMDzkpMphqcPWAvhfVUHNst7JUNjHZKtvGEJqNyxUAa3nUKPfutdcz9P7D72ELxRmen8Cyhbi5OfpSBA/mjmsBHdKDu1vILn1XpXMTCTCDKmXdEwIwwh7glclkv0nwouLggUY1iK/T12bz0V9eloH75pvtagaJCW6JVsMCXut3fn9e0wBtPJKsW5u8ycKb7BW/6zbflShQmIrl6dH6xeY0PHCyFUaDFLvyKLM5kDeZkAsjBzKHrd+fCWpXtjEf+7ctE2XSkoX/zx+CLsPbcvPSgv/KXb5TVq6IuwGOeUKxxLOekElK4xuPafJULCxKmZ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=sThGXJioIXPhI7SQR/OGhswsg5Oh5gz/VERjfPOI6ZM=; b=I9g2hIuLvCUSoZlVAITDIMctIcMyNndgaNMrow8LCANdmcME2Kyt2w4ywjMm7zuJgLG/aL3x0rKZKPVOhV7LYGSqSlukKG5D2JTdCphOK52JULH/vyGNTnt/rsUprYNTFvwjVMqsqFaKUaOAWPAEKiWcyP5r2/+nEQj8FJsStVAUqEXGHHVG1RX7xtD17ebFIoXGhZbnQ21K0c5Wnt9tCeLMo9vcYGvLjKFwhv4TtsDN8uPWPl5poDFLsdC3DokmdGoOFdyUJ7enxVAF5AT7BdNnhBeHTA3IbWT6yt+c3Rq4Pi6OQcVgFk1BUNKCDwFzrygQMbaJt/zBxfwL233aLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ibm.com; dmarc=pass action=none header.from=ibm.com; dkim=pass header.d=ibm.com; arc=none Received: from LV8PR15MB6488.namprd15.prod.outlook.com (2603:10b6:408:1f4::13) by DS0PR15MB6277.namprd15.prod.outlook.com (2603:10b6:8:156::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.159.14; Wed, 24 Jun 2026 11:50:01 +0000 Received: from LV8PR15MB6488.namprd15.prod.outlook.com ([fe80::cc4d:8604:c04f:2a40]) by LV8PR15MB6488.namprd15.prod.outlook.com ([fe80::cc4d:8604:c04f:2a40%4]) with mapi id 15.21.0159.013; Wed, 24 Jun 2026 11:50:01 +0000 From: Aditya Kamath To: Keith Seitz , Aditya Vidyadhar Kamath CC: "gdb-patches@sourceware.org" Thread-Topic: [EXTERNAL] Re: [PATCH] Fix crash in AIX when current working directory is NULL Thread-Index: AQHdAzNCOBH38OX34USWwFbRQ4uGJ7ZNlUPY Date: Wed, 24 Jun 2026 11:50:01 +0000 Message-ID: References: <20260622091114.18783-2-akamath996@gmail.com> <3ae0f8af-b88a-4f51-bce8-19be9b404fa0@redhat.com> In-Reply-To: <3ae0f8af-b88a-4f51-bce8-19be9b404fa0@redhat.com> Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-reactions: allow x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LV8PR15MB6488:EE_|DS0PR15MB6277:EE_ x-ms-office365-filtering-correlation-id: a26145cd-307d-48b7-8ec4-08ded1e6b918 x-ld-processed: fcf67057-50c9-4ad4-98f3-ffca64add9e9,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|23010399003|376014|1800799024|366016|56012099006|4143699003|11063799006|22082099003|18002099003|8096899003|38070700021; x-microsoft-antispam-message-info: iBYZE/e3abyex6/Iy7zt/gq/Gr9q/4cgaADaGCGLMe6DACuxtPAu7gL9vKEoZfmqnVEqkGdX6d0RSasW1gtH5jj7wPA61vr9HW/3WXsg+vzvoSsjKeSJx8M7zlJWOYlCHNrg3WRhdbXZh8IPclZjCBLhJsHpry2yRfuWnBXZFO403SKrf4oqIIfB+t/ccnWtjZEzAbeMi4BCd+DTsthXDYUAMUw3pUJdJ2zo+8J4D3S8jR7q+Qm29837cJjkEMFvLH8iBa2aUIuo7J7GI14Z3D5dLftywzICnena0LvqrQu2zRP14TPxN0ZrXTUpZ6XewHbVERHHDwdzgYcDTA66r965d/PWUCt9LJG67fVT8k8qxtcC0hJhGuz1bEAS5Tr4mboUL4eg9+my2IJ0LpDLzuFQW62HrApbixXWNBhNgC34qMKss/Bmyik9uQc5JQLjalfWNZeFcpyFX4wWTV6UL46OQRGwDuGvDhx6ievmOjoe+3zjINKvyi1x/KWOjQWk6ACEx22oMT6Gqtm0FkRfCgiN0Be8iHYOpFXuq5qjaN7c4ZXjPNmjHjH3v8/2qDJf4ngHYH/NU8dVZhnaP0UjPC0VT9r0zRm31QTC/3yyNYgobBDVIFVREk19uFgd6CILmD5Uxlb6ibUHLUMvuC9T9lwY874AWJNIXL8j/sc7/oiLO+lgaheMpdCKhNh2heW0XLHIBJAG1L8EPmrLi1yHvufS1MVe3hyf3e3xM7IwcMQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:LV8PR15MB6488.namprd15.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(23010399003)(376014)(1800799024)(366016)(56012099006)(4143699003)(11063799006)(22082099003)(18002099003)(8096899003)(38070700021); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?WS+7KnAa2ki3fPw/GmGg6X8ix/dX5IhZVVjzTfEXc/75k5sMUrOiXvv/?= =?Windows-1252?Q?HVrIGJOneMvKqcOw6y5hEY+9IdwDikyOlBiLK56guEeGf2Vr/pTWRYRU?= =?Windows-1252?Q?ASDlfYbsPkuuVlsJUu1H7vtQ/lEHddpH3VUqagfhq+GXAcP/70ge9XLx?= =?Windows-1252?Q?woAtOdX07y3gWAvfghMCFUp1T0+g65uhQz+KkCGVCOXMJvgyzIjx/2BT?= =?Windows-1252?Q?aBw921of7hP2S82iFltlBrJP6m7yvKrXAOWyLOPPW2Z0KkyLAa4jQa48?= =?Windows-1252?Q?MZcDsRr8XBQaO6pnF47SON1ji5/LVmh0s/TmoPGoDB4FupD2guTlTe22?= =?Windows-1252?Q?TKIv/h+yEXpD0hCN+gyM4Tx6vRFQDkdA+BExBm3oqlhpzd4q2oVTP3lQ?= =?Windows-1252?Q?q6EX/705FzNFAX0QxL16TvL07KAsz3g/WRCb+NvE79WDE6DkhBXbZ0uU?= =?Windows-1252?Q?TPcqQa9A0MyR/347a9CSsQ5j/SVLZNNj2bU58s4CXFf3A6sjY4vOesar?= =?Windows-1252?Q?Cxh15wyOD6rm9BnltzTMnSYZ2CWjo9BOnJdqY1dy5+e/90ficPdX0phf?= =?Windows-1252?Q?3/r1squh5N4f3pKg0+fOCPVfHLWPqZWeZD8SC3YL5OW4miCdi1ra0HdZ?= =?Windows-1252?Q?IthR5TPlbymk/RImZSLZWy2fsoD89efhZaV8bmNy5QDT5xqYYAI/bkKS?= =?Windows-1252?Q?N6G9gx3S1E7g4O9u/SgEdyuQiz30d78m34evLKeoGFg5SsAz75122LlD?= =?Windows-1252?Q?bXpAS+F/W0IqATHTrbRlJPEczTxZVL7mpJgfmEiZn+HUuxheVJA2HgsD?= =?Windows-1252?Q?eZpNelYnj2yw9Gl6dw7MzmSPxltCCEC1Ff33q1jrsiILRT5c0rkTkKTq?= =?Windows-1252?Q?/8QrZjoGnTx2cYl7iwYiOu0BwHkyv22GZUzdFPIYuRXrASuCRG8Nvfp+?= =?Windows-1252?Q?/bKdI8jp4CI/VLOZtHCo8eJB2XITrwJTHe7ZyoDPfq1o0MOkAixUcIg5?= =?Windows-1252?Q?Won/xjjyK7JH0IMZza7b+QBpNV8RDfSMRI3+JcIEsNq4aM5jHm0NJZDe?= =?Windows-1252?Q?AUhjI/0/Zsl2S+JOaEWMG30Zbk47sGe4CjR+qdbUylOCCXhNCNkTpd1s?= =?Windows-1252?Q?iPL+KVCjpwjtfiySO6sM62lGjTOjw8nqELT70Jp3UM4rQF8TtbRRxc2j?= =?Windows-1252?Q?XY7YpLomVoImW6sgDiT7XDR1UdqTszUq4n4+ZqaPBW+HI4gu5lYFfpd0?= =?Windows-1252?Q?VarOxPPC8nB1bRJVjrZOI7TL78YsDULl3UgQKPXW6o6Fkf44OmlAP+mc?= =?Windows-1252?Q?ZazGyD17Z1NgNqQHy9sxcQkGkVo5atTt5nAWRyqXQMkhQ4bBX2/0yljS?= =?Windows-1252?Q?/OEtC3TUMAVwQ119OC1ut+bk6wqZuCAs22IBlbXbxNnaoJXcgrweS9Zh?= =?Windows-1252?Q?Zte8/gk/G+rsbbGYw6VTLDrFfporZob089eaEH3Ou9QVTVU5XAZ//1s8?= =?Windows-1252?Q?3Qh4fmKb5ROXZnNlG7cDkauGhx99UWr+yeMC3JgozeKDx1c3GaNyIbou?= =?Windows-1252?Q?XgZ/V+Oi3G0hAZCKCkPSuf3oJfxp7hVCoXTiHUK2NdM6ATwkFjCvHUV2?= =?Windows-1252?Q?3BQpA7lgH8f6jQEg0IU9S4JXN1B146DGrKpYzAZQMsW+gOy0yxgZYtEl?= =?Windows-1252?Q?eWcoRrwIT5qbKyAez1MpDtpGK/g0cyUI6vnG1bmrzY3Qblwfawz4Gv1m?= =?Windows-1252?Q?AQs+j7CcC9/HEVeAs1IQ9Wfqjd8GnDkti4V/MDpSTvJ17fVi+q3DSxO2?= =?Windows-1252?Q?B4whr4PkQSgyBSwxg+WB6ClYpMxiguJj9nRzGc+8LDA1zIEwhXckYiGC?= =?Windows-1252?Q?sF6Xr01aOT+n5FmbxJxuMjiygO6g+DL/Sr4=3D?= Content-Type: multipart/alternative; boundary="_000_LV8PR15MB64884DBF4B23F939D161EB14D6ED2LV8PR15MB6488namp_" MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: RhEUNMo10fjL2EtCAehE8nfr9d+SUnwa1JzQGu6JJcmSdXTDIp+yjkUGksuwKmzI9duIkewGDU6WXvgS1G7Qu2RsCxqKgX6sAhPef/2qDC70eKL/pvOgNeX+Bj4tCQYB9WoFi8+MCDLLu0fbgjhvn44orqnz+11IEqHr1ZfAg4rYxfu0elVvAb3GCCGPyk9FWf3/wg+ATvCOL/uHREc3XSv/Q7SK8w9k2TbsRCb+7KQ35g5iAgU4sl1A9d/+sHMTVJ+agNwrLb55zXCl/gWGeGVPMYJ9cyZDSNKO9lfEz8mbiMe9ZWjALIDb1OIwBxR2BI5sAK1Cy2WaCtcUQI9DiA== X-OriginatorOrg: ibm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LV8PR15MB6488.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a26145cd-307d-48b7-8ec4-08ded1e6b918 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2026 11:50:01.1106 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fcf67057-50c9-4ad4-98f3-ffca64add9e9 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EMefJqeALg/uS4hvgQ4Kf9A8LN+HhyYe+2f/DmyylD20IaAP1wJVWqzBUO4PEjWcvRZxmOqe7NoKlc+9Vt0O/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR15MB6277 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Authority-Analysis: v=2.4 cv=I4VVgtgg c=1 sm=1 tr=0 ts=6a3bc46b cx=c_pps a=mi0BVYrBcfLCPOxFm7cYqw==:117 a=z/mQ4Ysz8XfWz/Q5cLBRGdckG28=:19 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=xqWC_Br6kY4A:10 a=FelO9ux0wxsA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=uAbxVGIbfxUO_5tXvNgY:22 a=absV2vrSvE46RtJDSi0A:9 a=pILNOxqGKmIA:10 a=T9ELUpXi8Ly5dDA-:21 a=_W_S_7VecoQA:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjI0MDA5NyBTYWx0ZWRfX5xyLVWD2dp6p TyAfX2v2JzKdcOHSB8dIloEmQ31xFRPmOOL3xXi59YOktZX9Wn18AMtSEBUrJf/yRgwCJPZFq2/ KCYg2ptcYRPMHm11liRvhyJiCX41A4W2peyqw/bqNGiYb/CQxc9dW3oQj7EL8tt9Yg3VgfHN8hF 9b223SeIeW9xdyv9Eap1YAyiRoF35/jdZeREIpRLDypNfTaCy/AxOiW/qz9rEfp5wcY3vkFMQAW nO+L7dXA+mAu8NdX7tOttmlbZPHreOCZyqaK9bmrEVlCeurbQb3LJ89tNNotISS8bKQuB4u5998 2ZA9eBjCoP+MQt3+2HNHdCXn/6F05bILn+tM/BGhXJnlzuCaDhW/7JbkG63YWqRQG5seDbdfDdn wIRjCp9CCnalKQ4EYZ+jYGPQS/42LxMe66anJgpVl4Lh8cyLOJGDb5gbSx8rWce6Taf/dF2zxWE 2XJR5mvBa9rRkBl+6+w== X-Proofpoint-GUID: GkUncaVNitST18jUT_STEWGvVHzsqRDm X-Proofpoint-ORIG-GUID: nXoqtZvNm5wIydagUTf1si0HadK8BiFT X-Proofpoint-Spam-Info: AW1haW4tMjYwNjI0MDA5NyBTYWx0ZWRfX6yrDnSyszy4D GQ76hF5hlakSxysNqu/Mw9xsP8CtCcq34IQp4EL6i7go9g7jYPbeO9lJ4e4RJm7+//U2r7of6Q5 GmUce6csW3fmRQGXvDrpw3nMw3W0OBE= Subject: RE: [PATCH] Fix crash in AIX when current working directory is NULL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-24_03,2026-06-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 clxscore=1011 impostorscore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606240097 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org --_000_LV8PR15MB64884DBF4B23F939D161EB14D6ED2LV8PR15MB6488namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Keith, Thank you for your review. >Thank you for the patch. I can confirm that this is independent of >architecture/OS. On x86_64 Fedora 43, we can also demonstrate the issue: >Is it >possible to write a test for this? >I apologize for being pedantic, but this is more accurately described as >a (abort due to a) std::logic_error. >Typo "predicissor". Did you mean "predecessor?=94 >Typo =93After" >Please use "nullptr" instead. Sure. I will fix all the typos and make a small test case in v2 of this pat= ch [in gdb.base test suite]. Will be changing the heading as well since thi= s is a problem in many other targets. But I have one question below before I send a v2 of this patch. >While this fix does catch this one specific place, I wonder if this bug >lurks elsewhere. For example, in main.c, when getcwd() is called and >returns NULL, gdb warns the user and leaves current_directory as NULL. >Changing that so that current_directory isn't NULL also fixes this >problem and could prevent(?) other similar problems. Of course, that >kind of change could introduce some sort of API semantic inconsistencies >with current_directory which likely would require more (invasive) >changes. I did test other places where getcwd () is used. But the only thing is it i= s not causing any crash. I could not produce a similar issue when getcwd ()= is not able to get the current directory for any reason due to other files= using getcwd(). What do you think is the best thing we can do? Should we then change the ma= in.c file as well to handle getcwd () failing to make it uniform everywhere= in GDB wherever possible since we are thinking there will be a way by whic= h one can run into similar issue due to the same? Kindly let me know. Have a nice day ahead. Thanks and regards, Aditya. --_000_LV8PR15MB64884DBF4B23F939D161EB14D6ED2LV8PR15MB6488namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hi Keith,

Thank you for your review.

>Thank you for the patch. I can confirm that this is independent of
>architecture/OS. On x86_64 Fedora 43, we can also demonstrate the issue= :
>Is it
>possible to write a test for this?
>I apologize for being pedantic, but this is more accurately described a= s
>a (abort due to a) std::logic_error.
>Typo "predicissor". Did you mean "predecessor?=94
>Typo =93After"
>Please use "nullptr" instead.

Sure. I will fix all the typos and make a small test case in v2 of this pat= ch [in gdb.base test suite]. Will be changing the heading as well since thi= s is a problem in many other targets.

But I have one question below before I send a v2 of this patch.

>While this fix does catch this one specific place, I wonder if this bug=
>lurks elsewhere. For example, in main.c, when getcwd() is called and >returns NULL, gdb warns the user and leaves current_directory as NULL.<= br> >Changing that so that current_directory isn't NULL also fixes this
>problem and could prevent(?) other similar problems. Of course, that >kind of change could introduce some sort of API semantic inconsistencie= s
>with current_directory which likely would require more (invasive)
>changes.

I did test other places where getcwd () is used. But the only thing is it i= s not causing any crash. I could not produce a similar issue when getcwd ()= is not able to get the current directory for any reason due to other files= using getcwd(). 

What do you think is the best thing we can do? Should we then change the ma= in.c file as well to handle getcwd () failing to make it uniform everywhere= in GDB wherever possible since we are thinking there will be a way by whic= h one can run into similar issue due to the same?

Kindly let me know. Have a nice day ahead.

Thanks and regards,
Aditya.
--_000_LV8PR15MB64884DBF4B23F939D161EB14D6ED2LV8PR15MB6488namp_--