X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFAA33858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1706716814; bh=07He6EsTCtmUHjNVlx+lFku6+pkx2yEO1sUlqhNR/Mo=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=rm+AsF9sgkLb7U5dcZlREwqWSNkXgsJoegabSfFzOJ4MsHv+6SN+7hZ9CwtYDK3L0 fylxlhzMromJUMmA0TmAJSvHOB0qQ4+I4lVNOjDB5/1XWOwznC5c2kHvtuH4roc5VY 0wnXe7w6Dg7DOmz5xA3XMN8qa+Hp/7WSZBDQFYBY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2157B3858C2D ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2157B3858C2D ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706716762; cv=none; b=T4yjs9DXotSIxjYmoNEiUHAmQCUPVyBa/O6giuTDNCERwUYrSGjlqOSldeIlTKgWGCAeAkOhgb0D//A8elKRDtgPwFBlOqwgBoWjTY0tgG+RMRkuRNGI9n+G6EELWz3T039S+U11ENHRRlU4roHLfudhemUrPo46v5VvDzzYCOo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706716762; c=relaxed/simple; bh=nk9g9DYwXnQeb4f3/T9rpzhAKVTjOySYJizQw5mEdcQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=jzhA4T4U09UzdjmG7pB+Da9hwtu631TIdqvxEp/bj0OQKnJc6S7ZD7+Uro7M1qVdLrIfY4TgUhVfShCI0cE96DDXzMwIS7P6Oi198mZjh0GSHGnAXvtf/+tNJezrEHA4WEqYvgz9aCQSaIFwYpmog92DGorESfbZQhe2DQrOfoI= 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=1706716759; x=1707321559; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/sKq01TOtOx5v46zMxgtXcoFNHftA82727vqeB2Xe+Y=; b=XlSC6Vl47a9oBtRKIfzpBXiD3k+imeeIo/P63ubzJvgRh7U0LuzZ00vCA3TgN4mNn7 pDXaaJWDhOaqRkWluvRNxGEHHX9Sh5kKBW6q85JpCV6Y+f6Y512fWmKR1a5syq/F2KLl Kck9aZN/qPbxw0dHAYVhT0Ius2XIfVqXOodfS46SUhYKTkB98f4V9+8dPwoa7nKPcQZ+ ewFgpKfyLXA49IpkrT64JPWpd7d5N3Wr/3fL8v+fjc9y9LU3rMTjoYOC/dACr/RcKaHE v2UMsXWcI400Bj4Q5Ej7saOOZJ0Idy3u5/Z65MoUCRZus+SljV6qj+IuQJTbRvh70I2d Ab7g== X-Gm-Message-State: AOJu0YyJfH7mOP2oxtYj9fJEz2tcYI7D5Z3VxJpGefxjdb6OUJFe6Wx/ 4qBq6x2mhqRGOFN4otPZO88oRW3KUS8hUn3zC1lvFKthFs4Lo7dR5Mb950L/MqmjcmysKRZ7GDD 9ABiidl/4mnhKlmeSAYvULO5+lxaeUsYFEU0= X-Google-Smtp-Source: AGHT+IELGt8q1oL9IAAi4/X+LRFooB/Jtk0bti0sqh2q+sVi0Am128tIz3Kmt2sH4ZzQ79doYiItts4Mvp5Jf1B76RI= X-Received: by 2002:a25:8c06:0:b0:dc2:1f68:4a41 with SMTP id k6-20020a258c06000000b00dc21f684a41mr1678886ybl.54.1706716759401; Wed, 31 Jan 2024 07:59:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 31 Jan 2024 16:59:08 +0100 Message-ID: Subject: Re: Aren't Windows System Error popups meant to be disabled in Cygwin? To: David Allsopp Cc: The Cygwin Mailing List X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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 AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: marco atzeri via Cygwin Reply-To: marco atzeri Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 40VG0FxU006206 On Wed, Jan 31, 2024 at 2:41 PM David Allsopp via Cygwin wrote: > > Starting with this very trivial C program: > > #include > #include > > 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 > x86_64-w64-mingw32-gcc produces a Windows program, why Cygwin should be involved in the execution ? -- 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