delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/11/19/10:09:35

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E80F385AC38
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1637334573;
bh=96cpCtszSj0bn33R9vMYe7UxhiLbXBEVwb3vUf8LQ9Q=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:Cc:From;
b=U9MZQRwoLx42wqGzvdKDeD5TwTN1mtgUf4wRMdKs06N6te4BzuTy5PtFbUhVPKD48
0zb/UIy5r/0YK7jxrWVwyeJW29Fi90HDNmor4PvwYgOgea4+bVGBNNxqiMjhPKfD2Y
Uc4USiGZzKQOeT7hmDGizBkb3z4lj0SViCsuiQDc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 39F9B385800C
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=IoKzs3yRpVBViL72odSlEZZZn4fxcPwXlRrerhQinaApXbB91zkeqRmoTuKzHrLCiMvrymBz0KBiQY4ZYxKYpOYLAj1XPls4Vj7DO8FkqHsWcza1cSJ/E5fPobJlCft/RuIOK3zVh/ILr/N0zpFRSNWBrtrmI1Rj9upWahTpt9QhHrSs9QzcuCI82g4b3gNLddJyTdyhhsLFr92o3dA/bY7IQ6eq2pCxgUwgX4HCQm5tOIQT4UMSCc8eAr1SxeNHKkrb4rPCAfYXfRDvgj3eztNk0VYw+ONFTvubTzcNa9pwPEB+8UaoUJHnVpflSVykbNLZXhqiroeMRz3RiPJ6yw==
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=UGvkLYyF1Hob07w6fEI7ZPgJIq4FaahnoP3IyFRc+js=;
b=ZU0h6y0IauICP9Mc1AEti4pVjlC/5PNVXCQFH42rwP28sMW184J7LKGIZOuv24WkK3OO37Dl58PXltZGU9SP/GX0Q028L89x7FU3AHmz/GJeDrOVbY3PogsytvG80QFtAqY1XBS4zuNXp58wtB+JdMmRLOR9o+8bdJ2S8/uKLKhIFPzR9IWvKb0M6qG7ekJkXG5np8lwMjiH61BHADJlMrqN58+OmsVg/UZ7CdJOndrzC0Q59XrgHQPfFMBmyjTWaoaGgTTX0+XYxEgxoqN3m8MMASKSMWkHpGhPT4jJAt+7nWMDRFJRdWX5dBshEP3ebUXNEtK4GU1ovZ0U6CURJw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is
66.109.88.133) smtp.rcpttodomain=cygwin.com smtp.mailfrom=flightsafety.com;
dmarc=pass (p=none sp=none pct=100) action=none header.from=flightsafety.com;
dkim=none (message not signed); arc=none
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 66.109.88.133)
smtp.mailfrom=flightsafety.com; dkim=none (message not signed)
header.d=none;dmarc=pass action=none header.from=flightsafety.com;
Received-SPF: Pass (protection.outlook.com: domain of flightsafety.com
designates 66.109.88.133 as permitted sender)
receiver=protection.outlook.com; client-ip=66.109.88.133;
helo=p0001ws0011.flightsafety.com;
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: gdb symbolic link bug
Thread-Topic: gdb symbolic link bug
Thread-Index: AdfdVYS9DxwKQIilSwuHZ6qYvWdnmg==
Date: Fri, 19 Nov 2021 15:08:54 +0000
Message-ID: <7260a5386b514d2c83db0e6bfa431f5c@v0001wsxm02.flightsafety.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [198.51.28.164]
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: a016a9e2-0038-40ea-8309-08d9ab6e8308
X-MS-TrafficTypeDiagnostic: SA0PR18MB3661:
X-Microsoft-Antispam-PRVS: <SA0PR18MB366153A3AAA5410FFAA32F729E9C9 AT SA0PR18MB3661 DOT namprd18 DOT prod DOT outlook DOT com>
FSI-ETR-Processed: True
X-MS-Oob-TLC-OOBClassifiers: OLM:8273;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 5JBoC7/c0kryxx6+1p1/UDSlQ01eLHwsHvFpN+JHRslfD1Y5XZX2Pwq72btL+sQS2riIYx9ilu6VyoS1f+kUTVHD72nVEPK7ku7tcq8DLe6lupuu/ynQPxwDJkdD0VfzwFd1iAd8BdWGkOAEnHAyyOQO2eJLfEmTu9tARnMNERwRX76hTQSGw2dKbbjtj2HYTT7P4I12girFUeoQIp0r/44nbREd03E0h2HbWgH6GDN53SgPQDKuxjcJTZ//djgZM7gD9OBA5b2MA+tQDfgPrTq5MgFwObRCtSMbWelb3Nt76wCVveKLGOTQh9deT+WPpxRC82UaDpP4CVWh5nTxu3nzprlgHSS8qr3OPe5P5LnyWlkSi3EB9E79KYG7jC5Y77neXXYiVj2og9DU7OJA4RpPv75Cj6AhlkOEA2KN2o6SxNBRR8Y9tYb9+epomNV+O7qJaVTXq5JamqwyHd2G/hMsWW81itI2WDvDmJ/AGNbIBKu8rBB3otOzlytI8TRYFcUUmAbo8rr4fgxLT6hZq3iWqCJMnpT+6NNiGSBExa7cOu1Z1WMjCkGxirD82S/gXXpzTSV5zKnUog1H6Nq4EYzctiIxwK7ejHy6RfhgVoOcqoaLQEYZH7a9E1eq4rIDwt0ruMIVK8c2IZ5Furqyli3HAH3wmPFJU/mp0Ffj93O6DjHXqH7nYmHV7rtt043u+gZygCPCFHN6WGBLqKhBjOorWh6W6snilGa8qhHMLJU3o/NaIpfSfEmGxHkOPKfBdGGKOAmmGnwiN/Zl1ygS91U+BqA/DBpnjladXXTnIKUpf2uuFQlhHrFr06NO6+GAaPOs7x3HXlxphXkeYnSRqtpoiXtwNj4k06En9BqLZNE=
X-Forefront-Antispam-Report: CIP:66.109.88.133; CTRY:US; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:p0001ws0011.flightsafety.com;
PTR:autodiscover.flightsafety.com; CAT:NONE;
SFS:(46966006)(36840700001)(7636003)(47076005)(186003)(8936002)(5660300002)(36860700001)(316002)(2906002)(3480700007)(6916009)(8676002)(55016002)(4326008)(19627235002)(83380400001)(7696005)(107886003)(356005)(426003)(508600001)(86362001)(82310400003)(70206006)(24736004)(336012)(108616005)(26005)(70586007)(2004002)(460985005)(2480315003);
DIR:OUT; SFP:1102;
X-OriginatorOrg: flightsafety.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2021 15:08:58.0292 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: a016a9e2-0038-40ea-8309-08d9ab6e8308
X-MS-Exchange-CrossTenant-Id: c0d82d4f-efb5-4250-96cf-e78be292a6d0
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c0d82d4f-efb5-4250-96cf-e78be292a6d0; Ip=[66.109.88.133];
Helo=[p0001ws0011.flightsafety.com]
X-MS-Exchange-CrossTenant-AuthSource: MW2NAM10FT008.eop-nam10.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR18MB3661
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, KAM_SHORT,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "Carter, Mark Andrew \(Andy\) via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Carter, Mark Andrew \(Andy\)" <andy DOT carter AT flightsafety DOT com>
Cc: "Hortenstine, John" <john DOT hortenstine AT flightsafety DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Gdb will not run an executable when it is a symbolic link in the post Cygwin release 3.1.5 form.  As seen below I am currently running Cygwin 3.1.7.  I have confirmed this is due to the change of the "ln -s" implementation.  Links created by Cygwin 2.8 and 3.1.0 work with this gdb version, and links created with Cygwin 3.1.7 do not work with gdb from Cygwin release 2.8.  The following capture demonstrates the issue.  Note the workaround using readlink!

