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: 29.0.91; crash after creating graphical frames via emacsclient when compiled with cairo-xcb Date: Sat, 20 May 2023 11:47:34 +0000 Message-ID: References: <87sfbr3hbu.fsf@yahoo.com> 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="39458"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63589@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 20 13:49:21 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 1q0L5N-000A4q-Bp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 May 2023 13:49:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0L56-0001W3-CL; Sat, 20 May 2023 07:49: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 1q0L54-0001Vr-JH for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 07:49: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 1q0L54-00026V-Bu for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 07:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q0L53-0004IL-Pl for bug-gnu-emacs@gnu.org; Sat, 20 May 2023 07:49: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: Sat, 20 May 2023 11:49: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.168458330116415 (code B ref 63589); Sat, 20 May 2023 11:49:01 +0000 Original-Received: (at 63589) by debbugs.gnu.org; 20 May 2023 11:48:21 +0000 Original-Received: from localhost ([127.0.0.1]:57971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0L4P-0004Ge-3N for submit@debbugs.gnu.org; Sat, 20 May 2023 07:48:21 -0400 Original-Received: from mail-yw1-f171.google.com ([209.85.128.171]:54532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q0L4K-0004Fd-83 for 63589@debbugs.gnu.org; Sat, 20 May 2023 07:48:19 -0400 Original-Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-5619032c026so56065927b3.1 for <63589@debbugs.gnu.org>; Sat, 20 May 2023 04:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684583290; x=1687175290; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yl+g2TYpYl5vVYLr/2RM6XX+dd1JRJF3efNMzqwYSEE=; b=MBsij+k5S8vfSVthhlk8MCh7glvMLbAiDR5nBO6tQF7DWDDl+sXusVy0Zt59Ay6fpI q6v83Yv4vIhfBbfGOZPvgGk8su3jLoa6DfTefClHBh3SDuet+acXuX46eXwqcqWROK4V hgV/TIHetzFfZIxX1MxoEjwRsjhwGzOJ7hMOPqKLqP2JIHOtKAH72GHqhBl0Gh6lJ7IE nObswht7Lbnt9d39qANaie0L8ozV95GqEI00rdLOhp8pK7KqAjYqBXhDeVUXTcQW5IDQ zSI7P8x8XznWWh0Joaka7K+MpAH0AdDghGHdwCQ/aLZorVVjXtS5+aByw9N8QOImAI36 ix9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684583290; x=1687175290; 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=yl+g2TYpYl5vVYLr/2RM6XX+dd1JRJF3efNMzqwYSEE=; b=S1cST3FvaURbLolsfGjSXwA5+bv8VxCHwzG3KayCmpXJ3h8ss21TXbm3nZ9DCyHHYv HaO6lKWpAx/5eeZT4z2vMeW6mGCJtBHHTd5n4pplh3ujZpjHjsZ9Ezl8ugBmKYNisq2D 1JAs7McdsLhZovvlM8qP+MPO1RJSh7QxEt3QzDmFzSeozvxI8sleAneYrckeaW6jA6nV jMpuKjQ9IuMiikhsSunOPoWtDeHbhVA6tzNaVuqLDs5CfX7u1I/rxyxQKNRWWE9c2avE 8bNl9iikzj9eWwS1vZ0KZ1s3L/m5RYNi6EArL/eMcZqlZ0XduKNBB5uzxSJ7IotpFuz9 yvcQ== X-Gm-Message-State: AC+VfDyBjM4WWWZLGXXgerahYu+suivMEu5UY8Zb+l2YGr9DTvfAByCm D6VNyli/MCT4yLtkdpjyUYER9AS3zM1a7IPkfKY= X-Google-Smtp-Source: ACHHUZ5wg0JCNyN41/fGPMeyUnI9y99uvksgiySwjhaqZ/7AbnkLtQn5+GI0q838hcaNe8SqcPEIezwl+GNSSG63fxU= X-Received: by 2002:a0d:df86:0:b0:562:eeb:b3d5 with SMTP id i128-20020a0ddf86000000b005620eebb3d5mr5577416ywe.23.1684583290656; Sat, 20 May 2023 04:48:10 -0700 (PDT) In-Reply-To: <87sfbr3hbu.fsf@yahoo.com> 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:262051 Archived-At: Thank you for looking at it. > However, > this crash happens when a display connection is closed, which is not > common in normal use. As the backtraces you attached show, an unrelated > X error is what caused a connection to be closed. I must clarity that, after these particular X errors happen (the ones that trigger the x_error_quitter breakpoint), I might still be able to create new frames, without emacs crashing. And vice versa, emacs might crash without these X errors happening. So, the issues might or not have a common underlying cause. > To really fix this bug, we need to know the details of the X error. > Once you reach the breakpoint on `x_error_quitter', would you please > run: > > (gdb) p *event > > and send us the resulting print out? Sure. Just in case, this time I compiled emacs with better configure options for debugging (`--enable-checking='yes,glyphs' --enable-check-lisp-object-type CFLAGS='-O0 -g3'`) and I was more careful to run emacs with `-xrm "emacs.synchronous: true"`. I must also highlight that the following errors in the backtrace happen one right after the other (i.e., I'm unable to interact with the zombie emacs frame in between). ``` Breakpoint 2, x_error_quitter (display=0x55555654f4f0, event=0x7fffffff71c0) at xterm.c:26126 26126 if (event->error_code == BadName) (gdb) p *event $1 = { type = 0, display = 0x55555654f4f0, resourceid = 54526136, serial = 706, error_code = 14 '\016', request_code = 1 '\001', minor_code = 0 '\000' } (gdb) continue Continuing. Breakpoint 2, x_error_quitter (display=0x55555654f4f0, event=0x7fffffff6a50) at xterm.c:26126 26126 if (event->error_code == BadName) (gdb) p *event $2 = { type = 0, display = 0x55555654f4f0, resourceid = 54526136, serial = 707, error_code = 3 '\003', request_code = 8 '\b', minor_code = 0 '\000' } (gdb) continue Continuing. Breakpoint 2, x_error_quitter (display=0x55555654f4f0, event=0x7fffffff6a50) at xterm.c:26126 26126 if (event->error_code == BadName) (gdb) p *event $3 = { type = 0, display = 0x55555654f4f0, resourceid = 54526136, serial = 708, error_code = 3 '\003', request_code = 12 '\f', minor_code = 0 '\000' } (gdb) continue Continuing. ```