www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/05/22/09:16:41

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 54MDGelw146389
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 54MDGelw146389
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=Ua1rVLWO
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B127385840F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1747919798;
bh=6WizEhwME4wiQp2obFQ94UHKsI8w1Z30rwKnhoehimI=;
h=Subject:Date:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=Ua1rVLWOOn6aAwFIeH3VPMDLe1OZ3PAcDH2xd4M5jcAmBecfRSJ4Jl23ViKA+chTk
WNTGNMdSv3wnjGXlYed86QEQ6VocgifTZk/vw9dDjMX6OcuBE2Q+hj9dVJIADoqK3j
5OzvOMdPxzw3Y7vsyZI7jBoJvWSxqIRfWJJDxe0o=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7B14D3857BA5
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7B14D3857BA5
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1747919735; cv=none;
b=YbDBqijFlTFX9fn3DwLUemrM5aZhI/VZ/iVGFuY5w/3wkvTnXiYGrtQdBKnuphZKC/JzD6RLuK7HryXCpGUzPCSqjscQj14CFSYri3toQY3HGVMUa0YnwiSpXl+4oK1nZIEXlr6spJLhoDKaGGVYTGpkD7hPig9WVzqXHoxJW7E=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1747919735; c=relaxed/simple;
bh=17UAIewwjKK2o68vN0hOuDq8mOQBbeYq+8+Dbh9sMYc=;
h=DKIM-Signature:From:Mime-Version:Subject:Message-Id:Date:To;
b=awfUAOA4Wl5nQ+6C1aSmORCqAKg43KfD2KTW20/SP9dpU+AbXk3h+SMFEmVZ0BPOX2cJN7SCB1zqKIchPZoGDvOC9nEE4H+5/Dot8ToJPsO6LOvYI7tAvjLC4JQouXF6xVO0eNXJfAqRGdzg6Y6P2g8lubuonzddbpmMGlhb/z4=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B14D3857BA5
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.2\))
Subject: bash::SIGSEGV in timegm () from D:\cygwin64\bin\cygwin1.dll
Message-Id: <BFCB9648-7807-40C3-BC82-713A9648F06D@me.com>
Date: Thu, 22 May 2025 14:15:04 +0100
To: cygwin AT cygwin DOT com
X-Mailer: Apple Mail (2.3776.700.51.11.2)
X-Proofpoint-GUID: Gk3_aqIhAVmtT3q1_1aQnAq2i_vPRtti
X-Proofpoint-ORIG-GUID: Gk3_aqIhAVmtT3q1_1aQnAq2i_vPRtti
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40
definitions=2025-05-22_06,2025-05-22_01,2025-03-28_01
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999
suspectscore=0 bulkscore=0 malwarescore=0
adultscore=0 spamscore=0
clxscore=1011 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx
scancount=1 engine=8.22.0-2503310001 definitions=main-2505220135
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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: Gary Liddle via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Gary Liddle <gary DOT liddle AT me DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 54MDGelw146389

Yesterday I updated Cygwin using  setup-x86_64 to the latest non test release, and bash —login would no longer start.

It turns out bash won’t start for me when a .profile runs a sub-command.

This is highlighted by:-

	gdb bash
	dll cygwin1.dll
	b timegm
	run
	bash-5.2$ echo foo
	foo
	bash-5.2$ a=`echo foo`

	Program received signal SIGSEGV, Segmentation fault.
	0x00007ffa5cb3ce31 in timegm () from D:\cygwin64\bin\cygwin1.dll
	(gdb)
	...
	bash-5.2$ a=`xxx`
	bash: xxx: command not found
	
	Program received signal SIGSEGV, Segmentation fault.
	0x00007ffa5cb3ce31 in timegm () from D:\cygwin64\bin\cygwin1.dll
	(gdb)

	uname -a CYGWIN_NT-10.0-26100 garyl 3.7.0-0.98.gb39b510c1ce6.x86_64 2025-05-18 15:52 UTC x86_64 Cygwin