$ uname -a
CYGWIN_NT-10.0 P1163-8573-10 3.1.7(0.340/5/3) 2020-08-22 17:48 x86_64 Cygwin

$ ls -l vital.exe
lrwxrwxrwx 1 p00002737 Domain Users 18 Oct 19 06:59 vital.exe -> ../vital/vital.exe

$ gdb vital.exe
GNU gdb (GDB) (Cygwin 8.2.1-1) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from vital.exe...done.
(gdb) r
Starting program: /home/p00002737/vital/tap/vital.exe
Error creating process /home/p00002737/vital/tap/vital.exe, (error 1920).
(gdb) quit

$ gdb `readlink vital.exe`
GNU gdb (GDB) (Cygwin 8.2.1-1) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../vital/vital.exe...done.
(gdb) r
Starting program: /home/p00002737/vital/vital/vital.exe
[New Thread 54032.0xc1e8]
[New Thread 54032.0x10e4]
[New Thread 54032.0xdee8]
[New Thread 54032.0xcd20]
[New Thread 54032.0x8e60]
[New Thread 54032.0xc378]

Thread 6 received signal SIGINT, Interrupt.
[Switching to Thread 54032.0xc378]
0x00007fff3b4b5a03 in TlsGetValue () from /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
(gdb)

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019