From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thiago Melo Newsgroups: gmane.emacs.bugs Subject: bug#63589: [PATCH] 29.0.91; crash after creating graphical frames via emacsclient when compiled with cairo-xcb Date: Mon, 22 May 2023 13:12:16 +0000 Message-ID: References: <871qj9246a.fsf@yahoo.com> <83o7mdrc3y.fsf@gnu.org> <83bkidr37i.fsf@gnu.org> <87wn11yyi4.fsf@yahoo.com> <87edn9ytbo.fsf@yahoo.com> <835y8kr5re.fsf@gnu.org> <87pm6sy5rb.fsf@yahoo.com> <83wn10ppa1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21934"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , 63589@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 22 15:14:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q15Me-0005Xh-Qd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 May 2023 15:14:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q15MR-00039a-HQ; Mon, 22 May 2023 09:14:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q15MQ-00038o-0h for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 09:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q15MP-0007x0-OD for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 09:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q15MP-0000DB-K5 for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 09:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thiago Melo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 May 2023 13:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63589 X-GNU-PR-Package: emacs Original-Received: via spool by 63589-submit@debbugs.gnu.org id=B63589.1684761186725 (code B ref 63589); Mon, 22 May 2023 13:14:01 +0000 Original-Received: (at 63589) by debbugs.gnu.org; 22 May 2023 13:13:06 +0000 Original-Received: from localhost ([127.0.0.1]:34024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q15LV-0000Bc-Ig for submit@debbugs.gnu.org; Mon, 22 May 2023 09:13:05 -0400 Original-Received: from mail-yw1-f180.google.com ([209.85.128.180]:48241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q15LP-0000Ah-4b for 63589@debbugs.gnu.org; Mon, 22 May 2023 09:13:03 -0400 Original-Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-561c1ae21e7so79098677b3.0 for <63589@debbugs.gnu.org>; Mon, 22 May 2023 06:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684761173; x=1687353173; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Q6mET6ObhTjT5JaPWX5iw9qZNBJcIFg8hNGmUgqWgqM=; b=qkkk4s8Vi4telIRfyRuVEgL5vQ4AF1HGqlNqakgb85TsNr7NERnc3rSN1ssYDkuzd8 hRkjssYw8nigPimuwDhbhzbrJFXB+4NOu1L46KlkX9JNbViN2WtGdXdfizwr7+oZtTJE F7we7XsRiGZWrntmuIBkllGNRLqNStQzO+T7ix67hYd2OlR9ZJiILQikzdASvu8s/ajG 80ZhX3g9tCKj62oW2DZAOTj9tntxMd4J4QRl+O9hoWFLtK0J9n81JpWU4yCeM/NVvMld YD9MgUI9v6XAmN3Q+3iIdLtc+SE2t1gcVgHujJEcmLyRPnh+NLbnOeb++vwPBtm5cBN5 NIEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684761173; x=1687353173; h=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=Q6mET6ObhTjT5JaPWX5iw9qZNBJcIFg8hNGmUgqWgqM=; b=HWZcbiViR5/PYeD5Hat5JtDOKca3sWqXxdrgbwmc1zUbVwpdU9vbQP+aMxWImD4I+Q oYL25DH3qYCSFx5PUFv5+SLnDKEZg63XCG7thiO+lNGB6x05BNg5a8B0GQ8KXj/wtsVr m5xJH3LmYF1ex5KT+E/8W30G3FfabSnIfohc5QlOYwH8B2l6NRKuPX0TPTHnp3ocScAO mT5F1YKSIrNjv2JWdkpKYkM1V9LSFRf6l+a1qNPFEWsgG3D+yOCG8lxNUJ/k6u/BntGI Qj1l2Xr1FM5VQ/8uhxWJaLsVj3GXPKW3s8QIKwpIu072atuM9de0BxayPIFqg+nzi5/d 2U4Q== X-Gm-Message-State: AC+VfDy/nPqa0SkVpVzlDFbOC7GMcBRxBgQjwQSGmCbrIef2XBftsPfO QpOL5VXKUMJifol3fx9/p4ROf9OnQmmv8Pbejsk= X-Google-Smtp-Source: ACHHUZ672bSkozfMAIBCGQRr8oio8a5XSAJoFGfh2uJAhp+xG5xeOnqVdbCWKVTGiFCOvz8T2b5WQFQpi8AQWJqbynE= X-Received: by 2002:a0d:f407:0:b0:559:ea89:7c2c with SMTP id d7-20020a0df407000000b00559ea897c2cmr9989454ywf.33.1684761173450; Mon, 22 May 2023 06:12:53 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262150 Archived-At: > > > > What is the kind of situations in which these crashes could happen? > > > > > > Precisely that described in this bug report: when displays are closed > > > and reopened within a short time period. > > > > What kind of user-level situations could cause this? Is invoking > > emacsclient soon after deleting the last visible frame the only one? > > And what does "short time period" mean, quantitatively? milliseconds? > > seconds? minutes? > > Sorry, in my experience it seems that the time interval between > closing the display and opening it again doesn't matter. It seems to > be more about the amount of times that the display is closed and then > opened (which is often 3 times for me, for whatever reason). > > I'm testing it here again with Xvfb and an automation script, with a > 10 minutes delay after creating a single graphical frame, and another > 10 minutes delay after closing it and before creating a new one. I'll > report the results soon. > > Also, this bug seems more likely to happen when emacs is built without > a toolkit (which is was I've been testing so far), since the display > is always closed after the last graphical frame is closed. Which made > me realize, after looking at frame.c, that this bug might as well join > the family of Bug#5802, Bug#21509, Bug#23499, and Bug#27816. With 10 minutes intervals, I got the X errors previously mentioned by the 3rd time the display was opened, and then emacs crashed by the 5th time the display was opened. So, assuming that 10 minutes is close enough to infinity, we can say that the time interval doesn't matter.