delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/03/25/06:18:53

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 52PAIqo62615506
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 52PAIqo62615506
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=g1HrOkSQ
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 923D13857737
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1742897931;
bh=nuah3ep5MRYigVbzWMWKveIT1Tt3ccQqZovdkpg9ZLI=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=g1HrOkSQtpuyQupCoVtCTCZ1taawyxrMNJ5dV0P+1DaWLmO93BZBif5Ucjqor5D4D
LBRknA9Yx+Kx7fdSCU3rLN3H+8c0/4GBIe6z2rskPeY/pLUTw8I0h8uK/s6NpdayaR
TDjaaQGS7gNv3yl+37aAWZO0V57RG+iCxDbNCIFQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9CD9E3858D33
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9CD9E3858D33
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742897868; cv=none;
b=gW2hUcWzeye6kit3DOA758aOpW45jWxh6OUu67Qye0Yu2z/PBDlqubum/rsk7Dqff57FBkRyDejga0OwCG7V0pr75oxDhZm20QdUxoNXDSXpGcDFxxQx428alEAIsCiTKMCU2fRioBWettwWgHw95DdiiJt59H1UC3tCkZx0Swo=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1742897868; c=relaxed/simple;
bh=3GAAqbKZOMjvvsXKPwBuQCCwz73iUwPDj+xb4vO9Gaw=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=CTSZzKc0q/lrcg/NOwvmNeluQICi+AxUhu22qMqSPfHUGj8/Dug7t5nsWF9mZIK9zul6wHLCYP4OjcPHVwKUniCXfb32ZqH8bBW1KKIZEznJqtwPtXKXvbPist1k6sH52R+4tLAozo0SgnXsWrzKfiCdUlta/b/0W6WnjgQofUU=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CD9E3858D33
Date: Tue, 25 Mar 2025 19:17:45 +0900
To: cygwin AT cygwin DOT com
Subject: Re: SIGSEGV handling and stack overflow handling broken in Cygwin
3.6.0
Message-Id: <20250325191745.74aab771361ea6f4ae72d627@nifty.ne.jp>
In-Reply-To: <20250324225204.b291b2e299155bb1fe6846f2@nifty.ne.jp>
References: <3713076 DOT WbyNdk4fJJ AT nimes>
<20250324225204 DOT b291b2e299155bb1fe6846f2 AT nifty DOT ne DOT jp>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On Mon, 24 Mar 2025 22:52:04 +0900
Takashi Yano wrote:
> On Mon, 24 Mar 2025 13:26:27 +0100
> Bruno Haible wrote:
> > Hi,
> > 
> > Gnulib contains a few unit tests for
> >   - SIGSEGV handling,
> >   - stack overflow handling (via signal SIGSEGV or SIGBUS).
> > 
> > In Cygwin 3.4.6, SISGEGV handling was fine, and stack overflow handling
> > worked at least for the first stack overflow.
> > 
> > In Cygwin 3.5.6, SISGEGV handling was fine, but stack overflow handling
> > randomly worked for the first stack overflow or did not work, reminding
> > me of the raise() bug [1].
> > 
> > In Cygwin 3.6.0, SISGEGV handling and stack overflow handling are both
> > broken. Not randomly, but always reproducible.
> > 
> > 
> > How to reproduce
> > ================
> > 
> > 1. Create a testdir for gnulib's c-stack module:
> > $ ./gnulib-tool --create-testdir --dir=../testdir1 --single-configure c-stack
> > 2. Transfer it to a Cygwin machine.
> > 3. Build it: ./configure && make && make check
> 
> Thanks for the report and reprodusible steps.
> In my environment, one of your problems is reproduced.
> 
> FAIL: test-c-stack.sh
> PASS: test-sigsegv-catch-segv2.exe
> 
> $ uname -a
> CYGWIN_NT-10.0-19045 HP-Z230 3.6.0-1.x86_64 2025-03-18 17:01 UTC x86_64 Cygwin
> 
> I'll look into the stack overflow issue for now.

I have just submitted a patch to fix this issue. Hopefully, this
also fixes the test-sigsegv-catch-segv2 issue.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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