DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 54MKiudK443423
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 54MKiudK443423
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=G+JhfLEY
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F35E3857002
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1747946694;
	bh=iyRyHRIKKiUmxDstpsq/YL2kGgACbszX269CD0mwwGo=;
	h=Date:Subject:To:References:Cc:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=G+JhfLEYdI0oiiR+VUcLxr+S7Eo5uTlMrGX8c4pgSc+KOnMxrk/xiOunY/NxYHOT4
	 M+w8BpVO2jkChxt0DDw4CKs83QlE/xiE1mC3oWm5cd5vg1MZpA5qlVJIVkDv6dhIGy
	 7pNOsuVf8F1AXLFEzzUqia3QTQZvEvV8y3CG4nVQ=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 992FD3857BA0
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 992FD3857BA0
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1747946629; cv=none;
 b=tDXEl7EebEa4/U0vtdHaF4HwcIoQe0TwpAanExZ5AoOIrfug78P2hKU7hNJjKVBDzFJBGVCfjuuFrfZvMnbAlmiXBayz7nbbfQNNtKWN2B0ZkUqocHGHxK98/0+F4xJ/bPtQSUYC1L0Zef9nlihHWdLFN4L2ta6w3tkNIKujB+8=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1747946629; c=relaxed/simple;
 bh=CDHGeqY4+5o5Klty/NSsK8AEPCBhf3lOLb4gb/h6c6k=;
 h=Message-ID:Date:MIME-Version:Subject:To:From;
 b=SOcdo9pvpOM8bzpOhVYrzXCbDdw2LDGoV/O1g5mAuJFFDFLhRnVhy8J5nVRo5GNEjUuNUCTsGgxs0iQPa6V/pjhRQ4bgRw2ekvp/JHuVWH3h1RrC1107gQcF/yzcSJfkVRwTMyOwJsqnSv4EM8Gdq1k371sJWZJTjTIxV6Xd3uA=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 992FD3857BA0
X-SNCR-Rigid: 67D89CDB076359C7
X-Originating-IP: [81.129.146.154]
X-OWM-Source-IP: 81.129.146.154
X-OWM-Env-Sender: jon.turney@dronecode.org.uk
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdeileehucdltddurdegfedvrddttddmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfevjggtgfesthekredttddvjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepffehleejveegieegleegtedtheffkeeutefhgffhveelvdehjeduveefffevgfeinecuffhomhgrihhnpegthihgfihinhdrtghomhenucfkphepkedurdduvdelrddugeeirdduheegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdelngdpihhnvghtpeekuddruddvledrudegiedrudehgedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhrvghvkffrpehhohhsthekuddquddvledqudegiedqudehgedrrhgrnhhgvgekuddquddvledrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffrpefiuedpoffvtefjohhsthepsghtphhrughrghhotddthedpnhgspghr
 tghpthhtohepvddprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhmpdhrtghpthhtohepghgrrhihrdhlihguughlvgesmhgvrdgtohhm
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <6fadc774-7ac6-452d-999d-dc78f62c8369@dronecode.org.uk>
Date: Thu, 22 May 2025 21:43:48 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bash::SIGSEGV in timegm () from D:\cygwin64\bin\cygwin1.dll
To: Brian Inglis via Cygwin <cygwin@cygwin.com>,
        Gary Liddle <gary.liddle@me.com>
References: <BFCB9648-7807-40C3-BC82-713A9648F06D@me.com>
 <a78cee42-8e4b-42bb-a1a7-6041a52bcb9f@dronecode.org.uk>
 <A18794A3-C9E0-41F5-A771-19759E2072ED@me.com> <87v7psd3yq.fsf@>
 <d40e6394-eee1-4a2b-bef5-e9f8e2887dc3@SystematicSW.ab.ca>
Content-Language: en-US
Cc: cygwin@cygwin.com
In-Reply-To: <d40e6394-eee1-4a2b-bef5-e9f8e2887dc3@SystematicSW.ab.ca>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin@cygwin.com>
Reply-To: Jon Turney <jon.turney@dronecode.org.uk>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 54MKiudK443423

On 22/05/2025 19:55, Brian Inglis via Cygwin wrote:
> On 2025-05-22 10:07, ASSI via Cygwin wrote:
>> Gary Liddle via Cygwin writes:
>>> Thanks for the link, but all the .dbg programmes segfault in:-
>>>     ie bash.exe.dbg
>>>     mainCRTStartup () at /usr/src/debug/cygwin-3.4.10-1/winsup/ 
>>> cygwin/crt0.c:16
>>> for all versions (which might be a clue?).
>>
>> Did you actually close all Cygwin programs and stopped all services
>> before the update?  It seems that you are still using an old Cygwin DLL,
>> which isn't going to work with programs linked to a newer version.
> To check no Cygwin programs are running, start TaskMgr, view Details 
> tab, select column Image Path Name, and check nothing is running under 
> your Root path.
> 
> Download the latest Cygwin Setup from https://cygwin.com/setup- 
> x86_64.exe, run it and allow it to apply upgrades to anything installed, 
> then allow all Cygwin Setup Postinstall scripts to run to completion, 
> checking in Taskmgr as above.
> 
> Check /var/log/setup.log.full for any errors and report them here if 
> uncertain.
> 
> Rerun Cygwin Setup if necessary, without making any selections, to 
> ensure all Postinstall scripts are run to completion, as some are 
> critical to getting a working install.

Guys, context is important.

> $ gdb /usr/lib/debug/bin/bash.exe.dbg
> GNU gdb (GDB) (Cygwin 15.2-1) 15.2
[...]
> Reading symbols from /usr/lib/debug/bin/bash.exe.dbg...
> (gdb) r
> Starting program: /usr/lib/debug/usr/bin/bash.exe.dbg
> 
> Program received signal SIGSEGV, Segmentation fault.
> mainCRTStartup () at /usr/src/debug/cygwin-3.4.10-1/winsup/cygwin/crt0.c:16
> warning: 16     /usr/src/debug/cygwin-3.4.10-1/winsup/cygwin/crt0.c: No such file or directory

Gary,

You are not supposed to try to run the .dbg files.

They only contain the debug information stripped from the executable 
before it is packaged.

gdb is capable of following a reference added to the executable to read 
that debug information automatically (when it is present). (See the 
objcopy flag '--add-gnu-debuglink' for more details). Note the final 
line below:

> $ gdb bash
> GNU gdb (GDB) (Cygwin 15.2-1) 15.2
[...]
> Reading symbols from bash...
> Reading symbols from /usr/lib/debug//usr/bin/bash.exe.dbg...


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

