DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BP6Mpg83954559 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 4BP6Mpg83954559 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=ICOnMKG8 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 154BB3858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1735107769; bh=rrmrN8o/8SAd0CPTwXb2pf4zcW204iHE+gCciW0aQGM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ICOnMKG8aIBNhdnkiKHJfhLJyNIM7zDtu3J9ApJszCQ5lW2cr6hRanxoPQiWrMjXe xmJKvE0TbjZdqed75jhBpVyU9bzmXun99minGxwQCm22/etrDMn8trXqt4V2gFaH40 7KEC0NFvkIqD/wsvCqatBy8Aptw0TD6zdgynj79U= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B9A1C3858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B9A1C3858D20 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1735107707; cv=pass; b=vnuKUI7NBoZw26zv8B8mbY1yGQgYHe9Ac+5jOIZTb6OJiUNHcBjmEsTBgNaO1zA38mHSPgUxiV3OK0OsVK94SWH3jVUxOZW4aj+b9q74ue0tscAOA4eb6NbFT58HInu5/sAKV4/wwrT6XZtjZE7wzSBHbZ8aU6cGUCJRCyLlWVY= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1735107707; c=relaxed/simple; bh=AT6Qhg4D5zJ1dJJ8FAzTgX+nwuk6ouycHWc32Hoi/3c=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=csovKQEgXyKshrxS/RyPIY7pX6QTqE5i546ZYjG3kL5MToQ2FKdowinoIopjB2aij1bSj0BX0aJGansdKNka5a6JqQWY9+nXDEiPYh5NveBqUwZvzSwjP/wMuQj5pJcNpCK5P4y9Kz94jBwCNzimdFTvPCv2lxhkXL7+gYBV0uM= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9A1C3858D20 ARC-Seal: i=1; a=rsa-sha256; t=1735107705; cv=none; d=strato.com; s=strato-dkim-0002; b=iZPzWErzanq4f3oiqoBq+nLI6yRH/wVJllbpvlystOJGmaPsAaBuiwHTQXVg/NpJqH iphdmmXAnjQmjtyqsaTCpsWwQNy+1S8NhW86BtLH5JwggyAsww1ojk9GJLlyh1Mlnr6p IaYxw1ykKzREakgOdLlcVCbWE3G1oSt22hmKNXX4/eaphaYN4cQT1J5L148ynGy9HlDv CKo5Nr9yWcIKL4rn+SxIp4qSiEsRCP14BBXyiz7o/nkld9pk0jAzmTjML5v8P8qmlaQC WekEoAH6hKcn65igftwVfgmGuwJQqUxZ2AXSZkS2dnQ0Qg//ok8BPJLB5R+lssEkg10F cOaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1735107705; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=JfOs1lYQ7dl4WKtOlVv/HKG/XKszk0HDjv9O76jdq4Q=; b=jBQTMQwt43nVkOvYo+WgeqchzIvb2BwYVNX6WPIOlTaUSPoQpxIMjkZpcqM861jPCX WH/Et0fZWQ8/YL5LLeFoj7wz6TTWp8RUfLR1jJwoetBNp11W1CE20vsslaGqktaPcxvA UYgyWrTZFaXhdC/z8MODerNG2knsUyzf/7mw/Q+8Uw3ogjqC9sYtoOceBMypj12+gkOc ah8jD97B6Rw7MjcV4pF/mDZPcaAE7bfEPgpaSViOXIdTH0BvY+1eFhNkfVVGJXlYWqbJ KiF7mNnyzgXak9rNBKJpnoqj7evB2LKyPHIzUPxW1iw+7AOixsZZpLfFkkr5rNxwNcKf uVBg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlLnY4jECd2hdUURIbZgL8PX2QiTuZ3cdB8X/nqjicHGO/TuzbVOfh9mUBk4elim4=" To: cygwin AT cygwin DOT com Subject: raise() produces random behaviour in Cygwin 3.5.5 Date: Wed, 25 Dec 2024 07:21:44 +0100 Message-ID: <3393531.CAdn2TfLgq@nimes> Organization: GNU MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart13560177.lhuNh5TYOU" Content-Transfer-Encoding: 7Bit 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: Bruno Haible via Cygwin Reply-To: Bruno Haible Sender: "Cygwin" This is a multi-part message in MIME format. --nextPart13560177.lhuNh5TYOU Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" An invocation of raise(SIGABRT), that is, of a synchronous signal, produces random behaviour in Cygwin 3.5.5: Sometimes it succeeds, sometimes it fails with error ENOSYS. In previous releases of Cygwin and in all other operating systems, it always succeeds. How to reproduce: Find test-sigaction.c attached. Compile it and run it 10 times: $ x86_64-pc-cygwin-gcc -O2 -Wall test-sigaction.c \ && ./a && ./a && ./a && ./a && ./a && ./a && ./a && ./a && ./a && ./a ret = -1, errno = 88 ret = -1, errno = 88 ret = 0, errno = 0 ret = -1, errno = 88 ret = -1, errno = 88 ret = -1, errno = 88 ret = -1, errno = 88 ret = -1, errno = 88 ret = -1, errno = 88 ret = 0, errno = 0 This unit test is part of Gnulib. Really, it is a pity that none of the Cygwin maintainers is running the Gnulib tests before making a new Cygwin release. Bruno --nextPart13560177.lhuNh5TYOU Content-Disposition: attachment; filename="test-sigaction.c" Content-Transfer-Encoding: 7Bit Content-Type: text/x-csrc; charset="x-UTF_8J"; name="test-sigaction.c" #include #include #include #include #include int volatile test_exit_status = EXIT_SUCCESS; #define ASSERT(expr) \ do \ { \ if (!(expr)) \ { \ fprintf (stderr, "%s:%d: assertion '%s' failed\n", \ __FILE__, __LINE__, #expr); \ fflush (stderr); \ if (1) \ { \ test_exit_status = EXIT_FAILURE; \ } \ else \ abort (); \ } \ } \ while (0) static void handler (int sig) { } int main (void) { struct sigaction sa; sa.sa_handler = handler; sa.sa_flags = 0; ASSERT (sigemptyset (&sa.sa_mask) == 0); ASSERT (sigaction (SIGABRT, &sa, NULL) == 0); int ret = raise (SIGABRT); //fprintf (stderr, "ret = %d\n", ret); fflush(stderr); fprintf (stderr, "ret = %d, errno = %d\n", ret, errno); fflush(stderr); //ASSERT (ret == 0); return test_exit_status; } --nextPart13560177.lhuNh5TYOU Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- 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 --nextPart13560177.lhuNh5TYOU--