delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/08/18:07:44

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6120A3856DC7
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1657318062;
bh=o0+PyARWBaGDkqCW4Is+9JQvC0g8uC1DJ2uDFQYAl6M=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=sjj4FUJuUa84DX8OEumKfB83LkhaCuOuHMMVV68u/UbxZnUcDY2zhgW1MhdcJfmgo
rqUpt+6xU7K3LCYynnDC+IgOGC4Mf70alRGWd9YdrRwNJGQUsmqm9S7njpQ+CFezyY
zayc6bBxCgjCQAhNsYw79c7FCIEPcJ4FgxBBEmDI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EAA0F3858406
X-SBRS-Extended: Low
X-IronPortListener: ces-out
X-IronPort-AV: E=Sophos;i="5.92,256,1650945600"; d="scan'208";a="357733285"
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=OawbHSjIgqJxoFVMxhi5cFXqv6JiBhn9ffDH2Y9utPcjLsw6swth1Cy1/KcvCvy5XVI4ZTjsxtH1trTbPTbRwS7QuBbq0Fzz1K4Jk+5WPKJag0Lyc5ShWWrVUKSeohWu1GPAE1rn3zmPeGLHO4r6e5nm8rk5YiwX1hpBeWU5jhzpNE2ZxdXQbKmogHluiyy52VWRZkZ2/aFyBdG/2AmVCwtJM9FfM6feUq+lVGwLBr2YmIl8XT8oaxw+QHO+keh3TWQ0omx0Jc0/a7gT3ngYQFKmrzNdu+z1VY+OQMVRfiFXf+3wr7uUKWxASpDQraYYHr0v1eEbG+H1a0NkGR/M9Q==
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=PF+Y57JO2b8Hggq01bcTJCGuNsGVtGi/pTQ31mo1hq0=;
b=WTksjyo8Qychcb/VOGoWWK6IqYKip6stszyhRAR5a0C+2Z66V0qgc7A1YePDGDLTROvZx5etOGLXkVTw+BIFIOQa9umbSWAImkfwKIFLUMNdBllc+6f1PRI4M5Rq4vTLZnrQ1AICyR7RUOVc2P0FTU+YvfDzV+GkQiIvuDog4EBz16WabTtG84vgPX4Ii8eUn6eXkXHmKvfDh/6uCyFrsyEjozFg/HuegsWGxhetbf4tS+eSu/YP4fD1lgY+K484yKXGAbRed+fddHjkGNF6MN4/d9sMz7QZlHaFPo0x0lvs7+/StEQ0qdSrhLmWNcird6j5UVnST7jk7bAErxFVAQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none
header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: dumper does not produce core that gdb recognizes?
Thread-Topic: dumper does not produce core that gdb recognizes?
Thread-Index: AdiTFdtuuavE6/QJQVKdA9E1UKn9cQ==
Date: Fri, 8 Jul 2022 22:06:31 +0000
Message-ID: <DM8PR09MB7095F85835743C5A9E045F1FA5829@DM8PR09MB7095.namprd09.prod.outlook.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f666015b-84d0-4a9f-c61c-08da612e1d9a
x-ms-traffictypediagnostic: MN2PR09MB5323:EE_
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 0rGPMw/9/1DwAui4K6pWA17FusWspkpfT8adGCKF1hAJIpDCnGxA3D4VDTIrNjnlAss1S7WzUFtjVWgHlGXdZ4SxeWrevCvakxx+At5er124IrVCREgqcNu6qHaLLzFzK/zYTXE36TijtofivmF3ggriAtU6Rp7lzz+eO9CaxcV+FseRkboaAG0BtgMyFXSoEvxt/xc+pndoR8WJL1hIzbD5RUAQZjVI3QmoR4HwkZ5MMDFslMwPveO+9cmgv0SBvAwfVtgTIcdoPPa+lqPGqjzIyElOHUDrZ8nAp2vME/FejIwr8s8nDUOROzUG2aGZoYwHHNZrsxMB3hKgO2+HURaO2W+tYIc2XtyHHviMJLJbYrRlxRy5QkPY/i3RmotmZ74uHE4rltGSNMFwUrdNryyBbpSm53mykLXWBc4ImzL8zrS57u7B3f6AMi+QJVSV6I7EaS5ZcdGR1+Tofvo2pHNHyF+G81y2RaMGnMkf3FgKrl/M7b3hSr1bJq9idr3ocIF5+aOuCBToFiRqn/5r88rSX4JG0Aip3JA4kx9kjqia1mFx0fxp4ah09+t+C8t6yQebSJ4BQmF0aYf1XR6UAOZ6SChwu7VHN6gvtu6ZP/3s7SREaKIW4n8cZGKYWO16EbXoY7kKtt3dbHtMrWwNFiOMV1E8ysualb/esQ/NiTgsbopoGcH49lBqCD5qxXk39SYN02dAiWGPGCWqhy8JWEJE6r/GowrHSfUZUwvlimGQjn8rD5fx+OE5bWmenVT65N1IfGB/YoU8IA66MnebLB5lNupX+gF1QYIGldXOTV304GGmNv4oibD+nbO4ksCfTaUIuimjxOVoYl9tF4E+6gxOWtxekW+FybwuR3/mMrbkfjVhWnB/xfmog4FLdhS5zG2rc9P7D6UybjZQju/dyJ+/r9aG1VSZFjwi332TqDNdpV842DwhWwTxJdl9fKWG
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:DM8PR09MB7095.namprd09.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230016)(4636009)(366004)(122000001)(33656002)(52536014)(86362001)(2906002)(38100700002)(498600001)(5660300002)(8936002)(55016003)(7696005)(83380400001)(6506007)(8676002)(71200400001)(6916009)(66446008)(66556008)(66476007)(186003)(76116006)(64756008)(26005)(9686003)(66946007)(38070700005)(2004002)(491001)(460985005)(2480315003);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?tdDoNGREd6zQIB3LZI3BY1CD9nXMHe7q9kkpWJwhFf14RL7CzMhLh95oMUta?=
=?us-ascii?Q?wvoV5eMtyyIsSEwz38LvHfQcfFsBg7SsyfXEDsBwrZCmB0zscAqyrvCscjPM?=
=?us-ascii?Q?VxlLeS9AFVTu7ZZ0S7xnwsTLt0Ul673pI1ktOere/eTxZVul9MN1LoJyZ4Ok?=
=?us-ascii?Q?QaoGqnD1iYw+j+Ban8XHy+GiupxrbiZKmTNoaIbdhe95XQxGvL67DNFcPGU3?=
=?us-ascii?Q?Erl6TkZ0bVjZRCfktyV0vXVabWK6MoiKWK8DPDc49ggr74uH4/Hk0FTkaIkq?=
=?us-ascii?Q?CZrlPPAyuHxrInb6yMGzBZSQSsvZZL9PxddglN9vrYB3ko4HoXlEqDtlsWpg?=
=?us-ascii?Q?MHEnNub0Obw1NF9ejxO8MTA6q0G7FbyW7GluA+PcEIOJMp6G9W0b6BxMlk5k?=
=?us-ascii?Q?+i0JaiKML9YJk2LpvC36FHEdToIJXekeYKdnVTZy51wo0LMdDewT+XjgwyLT?=
=?us-ascii?Q?PNwP6YYb4COoKSJE/hYrM1ir7OCvE2cy4FhIVvWSJ+YnUvUwgC2in0ehbDQt?=
=?us-ascii?Q?XjALI/ALA9+vEj2GwlOAlDVY6TxfLOamPSln6EPnRDSwDIpPTmoWuFoAIe3M?=
=?us-ascii?Q?NOvJsGY6nVJz90wg66E8sB8d2Y54lvGBtwH6VFTlVEWLU/Z3OjjcevTWm/u+?=
=?us-ascii?Q?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mWPhKviV8wcHjOHkTm57KSKjwxvr/TL3EO16Zo+T?=
=?us-ascii?Q?w9qM6RqmTCXnEQeJ8xU=3D?=
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM8PR09MB7095.namprd09.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f666015b-84d0-4a9f-c61c-08da612e1d9a
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2022 22:06:31.9263 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR09MB5323
X-OriginatorOrg: ncbi.nlm.nih.gov
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_EF, KAM_SHORT, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE,
T_SPF_HELO_PERMERROR 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: 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: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\] via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi all,