Any format of a=$(echo bar) or a=`echo bar` causes a segfault, other than that bash runs happily and runs commands.

My last working version was quite old
	uname -a
	CYGWIN_NT-10.0-26100 garyl 3.7.0-0.98.gb39b510c1ce6.x86_64 2025-05-18 15:52 UTC x86_64 Cygwin
I have restored a copy of this and it works fine.

I should day I ran bash under strace , it does the same thing, see [STRACE SNIPPET].
I have also tried this with some variants of
	bash
	    5.2.221-1
	    4.4-12-3
	cygwin
	    3.5.5-1
	    3.6.1-1
	    3.7.0-0.98....
But they all fail in the same way.

I am at a loss as to how to dig further because gdb doesn’t seem to want to go near timegm and I can’t see anything in the strace output that seems to point to anything useful.

Can anyone help?

Regards

Gary



[STRACE SNIPPET]

  326 12064632 [sig] bash 915 sigpacket::process: returning -1
  419 12065051 [main] bash 915 proc_subproc: finished processing terminated/stopped child
  381 12065432 [main] bash 915 proc_subproc: returning 1                                                                                     282 12065714 [main] bash 915 wait4: 0 = cygwait (...)
  197 12065911 [main] bash 915 wait4: 920 = wait4(-1, 0x0, 10, 0x0)
  364 12066275 [main] bash 915 set_signal_mask: setmask 80000, newmask 0, mask_bits 80000                                                    349 12066624 [main] bash 915 sig_send: sendsig 0x144, pid 915, signal -71, its_me 1
  375 12066999 [main] bash 915 sig_send: wakeup 0x314                                                                                        300 12067299 [main] bash 915 sig_send: Waiting for pack.wakeup 0x314
14426 12081725 [sig] bash 915 sigpacket::process: signal 20 processing
  295 12082020 [sig] bash 915 init_cygheap::find_tls: sig 20
  248 12082268 [sig] bash 915 sigpacket::process: using tls 0x7FFFFCE00                                                                      665 12082933 [sig] bash 915 sigpacket::process: signal 20, signal handler 0x10042CB90
  281 12083214 [sig] bash 915 sigpacket::setup_handler: controlled interrupt. stackptr 0x7FFFFE2B0, stack 0x7FFFFE2A8, stackptr[-1] 0x10042DB0B
  380 12083594 [sig] bash 915 proc_subproc: args: 4, 1                                                                                       282 12083876 [sig] bash 915 proc_subproc: clear waiting threads
  280 12084156 [sig] bash 915 proc_subproc: finished clearing
  278 12084434 [sig] bash 915 proc_subproc: returning 1                                                                                      280 12084714 [sig] bash 915 _cygtls::interrupt_setup: armed signal_arrived 0x2D0, signal 20
  283 12084997 [sig] bash 915 sigpacket::setup_handler: signal 20 delivered                                                                  281 12085278 [sig] bash 915 sigpacket::process: returning 1
  383 12085661 [sig] bash 915 wait_sig: signalling pack.wakeup 0x314
  332 12085993 [main] bash 915 sig_send: returning 0x0 from sending signal -71
  282 12086275 [main] bash 915 sigprocmask: 0 = sigprocmask (0, 0x7FFFFC2D0, 0x0)                                                          --- Process 14168 (pid: 915), exception c0000005 at 00007ffa2029ce31
--- Process 14168 (pid: 915) thread 3880 exited with status 0xc0000005
--- Process 14168 (pid: 915) thread 6164 exited with status 0xc0000005
--- Process 14168 (pid: 915) thread 23756 exited with status 0xc0000005                                                                    --- Process 14168 (pid: 915) thread 3312 exited with status 0xc0000005
--- Process 14168 (pid: 915) thread 5208 exited with status 0xc0000005                                                                     --- Process 14168 thread 23072 exited with status 0xc0000005
--- Process 14168 thread 17704 exited with status 0xc0000005                                                                               --- Process 14168 thread 13696 exited with status 0xc0000005
--- Process 14168 exited with status 0xc0000005                                 

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