From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 09:05:41 +0800 Message-ID: <87mt1xyy3e.fsf@yahoo.com> References: <871qj9246a.fsf@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5010"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63589@debbugs.gnu.org To: Thiago Melo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 22 03:06:28 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 1q0u0K-00014b-CE for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 May 2023 03:06:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0tzv-00011r-Si; Sun, 21 May 2023 21:06: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 1q0tzu-00011a-Gk for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 21:06: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 1q0tzu-0004xE-7L for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 21:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0tzu-0001wz-1g for bug-gnu-emacs@gnu.org; Sun, 21 May 2023 21:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 May 2023 01:06:02 +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.16847175577485 (code B ref 63589); Mon, 22 May 2023 01:06:02 +0000 Original-Received: (at 63589) by debbugs.gnu.org; 22 May 2023 01:05:57 +0000 Original-Received: from localhost ([127.0.0.1]:33037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0tzp-0001wf-II for submit@debbugs.gnu.org; Sun, 21 May 2023 21:05:57 -0400 Original-Received: from sonic312-25.consmr.mail.ne1.yahoo.com ([66.163.191.206]:35852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0tzm-0001wR-96 for 63589@debbugs.gnu.org; Sun, 21 May 2023 21:05:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1684717548; bh=djaAq9uPETWUdOr7UksCfuyAusVgnR4OI2zs52P8/2g=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=D1cYRsoxiNdttlmDGjqOTa6DedMQcZD8L6YL0gjkvK9u68ozLHDnQ091psoau1PcfxsvEscmW9WMJBEyv9RCYMWmn+xDP0otJwY59IZuu0hrxmHdKcTzRHihNsNeGw9h8c+X6xx3QhiZ1oT5D5rhiWCiWoXdbnDaMTFXTOCv9Hhsvvq+wV6wBAlBo9MghG1tnBz8wBdIEUdwMTHb6Zu6kjIGHzz29edWYU2ZS1qWHAqD/WxxVW8a0myEbVkNI6eCU2acFdjGqbXON4p7NlL7w65RsXtjMReiIa/PGYW8gVF+lxmcFZ34LRiIsjYKm8R10z6pszNTX1PNwMg2q0sLfw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1684717548; bh=h9oohJmJGgKwYChniY82w1KyBejf1ouG+yGKY3dF/ms=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=SI8QTTsnb7pAoSyxa1JFGIGlvb/DHQpAqNhgGBW4Fxw67/G5iAv7S5vhCfnPRXSsetHgGL1URPpFtV7lfTG8lADP6caoNsNUkEIzEkrshbS48GPZD1HO/bTLNRka4zvqPl/ucquR5xOlBLruKvbznTacJbW8zq+CmGypdX1xOOZFGlyz/Vc7uz9okwLeV5LzV4k0tB3SzimaU/8SQF0ErO11cbbNR5vQgaUOV8LNCOCiwKfpDiRm6D+ah+7RTjGQYnC7ZvQCpc7RF+UhhDAnDpdODh8S6SDp/dQrkJEXSQj+4RWqdgTIEKCxB979ys3dzTKtvvkYRUGMQvgao2wVyQ== X-YMail-OSG: nQaD47QVM1mTdTw2lfyWzsH66.11I.AfnES3a61zdYMWzyOaFKG4kFq.Uh6ip4r Id4z3EquNk7cH9wCmkZwGemwnZjlT6fJfhy_EzchAM8uI8PDHMTqNpi2INfz0iy8_ndH2Ea5fnhv YQ6CwBDdxMe_Jtmr_SWwIU1k4_5_TT483psrM_ji0p3Hq1sPqLpYn2xbXjxZV6DK7WDHb.0AzpA9 TsULdwiqM7YwyTIXOe4k5_LHEUJjyxCwnqx_4EKKrAPqzktbOhGh_JH62WL_hYO5KY7OU.6rAPWf dyffSBI.dNlgtLV17ux8ExrJ9LkhhyW3wIpmOc7gKzDnh9rm0iGZObBfBAeU1cFVxDWe9.wtLgJ_ AlZGqNyp6e9UnXIvtdZ.zogpanhBuQxSfQrFl5QrN8vMNmdlX7MUitVc2e1QDlacd9625Jndfs5l 77hsFQf_6fk_22wXh0CLGxaGLBWZi8kbd.rgOGHLLvLuiaW_wFjFnvcUhbzzXkNwOTVlJoLv8iv4 lZQ9XJpJRTa_JJn9B9.7N7WEpLm7PVmtX9BNrHlA8QEIsjuGX1TfFGmOx0sD39epNXcYI9qEZkR9 Zkge00jhAfaKX.BUVTRpN54ta3N7si7X.HDczfHJ40.WUPz_Cywei2rwgKhboZmmLqzlhL5aIreP Ov2mLcgnj3_eBV69YTvnz.FqDlWsK5SQ37toGH1dfiPwAQUZQpKFoR9BPOIpl8Svd9KR4JEhu98w PY9q4LI0c1FCg2xbh5O4U8mn9f6eHf73kVqZBlvMQOzx_A4vgBZPvkZP3Q8rkK.6Xof2mMsFrxfs Ut4BzIHLIDqYTxEkBcLUvaQirng_DVGGWiYLSrDzjm X-Sonic-MF: X-Sonic-ID: 0e3e42ff-f392-4e91-bb2c-a51685d7ab8f Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Mon, 22 May 2023 01:05:48 +0000 Original-Received: by hermes--production-sg3-748897c457-cf5qg (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 1566d54ffd4ef5349f8368bf5c6a280c; Mon, 22 May 2023 01:05:45 +0000 (UTC) In-Reply-To: (Thiago Melo's message of "Sun, 21 May 2023 16:09:40 +0000") X-Mailer: WebService/1.1.21495 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:262124 Archived-At: Thiago Melo writes: > I'm happy to contribute, but I'm sorry that I might not have much time > to do it right now. :( > > We can do it slowly, but just in case I'm not around, I'm leaving here > one way to trigger this bug more automatically. After starting emacs > (compiled with cairo-xcb) in daemon mode, the bug can be triggered via > a shell script like this: > > > ``` > # some elisp code to close all graphical frames > ELISP="(mapcar (lambda (x) (when (frame-parameter x 'display) > (delete-frame x))) (frame-list))" > > # repeatedly create graphical frames and close them all > for k in $(seq 10); do > emacsclient -c -n -a /bin/false && > sleep 1 && > emacsclient -e "${ELISP}" > done > ``` > > > In any case, I'll reply you about the errors in the other message in > this thread, if you don't mind. I will try to look into this, thanks. > The thing is, with an emacs daemon, after I close the last graphical > frame, x_delete_terminal is always called and the display is always > closed. It happens no matter if I build it with or without cairo, with > errors or without errors. Which X toolkit did you build Emacs with?