DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 52OF1Qlf2328678 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 52OF1Qlf2328678 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=fRRp/mPW X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0AAD93858D29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1742828485; bh=8+C7W/MHQm4vbvYIT3ZNNZ7ly7SfJCKWBA5j1xYX8QM=; 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=fRRp/mPWvcGWcURE9mUxdxfzsTdkTWEo2UjH4ekkf/WAoJTHn3a9qNqBJQwOzJj25 2jHlrAWklUjDYUjweKbCeDdNdIJqLOB8lXlQ5OkePXHG+n16LMRFAyTwSMkpi2Yxwq GEfYRTT0FBjShEdlwMVoBJvfaj9VDgXHGl19CQhw= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7FAF93858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7FAF93858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742824329; cv=none; b=LXHfaBm64bnR5O69SO56tv6P3jJuAJQiB0+0znvT7QLYXOugRtEttT4RMecv7vW7O7+RG2JcOdq6qXz+lZ9nINPIdqA9AJh0ZUHIWQrCPVaZzr5g+5r4q8trzFm1uUZojA5vC4Tj9Bb/E1fYZ5tmbBAngcKqVyCNeWvsLj9buJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742824329; c=relaxed/simple; bh=llFhCjcKBMiCiHAYn9mqrpGUV2zD6OzO9BtTh7Ev6Cw=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=QSLnhBUmheK0DYr9Br/tBaYGNO2Und2Fnkv5vwhsDBW8mrP0mr3ef+jt8dUFobQ3dCoi1mqktYmHIKKLqYGg/ngVdGOnFfQ/FEu0Oh9lWuHJ4oBNyeRswAdmfcC/EtzitLbGy+zek0HSWrs9ww0Yci35+EUptL7bYxKdq5sQm8o= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FAF93858D21 Date: Mon, 24 Mar 2025 22:52:04 +0900 To: cygwin AT cygwin DOT com Subject: Re: SIGSEGV handling and stack overflow handling broken in Cygwin 3.6.0 Message-Id: <20250324225204.b291b2e299155bb1fe6846f2@nifty.ne.jp> In-Reply-To: <3713076.WbyNdk4fJJ@nimes> References: <3713076 DOT WbyNdk4fJJ AT nimes> 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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. -- Takashi Yano -- 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