From patchwork Wed Jul 26 11:55:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= X-Patchwork-Id: 73227 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AAE3C3856DD5 for ; Wed, 26 Jul 2023 11:55:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAE3C3856DD5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690372555; bh=t/O9imrhhOtJ0reFi/g5hHP9pnquS4wBlBKHrKmVn9M=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=mGuJAXf9+J4G/mgn7QDNBM5VILK/vTdzZQiARNJklpfO2H4Vl6n20nK5Q5iGpK+ad 0nJduHu6h0FBEZuwqep/DR1rDKo1VbPKsalHREEY4ag0dSWoq20+v5MAP6xHq41sAE rPdgKZNrOCge5IrWfZEM9gzMGggbpPkgDHAjAtbA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id CC6593857024 for ; Wed, 26 Jul 2023 11:55:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CC6593857024 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-493-cebSk6l-PfmJVf5kYR5hKA-1; Wed, 26 Jul 2023 07:55:29 -0400 X-MC-Unique: cebSk6l-PfmJVf5kYR5hKA-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-98e40d91fdfso20762266b.3 for ; Wed, 26 Jul 2023 04:55:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690372528; x=1690977328; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=t/O9imrhhOtJ0reFi/g5hHP9pnquS4wBlBKHrKmVn9M=; b=d4BXo2KSsQH5F6TEO+WYbT9ArfeLav9mUZ3K1CqQAgM74J0cWoBL3X8QPgpTCE8uk/ pHWy0t3nJuz53Cb2guK0nJb1ReKpI6NSxJ2nXxqK5lk4zyOiRTPg3bJLBZSyM8JkhjBI XHumoz38enLt9L42BXpzp9Xnn9HrPUz7TP/T6kJPrQaNPDA0HIDJPsRv6rkQhnko+POT PTmafEtCyPBXsxIbdx/sqezjxZLHOsiHk+01DOztR4KfkzE0y/hzVi2A5qoEPFaGSHXZ tu/aHj7T2XasLe7KqEOHpQFXgbTPZReHi1Vldu9wCcWjV+iFfx4SoqZQoRy0s5JX2jau NYDg== X-Gm-Message-State: ABy/qLahoJIshQ2OkDNCYO16V/32jVNKJAGPjTPJXANlpzVdGaHxc9q+ 2YAy/ihOqOl7HdVQ5rF/sHK/di1BLnOle7YgkkGcHDBI+KizaVGBu7tTr9J9LiZ6bdkf7K0erY5 EugmC/G45j6NLb4VJky46 X-Received: by 2002:a17:906:76c2:b0:993:f081:2c58 with SMTP id q2-20020a17090676c200b00993f0812c58mr1396642ejn.4.1690372528497; Wed, 26 Jul 2023 04:55:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlHud0tMyAjeBR54NJbBM/sJgZUJzuDeD3ppRyCnApBvzVD5U0/lpLPe8rI9sAPAJ3H+91QbqA== X-Received: by 2002:a17:906:76c2:b0:993:f081:2c58 with SMTP id q2-20020a17090676c200b00993f0812c58mr1396628ejn.4.1690372528106; Wed, 26 Jul 2023 04:55:28 -0700 (PDT) Received: from localhost.localdomain (ip-86-49-233-183.bb.vodafone.cz. [86.49.233.183]) by smtp.gmail.com with ESMTPSA id d10-20020a17090648ca00b0099b6b8a0d04sm8213346ejt.157.2023.07.26.04.55.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 04:55:27 -0700 (PDT) To: Alejandro Colomar Cc: linux-man@vger.kernel.org, =?utf-8?b?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= , Carlos O'Donell , Glibc Subject: [PATCH] abort.3: Note that the glibc implementation is not async-signal-safe Date: Wed, 26 Jul 2023 13:55:27 +0200 Message-ID: <07404317c21c86c517bc84357f91c4e179542906.1690372376.git.tgolembi@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Tom=C3=A1=C5=A1_Golembiovsk=C3=BD_via_Libc-alpha?= From: =?utf-8?b?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= Reply-To: =?utf-8?b?VG9tw6HFoSBHb2xlbWJpb3Zza8O9?= Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" See https://sourceware.org/bugzilla/show_bug.cgi?id=26275 Cc: Carlos O'Donell Cc: Glibc Signed-off-by: Tomáš Golembiovský --- man3/abort.3 | 6 ++++++ man7/signal-safety.7 | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/man3/abort.3 b/man3/abort.3 index 0b57e10ed..827d5c9db 100644 --- a/man3/abort.3 +++ b/man3/abort.3 @@ -85,6 +85,12 @@ terminates the process without flushing streams. POSIX.1 permits either possible behavior, saying that .BR abort () "may include an attempt to effect fclose() on all open streams". +.SH BUGS +The glibc implementation of +.BR abort () +is not async-signal-safe, +.\" FIXME . https://sourceware.org/bugzilla/show_bug.cgi?id=26275 +in violation of the requirements of POSIX.1. .SH SEE ALSO .BR gdb (1), .BR sigaction (2), diff --git a/man7/signal-safety.7 b/man7/signal-safety.7 index 3d6ddc7eb..431a22f89 100644 --- a/man7/signal-safety.7 +++ b/man7/signal-safety.7 @@ -335,6 +335,11 @@ The glibc implementation of is not async-signal-safe because it uses .BR pthread_mutex_lock (3) internally. +.IP \[bu] +.\" FIXME . https://sourceware.org/bugzilla/show_bug.cgi?id=26275 +The glibc implementation of +.BR abort (3) +is not async-signal-safe. .SH SEE ALSO .BR sigaction (2), .BR signal (7),