From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id y7pMHtMBZ2omtS8AWB0awg (envelope-from ) for ; Mon, 27 Jul 2026 02:59:31 -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=ig/1h6PH; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 68DE11E09E; Mon, 27 Jul 2026 02:59:31 -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=unavailable 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 376571E099 for ; Mon, 27 Jul 2026 02:59:29 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1E7EE4BA2E2E for ; Mon, 27 Jul 2026 06:59:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E7EE4BA2E2E 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=ig/1h6PH Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 3C4554BA5435 for ; Mon, 27 Jul 2026 06:49:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C4554BA5435 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 3C4554BA5435 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=1785134943; cv=fail; b=qYFifSSm3z/P3nJDzydKY1PDJJ8v6zKvEtDMNzcKdhbQ3rokzeFYarkrTIzqrUGwyCXlmfMTSBgFRvbfmoZIXttDJvQBuaqASfrJFUJ+ZVhKfqLYNr+dD0SoLy2x5LZTq+XdT0hgtPSuTPYU8/a38Mb7fy3eAQ53SjT0vaQ0724= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1785134943; c=relaxed/simple; bh=Bk2b0iT/YSuv1cFBe6Q7+bxDjZ5zpQV0lz1cRQOIhrs=; h=DKIM-Signature:From:To:Date:Message-ID:MIME-Version:Subject; b=OXzs7sZfIZGv6OfI65WtM3rjH6MT05uolofcRlOFgFqUxfXEoCDOjgQzdSOhp7orEW6zv01+V3/LItGZayZ5dn2jfIR+mR9kboocSBRzqhYnsN8v8vp3IUP36sLOm8P/4sIP/lSaB4mM80XOZZOhrau/knAMGQx96nBaUylh+4o= 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=ig/1h6PH DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C4554BA5435 Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66R1li0E891631; Mon, 27 Jul 2026 06:49:00 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=c3lmb/gbZo78CEHshvftb46Af/a+EE FzVdqWlD/eNMY=; b=ig/1h6PHRM9AT71exXkVIfD/R48HDPLjxdqbgvrEyZGEVi SyPcgA14YQdNWYRuVukB9u/IrLoIVD9MYddBp4X6ZtIBLXU+o+/3S/fq9cZ29nns 5Rt1GJ3lsUp/PZ0Xs05Blj8DVkvZLXEObCajydHQexLHW8ukCC4Mxt9PVQV8f6Ya +0elKgcyxQTKi/CFGdyTWFA1v1ees1lvGVY/DgCaCPn6evB1CzrE+NqTK0Ezy/BI 9KDudr191kAzEaPbrf1j85BC9TFF62VHVFqaLjcxfGT/XDD1DpvClohgNQr9mLyy /Gr9g8VIrBRh3xcF7Aa4HQWqpHwo7HgPXW81SA9w== Received: from mw6pr02cu001.outbound.protection.outlook.com (mail-westus2azon11012001.outbound.protection.outlook.com [52.101.48.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4fmv0xej45-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 27 Jul 2026 06:48:59 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Nauaa6+4Q2Z1+dxz0hBlAnbxt5gQE63KYWPNUfDDneuUeBr0HH6akeT34WVYfAKy2K04oEL+PZBvEeZ/xRctWcmWBlLmvfdBqd1FEfDQuNzyQne8/DD6RgpNgKOoy5s4DipHr5BPF/SlqL81bmQ6tbz072hAiOhtmq1s7b9WRYfHgBdt22eoYJIqJjSPhZwwZlinVHBk51CmbOvCVsMyuZzRhNOW38YV2a0Zd2Rwyye8iKcUDsabtASrcqesS5fey8u7W7VwsLNSkptvMpExntkTLfnxhot2y28IjfM07f7WDs2FH9nOLYA/dJlcwiBsMkC8yawcmfCnXL9goBKY4A== 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=c3lmb/gbZo78CEHshvftb46Af/a+EEFzVdqWlD/eNMY=; b=o9ILaCL5KiI6GxtEBAHE7VWRSzISNH4UtDtrq90ijvsbwfW+15IEPyxhOhLTfV2PmHExwF3B6jH3UfNFrLwnGO0y6lrbmS1T2mq/h2mgA5e5Fv+ckmL8Czvxmjt5o4DCrjr5z9kCxm0ncE2xNiyKLaTHV+6yTabOgOiy+D7++2snC+3B/hbwJcb34FAqqJ9d3XFvuUaqkfhKvXIbP4NUdhV9ly9oKv1m79wf+YoKk4f7PurHTiRcDwAbLqxHJLxL7n8hgebHPzECrWRPO1F4KLYBKmOHJzCEy7+r3cZCmovhc+LintWjqhP92kuLhsrqKxl0tl9KjUOQDTlbDa6KFg== 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 PH0PR15MB7099.namprd15.prod.outlook.com (2603:10b6:510:39a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.10; Mon, 27 Jul 2026 06:48:57 +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.0245.012; Mon, 27 Jul 2026 06:48:57 +0000 From: Aditya Kamath To: Tom Tromey , Aditya Vidyadhar Kamath CC: Ulrich Weigand , "simon.marchi@polymtl.ca" , "tom@tromey.com" , "gdb-patches@sourceware.org" , SANGAMESH MALLAYYA , PRAJWAL B MEHENDARKAR Thread-Topic: [EXTERNAL] Re: [PATCH v5] Fix crash in AIX when current working directory is NULL Thread-Index: AQHdG2/k3HE4RSRi0k6A1UoXcalZ2raA7mbs Date: Mon, 27 Jul 2026 06:48:57 +0000 Message-ID: References: <20260723072131.35657-2-akamath996@gmail.com> <87cxwcr03m.fsf@tromey.com> In-Reply-To: <87cxwcr03m.fsf@tromey.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_|PH0PR15MB7099:EE_ x-ms-office365-filtering-correlation-id: 2831cbce-18c9-4037-bb33-08deebab21fd x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|23010399003|1800799024|366016|376014|38070700021|4143699003|22082099003|11063799006|56012099006|10067099003|8096899003|18002099003; x-microsoft-antispam-message-info: NEY4rqcNQK99DnQXFnLqjSPbsjKzj0EfkEc2UROlDHxzybUdzw1Z+Pk9FLqkkAz6n6TOIptoPQWNHofdipvli9GTkNov6nqz/0j4ypYeTPSDGmUYg7ap/M/RbR/YgpUPXIyYKRVDI9WVPTnEdAS7Vj/WVzvVuVYQiqpXxjwB7MLQIxzvX3z2408X/YumNyDttlX2YtqAPnnyHEyqyKjoRq2i3ppS6FqQ7cqIM2f8uszqxy1wtdpxbtU8PS6Z81u9BLff5s/wLT9StFVoQQqdV5L8UpODBTY+PNsIl1rfA4d1v/aEtZYH0nJ56xilyoFkzGKhkskVI8UoPACogA04Ua2v7ED5AUgjXTrOOjH7hZEFvC8gAzE9pp5O7Q/r1my+uD/PPPp2XSZFvlvnY1xxm5hVa7zsGsdbSkHyr9FpeT9ys+OUQVHUn7PuRbvTrWs9r8EBWVZxixelG/J/ptm6RLQWN//6dyFxQFEGkndJr4nHgGsi0Qg4D3MyT6DJsJZao8vsTcc9bxXbqo0zETOkxm0WHCLbDjDATokuKzKxgP5Iy447FMtehU0ti+46cuzTXGnScxr+VZmGiFaADrx4CZ/s4YR3q0/96/7WerF0mhHog7dlXjG22JTNt2NKC7Z/Ap+i1nVdlLVao/q8m+cmigxwo5lcGSngCdzUeR8ynXMIK4rgBsCJ22CAH6tyBxt8g8dD+l84NrtT/b7fWYPEUT3Wd9sl3SxPcEWd+FrcQhQ= 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)(1800799024)(366016)(376014)(38070700021)(4143699003)(22082099003)(11063799006)(56012099006)(10067099003)(8096899003)(18002099003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XnKywRmOWbaBG0159JrFewfru417RzOzzjzSo/8qI8NsFCdpY+YX7GmyM0pP?= =?us-ascii?Q?5L41+pRhh8nBy+19fB9kfQAi29XStl/BvKp5IjqpX0eqpMm6VqguArolGIYK?= =?us-ascii?Q?JfasGj/P++xvoePIiSDebxhKlPHv+sP1eptdRFCmIjuSmtm8TVyYnWkKRU95?= =?us-ascii?Q?v7ZUKd9SyJ6E2OYrpVVCfHhSXgKvO/WoxPIEtYEL4aLE04KeHrolhtjo/sJl?= =?us-ascii?Q?+mqVO5sw26Sii+r90LoKxUkXq1YOWzYT8I+xK3SmVQDCVt7tQ+87tndta+if?= =?us-ascii?Q?jABp0w4YqSr00gTxIJZX4q5oAwLUazmJcSiEiCzVGXvpUNxz1eokHoow6FzR?= =?us-ascii?Q?DSK8Pj7SzFHxR8jt6Y9IYxZBaAX7bb4cvrOPLkNneQfdV+bdrBqrUPjWdnMj?= =?us-ascii?Q?jU8CIT2jbXAl1RyVXh0ECZcg9/1BGAQBcfdLPtuohrdO6Bkfp0p5iu7pKnqZ?= =?us-ascii?Q?muHGp/wDEFPWGE9uNUE6itux2HUYFqloc2GSti5oOqcoab/cZpa4dRfJJaW3?= =?us-ascii?Q?P36nOc6/5laxLq3q3aks4Xo/eF62OvOwSo3rZ8UQNdeuiAMUAfpha3fZii6+?= =?us-ascii?Q?Xm3R+VtWNDekmZzauMirG1e+nvV+mC1amFWU5cRzyGVbY8pa7+KeRSa+Xw5g?= =?us-ascii?Q?fv2f8gPyevFBlrqQ+U3UEPYHVyH+Hkeclh2i6L2ZVbQrE9CwyI2foysnYtnd?= =?us-ascii?Q?Nu+QSpRvuiQQBJq5M+MX4lWHaB4Q3sryM62N3EtQ+3ot3w/PqjXZh8zNNk3Y?= =?us-ascii?Q?pOoBoagPPOZajXBG5A5SLd6fwmBVld/GpKq1zRteoHRG2c02oMKCYsXbYCNY?= =?us-ascii?Q?r2CQdHgKgOkdmres6z9xMJ/Dco/YSPmSdlXfDLhA0g7vIbZAj7R25qrPRB1c?= =?us-ascii?Q?adEt7em+hfC3mze743OOVogK4BMAqmRkIlmrI8yNmilCDluE2vHMx04MG6TY?= =?us-ascii?Q?1X48q9BBQ7glqv7DM68OiCgvnNl0XidK1ggtPe62aJDlQq4ZA7GDos+JyzEu?= =?us-ascii?Q?FcFLIMJAmmAy1kkCcui//3yzqsEaj4v96/q5OVAlsmoEwyhDkMlMPlQIBIMi?= =?us-ascii?Q?fJvC3waiq0Lu05+/YR1F5h10o0WdAQIfsDudmoXkPIi0UxpFQb9L7HBCNWv2?= =?us-ascii?Q?jDWQ5OJmVjingr7GF+oqfVSOPiZrMZ2EtPxt5jONnt7avDDq+0IyBoXW5KNi?= =?us-ascii?Q?O8WBYx8MXfpa0oTxPqx4/fMP76yg7/9vNoqzlfKMoWOSZyIPwFk+buliZgC2?= =?us-ascii?Q?xPT9iTv5Erl45W9BmRxDDLRW8CPbJFu6rDwy7+Dv5cJgT59gdisUOgHY9ORh?= =?us-ascii?Q?6ng7iDPeL7Nyok/yMs6LviZm9VOvnxdN/ENxtFdZvFIXlggv80VEs2GG93pK?= =?us-ascii?Q?1xVoBhYk6HFVK3Y/dAiGmR//crhgX+wEDggZrdjCUvfI/wAQYiB4QtjRVYta?= =?us-ascii?Q?vmegRJnsQtiXmsWMAG6e1L80Wu9yClAQsLTSLWmsoLcrsRg7GAE84cpfZG1C?= =?us-ascii?Q?plaYKCqdpgPxrCZV3kKM8TWFqBY3kva4U5A0tvBkFfaOLyySJj/Lar2Io0tg?= =?us-ascii?Q?vIAs25UGY1sFXOauw2fnfwkkF+oskBgG/eeb+LH2BeUGkQXYyrHMytC68lbb?= =?us-ascii?Q?lj3j+tRLXtFF4gwtO5qoCIp9Xwe4SwXX9UAXugdJQfIPiyJU4NV4gk/rFsVv?= =?us-ascii?Q?jhGA0YkokPrqlkFl4L4+Rq69kl5f4yKQ7W6H2bLqBqguFvAzld/Ilo+c7cNL?= =?us-ascii?Q?dWOjUOjuSauREXi50yCTo/mf0Fz5Mqs=3D?= Content-Type: multipart/alternative; boundary="_000_LV8PR15MB6488C918DB3732AB272DF2C5D6CC2LV8PR15MB6488namp_" MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: Q2dzjT/5purpEFwC3CYGbJ2H3TKUMFJdfyC/KWgwDJql3ErVPa4S9dJ2PLzmUwvs3adp385j7qVo3joLmt+wi28Ngc+GcEfuaYOmIhzj3oXACLJ8UXlhW9du256apFZ67aYX/1k1IeYEC/u8sxX7/GtH7Z/Yp+ROr1mTxdpLGwD7emez+2ZE9yjKonZDcKrnBrayX7qqiKgzl7K4j1tDXHx4XE1ZNKxlmOG9GUlYQLYEy18GdW3D+oumiYr81PkcRclMncnk0JnnKOx4ANj/7yFHLH81mcqOqMLIKTsRg4Dymamnki1W1OA1BRpZrIS9xFf5rohmx/OLFABPSrsccA== 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: 2831cbce-18c9-4037-bb33-08deebab21fd X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2026 06:48:57.5111 (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: ZZa+owVn2K/0x++3YEVp+IbrR96Jje6AlKCJiXhxJZfJ/gsgK2F4AU/5iKOP7IgYTbEn9NdLOXQpFHPXhssIow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR15MB7099 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-GUID: vpjJh1_cE9PrYMDoH2axPr0bt2zYDpZl X-Proofpoint-ORIG-GUID: uEWVAryAS_Oc62UMztoVFB9o-YAjwhRa X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI3MDA2NiBTYWx0ZWRfX0AQD4TtQOE8w +ybDXWyNIoEzAw+Usa9VHlsMNl3GFF49xmQUe9FWQkeXa1Zi0aDC1XZ3/FElcj9Ql2XkV/mx+9q 2+m7FtMt9Oy93M8SMjAsRLmoLXKIJxE= X-Authority-Analysis: v=2.4 cv=dYuwG3Xe c=1 sm=1 tr=0 ts=6a66ff5b cx=c_pps a=qHyJGWWDR7+eWeZXJqH6eg==:117 a=z/mQ4Ysz8XfWz/Q5cLBRGdckG28=:19 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=xqWC_Br6kY4A:10 a=RAioF0-LDSMA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=U7nrCbtTmkRpXpFmAIza:22 a=vENY7j-2oA1T03p8x8kA:9 a=CjuIK1q_8ugA:10 a=tExgVHWxNvRQf1ey:21 a=_W_S_7VecoQA:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI3MDA2NiBTYWx0ZWRfX9YEiKykFCBts S417H52kVah302bJubnw1NV+tbuudpc0fh+KGrByNeVIqJg/vE5mUgovcGrs71fPMOP/GE0jkdU Ym3R5WtFiqsn/jMgVFmemqKpOKNs2ipHGb6TS43nMdsngHuNhHHDOQTWaMCu7O/Wdif5axHEJQf ETQdyA//2K6JLpsVGRZQtf/vnoMJ/xTeHsf/5z/Orpzt4clQvPCsUkXx/CrFGvdjGJGew6rIRQN sjO3o1Xtg6Gzl4YR/SDqM1Q/BzlnbIDLnbIMNF8Mbw5nJpx4Zik4hwyDBzAhcJ6sBZeNNcF/btO Nb9FlgVXmZdXUqhD0J3YedXBVDuJOle9w1opM2yMmEpXpbRMVHTWZ+5V5TxYshS7Zvpgz3dJO7u mIEnNTh63zSgAaLyPrtbQWvt82er64HhGCcitKlzJ2djPallprIxLEX50Dk1XdWmCz5Z9oEVo7u zFX+RENQHCNl01GZapQ== Subject: RE: [PATCH v5] 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.134,FMLib:17.12.100.49 definitions=2026-07-27_01,2026-07-24_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 clxscore=1015 phishscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607270066 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_LV8PR15MB6488C918DB3732AB272DF2C5D6CC2LV8PR15MB6488namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Tom, Ulrich and community members, >execing gdb seems problematic, for instance with a cross build gdb won't >be the same host architecture as this test program. >Is it not possible to start gdb, change its directory, and then remove >the working directory from the .exp file? The reason I could not do it in a simple .exp file is AIX is protecting the= current working directory when I try to delete. It says the requested resource is busy. So, I had to write a C code the fork () and child will delete the current w= orking directory to mimic another terminal deleting the current working dir= ectory. Then from the parent exec gdb with a binary having dwarf symbols to reprodu= ce the crash. For example: bash-5.3# mkdir gdb_test bash-5.3# cd gdb_test bash-5.3# pwd /tmp/gdb_test bash-5.3# bash-5.3# rm -rf ../* rm: cannot remove '../gdb_test': The requested resource is busy. bash-5.3# This is the issue. We need to find a way to mimic someone deleting the cwd = from another terminal in one test case. In the .exp file from what I know w= e cannot find a way to delete the current working directory and still start= GDB from the deleted directory. Let me know if I am wrong here. Thanks and regards, Aditya. --_000_LV8PR15MB6488C918DB3732AB272DF2C5D6CC2LV8PR15MB6488namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi Tom, Ulrich and community members,


>execing gdb seems problematic, for instance with a cross build gdb won'= t
>be the same host architecture as this test program.

>Is it not possible to start gdb, change its directory, and then remove<= br> >the working directory from the .exp file?

The reason I could n= ot do it in a simple .exp file is AIX is protecting the current working
directory when I try to delete.  It says the requested r= esource is busy.

So, I had to write a C code the fork () and child will delete= the current working directory to mimic another terminal deleting the curre= nt working directory.

Then from the pare= nt exec gdb with a binary having dwarf symbols to reprod= uce the crash.

For example:

bash-5.3# mkdir gdb_test
bash-5.3# cd gdb_test
bash-5.3# pwd
/tmp/gdb_test
bash-5.3# 
bash-5.3# rm -rf ../*
rm: cannot remove '../gdb_test': The requested resource is busy.

bash-5.3# 

This is the issue. We need to find a way to mimic someone deleting the cwd = from another terminal in one test case. In the .exp file from what I know w= e cannot find a way to delete the current working directory and still start= GDB from the deleted directory. Let me know if I am wrong here.

Thanks and regards,
Aditya.
--_000_LV8PR15MB6488C918DB3732AB272DF2C5D6CC2LV8PR15MB6488namp_--