X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F260385840C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1706708508;
	bh=+FREW0OSspPDwTsLvP3fAt5/lY1fY+7EQBczScPnScs=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=bmnB0stdB0vXTAbxC2krmltH1dK3D7/Tzt541rSO1NXK3M9ptSIrEs/qNzST+zcKN
	 klzzyiYuYiyGQ15n63hD/ALbyhqOWxWSbGSXbNdtst5QvsSkp+ij3rVQFmul3AXk5H
	 Hk1ZgdhpG38XsqNSMFjAWCaLGDxTq6/0GYvzvJDM=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 358473858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 358473858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706708488; cv=none;
 b=PmnIwehOm/cUrxX49FvoYUkZwy8lgk8h0YxJEuM36Xl2Pnd/uvPtnwfAzP3MnOBnC2EYnS2of3ry507oGKEyo4laONtoif75UowYlIO6YeZTNj11lOgTmprvplR8KYZJ4SUCgcjeOAY1S4NZEkNNVsixsyTnTjMig+nqkz6Rr2A=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1706708488; c=relaxed/simple;
 bh=YISD6EWhhnGtz78nfLx5qVa0lcoIRKB0Gy2entkRhbE=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=a5DuORyZ1QARTPE5JBHBvRk9KgvHGng+YY5qCp5ZNNj4Ib7rKhVpZnmqQ/q1O803S/ryZOQinakVS1LE+jEQC1QibvwsRDA3reKH1sLbMJnvm5/45GIDNvMpidbWW4KqOY/W6dGLmuW6WfSzNupURK5KPSnT3xxVXwEMUgrVfe8=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1706708485; x=1707313285;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=mwiDrzYTZ3XgGJY2kb0yjG2DYn+hvYlnou/NozpaFfs=;
 b=SeciyE5lpsl3rD/NvCnTjmoscLC+3xfmNbyh0bTVSn62/BaRse/JUNnq59pvMteI5C
 OFQebQ05y6xxnyXXM0DLBryGQ1o+c5fcng4mUI4pe8AAAi6D8Xq8fu2B3tXPgCp/5sYD
 E57hd5ELTHFj8poYJIrZ3r1+ANXmkeScpyQQu0sVL0snFGAmeYuy9paYmijDcM4rRaGT
 cgfxNOlQWukJh0RNrwDELBUkYes6TJgE7x7WlDJ8rXoSFOTYIf0pCdPg48rLFdQCvmzp
 XoHVi9lynlZEfijtSx1s+NGJoKDbKGGbcThS4y6m/Sz5kBrkb0GZQ2fE6D1Fa4kGAA0s
 GCKw==
X-Gm-Message-State: AOJu0YyHfliNlZBRA7ManZJkJp3U6Uu/w/X6wl+9ShFz1kz7vzHpzNju
 w76MLLJ1LwUeiq/gDiKnJ7rcGv5V7OOkJ0u8uegPlvjTeua+MaJy19D2twwFTF+kBTwI85TlEn1
 noDEzfbKYpVaxGU0g4SIGFYWBSscYPDqMxhosW1dKfAq31tssGtU=
X-Google-Smtp-Source: AGHT+IFrX5P6obTFAHh1asffA9qm55L4oXGElhr4DKrZ/380T1C80zbJM4ShPkbPX1IVcUa0yIQZEF1QW3G7fhYl8C4=
X-Received: by 2002:a17:907:1607:b0:a30:c104:3a9c with SMTP id
 cw7-20020a170907160700b00a30c1043a9cmr3977928ejd.13.1706708484675; Wed, 31
 Jan 2024 05:41:24 -0800 (PST)
MIME-Version: 1.0
Date: Wed, 31 Jan 2024 13:40:48 +0000
Message-ID: <CAJQQdJiOEduFeAthZ+q+LNXV33aJOhAXqq3sCaxdCqRpAjVmvA@mail.gmail.com>
Subject: Aren't Windows System Error popups meant to be disabled in Cygwin?
To: The Cygwin Mailing List <cygwin@cygwin.com>
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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@cygwin.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@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: David Allsopp via Cygwin <cygwin@cygwin.com>
Reply-To: David Allsopp <david@tarides.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Starting with this very trivial C program:

#include <stdio.h>
#include <zstd.h>

int main(void) {
  printf("Zstandard v%d\n", ZSTD_versionNumber());
}

and compiling with

x86_64-w64-mingw32-gcc -o test.exe test.c -lzstd

when I then run ./test.exe, I get the Windows critical-error-handler
dialog stating "The code execution cannot proceed because
libzstd-1.dll was not found. Reinstalling the program may fix this
problem."

My question is not how to fix the problem (I'm well aware of that),
but rather why that message is being displayed at all, and is it a bug
in Cygwin somewhere? All I could find Googling was previous
suggestions that Cygwin routinely calls SetErrorMode with, amongst
other things, SEM_FAILCRITICALERRORS with the intention of suppressing
this dialog.

Is that correct, and if so is this just me? :o)

Windows 10 22H2, Cygwin 3.4.10, running all the commands from mintty.
I also get the same popup if I run C:\cygwin64\bin\sh -c
"/cygdrive/c/path/to/test" either from a Command Prompt or even from
"Start -> Run". Running this via "sh" called from a non-Cygwin process
(itself invoked from a Command Prompt) which has also called
SetErrorMode is how I hit this.

Thanks!


David

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