I need to do some deep debugging on Cygwin so I need to produce a core...  And it does not work.

So I reduced the problem to this minimal test case:

$ cat a.c
#include <stdlib.h>

int main()
{
    abort();
}

$ gcc -Wall -g a.c

$ echo $CYGWIN
error_start=c:\cygwin64\bin\dumper.exe

$ ulimit -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
open files                      (-n) 3200
pipe size            (512 bytes, -p) 8
stack size              (kbytes, -s) 2036
cpu time               (seconds, -t) unlimited
max user processes              (-u) 256
virtual memory          (kbytes, -v) unlimited

$ ./a
*** starting debugger for pid 19934, tid 9332

$ ls -l a.*
-rw-r--r-- 1 ANTON None      49 Jul  8 17:40 a.c
-rwxr-xr-x 1 ANTON None  161487 Jul  8 17:41 a.exe*
-rw-r--r-- 1 ANTON None 3331640 Jul  8 17:46 a.exe.core

$ file a.*
a.c:        C source, ASCII text
a.exe:      PE32+ executable (console) x86-64, for MS Windows
a.exe.core: ELF 64-bit LSB core file, x86-64, version 1 (SYSV)

BUT: gdb does not want this core file:

$ gdb ./a.exe a.exe.core
GNU gdb (GDB) (Cygwin 9.2-1) 9.2
Copyright (C) 2020 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 ./a.exe...
"/home/ANTON/a.exe.core": no core file handler recognizes format
(gdb)

What I am doing wrong?

TIA,

Anton Lavrentiev
Contractor NIH/NLM/NCBI


-- 
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