From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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:59:33 +0300 Message-ID: <835y8kr5re.fsf@gnu.org> References: <871qj9246a.fsf@yahoo.com> <83o7mdrc3y.fsf@gnu.org> <83bkidr37i.fsf@gnu.org> <87wn11yyi4.fsf@yahoo.com> <87edn9ytbo.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3916"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63589@debbugs.gnu.org, tmdmelo@gmail.com To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 22 13:00:27 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 1q13H8-0000pV-LY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 May 2023 13:00:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q13Gm-0004UG-Lz; Mon, 22 May 2023 07:00:04 -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 1q13Gl-0004Tu-3y for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 07:00:03 -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 1q13Gk-00049S-R9 for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 07:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q13Gk-00029F-7L for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 07:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 May 2023 11:00: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.16847531668173 (code B ref 63589); Mon, 22 May 2023 11:00:02 +0000 Original-Received: (at 63589) by debbugs.gnu.org; 22 May 2023 10:59:26 +0000 Original-Received: from localhost ([127.0.0.1]:33662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q13G9-00027l-Rf for submit@debbugs.gnu.org; Mon, 22 May 2023 06:59:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q13G5-00027V-Im for 63589@debbugs.gnu.org; Mon, 22 May 2023 06:59:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q13Fy-00047H-DL; Mon, 22 May 2023 06:59:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BYVLutjiRKkVmenR8a8Puy3NywyzoxMRA+RtGhLix1A=; b=icM5bdqMX0vJ 89zSjE+pxYe7t7+FQdFi6WaE2Vw8jjCw/Cxr8NFpL7rrSYVOEw6nu7yIGk2Z6Mg/+I/56f1lWdZWL LfK99+KhzswxA9PPntwINgxV1zN2eIL78qT6EL9xSQZPt6lfIfOo5mVNSvo8rlUzDHwaANGTuTNqw zBLBimfKcSrxBKeihPQlu+2blsTMOPk2yZsbljv5BLD1yHqPtSgwk1sW4CXu1/pofwHCUAUFrUqO2 +2kwB2wrMrvVhqvlsUI3+LZ5wAzFGeYoAhhAuVVGwydmGE0WSwZRO6FsZK7ZjAi/dV0HnO2P1PRGi wWlyF8UT8Sz6x7lJ3znWfQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q13Fw-0007Ki-CH; Mon, 22 May 2023 06:59:14 -0400 In-Reply-To: <87edn9ytbo.fsf@yahoo.com> (message from Po Lu on Mon, 22 May 2023 10:48:43 +0800) 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:262140 Archived-At: > From: Po Lu > Cc: 63589@debbugs.gnu.org, Thiago Melo > Date: Mon, 22 May 2023 10:48:43 +0800 > > Po Lu writes: > > > The situation in which this crash occurs is sufficiently uncommon. It's > > the result of another bug in Emacs, hopefully one that should be safe to > > fix. > > Unfortunately, both this crash and its cause (actually, a > RenderBadPicture from a glyph compositing request somewhere within > cairo) are bugs in cairo-xcb itself. Emacs never allows the display > connection to be closed without dereferencing all Cairo resources > created for that display connection, but Cairo keeps its own references > around. Was this bug reported to the relevant Cairo developers? > The only reasonable solution is to disable the use of XCB surfaces by > default. Is this OK for the release branch? It's OK, but please also add to NEWS some short notice about this option and its potential pitfalls, which explain why it is off by default. Perhaps also about its advantages, so that users could make up their minds. What is the kind of situations in which these crashes could happen?