From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: help needed for getting a backtrace ( multi-head emacs_abort on lucid-frame) Date: Mon, 18 Apr 2022 07:59:41 +0800 Message-ID: <877d7nmfbm.fsf@yahoo.com> References: <86mtgjh13r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20266"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Andr=C3=A9s_Ram=C3=ADrez?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 18 02:01:29 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ngEpd-000588-C0 for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Apr 2022 02:01:29 +0200 Original-Received: from localhost ([::1]:49820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngEpc-0003Iv-3k for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Apr 2022 20:01:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngEo7-0002OE-E8 for emacs-devel@gnu.org; Sun, 17 Apr 2022 19:59:55 -0400 Original-Received: from sonic306-22.consmr.mail.ne1.yahoo.com ([66.163.189.84]:36781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngEo5-0006tL-JT for emacs-devel@gnu.org; Sun, 17 Apr 2022 19:59:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650239990; bh=VgcQ4WB9QnhPCkXGUv9NNOkmN/7JLzYhHM7CMRPk8cY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=LJXQRWjT/7uPe/U8lV9W3sb/CwzgxH0FeauBtuH4HcmLeheUhONxSzEocsuslXtmXTr3jieywWbEDDQZ693XIhKDRrZDiUTfI6tZ51Gpj2ae35Yg/NxcwQ/p+o50gzypLBOGOmgWPocpvDV7rRDcA0byeYz0eFleJEShhX9siQ+xMgeXubpTApZmuqDQPtyGBZmc3gQ8uUFhCrvrtYpYewXPOuxrE3Roiyx1RRbkLmTQB7aNosN3VZslFwubG5kxyTCWm/p0iJeStjcQQX67l69fuFJf2V7l7FHuQ1gTrsJRl1bZ0lJ5H8zi3DF+hYjLyVPMKbrWy+22lr0riNj/xQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650239990; bh=mykLCjvbzgmEWRKgp9nOR3NWkz8vfvUN59EjZ1bMNd7=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ch21GVqExtCPm0ETknpDNNUTjBiOqlD1DS0BxdvT0p8xxt8dLGCzhbpTGVKnaPyplKKXcLMd8w5vb3/b7Akws/Y15DNE+G97hYthP+oAnk4WS9VZr5yILRjvP02HnN4AazFEEpY9Hfe81u/BfYrhaJVYinj8xmuaVnwlLuWedbZER6o287gLab+8+/X2nqJxDbkQCkvCOUIXT9IJw+vFJZXCEUMU2zrP+Ko524eSsTnqYbNOkikXRUKmA4ph0Pr93aFS3oDezzNNp/j7ucj4CmxIuH/yu3rmSG/L3ULhrHMHPwp9Ed4J33/iextuZb5lDZ2Q9z+DBpqs/OfTYCTkGQ== X-YMail-OSG: 2ze9TfMVM1mZk1qOzCoVQYDaZyMgwbBy2qJZ429kXh_x9uxx1FhZrbo3xcCaWjU A8X5TWv.yQzMgrCh5ZgwN67VoAetBpYGHQhrFgVHfnC1KtVg7N4GnkGhmQTfWu3paRsTX_yvXfab PJ9DQh_KnMfrFnuFdbnuF0AKm.Wb3tOfMq_GGI5rbre68h165QcTwNRtadJVRVCTu0QMlkcQA5al ge9P2x25B5ProuJWduN.84xbpvXACA6eisaWRycZQz2ErU1ND4.c4LZ2qguu2ifF0MEwj857kXJl mv0lktWn89G8kLJMsPpKmhua6T7Tmk0w.F.PcELLO60rEMDTD4b3WWod7f2H3ikDjv.B5JUdwjN0 gFcEdiIqvR8DsnPClEsDFDR0qUlVwIIDqOnFxUPpUOAet.jjVXPmit6o3tPTfovw4NRUQvYLszgt .pSQRhDah8YTAF4ZW9sl9RFQvLIUYxk3noqU8bYLHLYG_2z9uwEK.4bS.hGF6sYdDLhL_1ZBgruz 4ij0b.0eY2hLmiBut2DT7UeCOXiidYjSeQwSwqR5gWwYayQisXICqswiyQ153YGVspdlFgfwfV2z rfLQfpy8urs_1O8is4MIipEQrpv1VsnUiGAmWlKNlXvQZ8qVxnDitr3ofmyDZZn0bPNWmJlTYPJq AO89oh_ypVIDbT5qn0xBnOjE4zHeGcgi211AEesmxRQOFttYlAoyTYZWvql_h90jTiedzzOw2I9s aju2Dyuz.GUs4lDN166U5eUUHQJ9iQGyxyUdy9hMFX1jNNfjQaAkL9dGgNxTtBaoQKyu8xrzCoED Z7cabc4GEwNV1pda9MlxlqBomQdawvO7YKrA50KLTM X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sun, 17 Apr 2022 23:59:50 +0000 Original-Received: by hermes--canary-production-sg3-cfddc4f9d-gtcd4 (VZM Hermes SMTP Server) with ESMTPA ID 4c773bd564a55e0cfba0030c0ba88dc2; Sun, 17 Apr 2022 23:59:45 +0000 (UTC) In-Reply-To: <86mtgjh13r.fsf@gmail.com> (=?utf-8?Q?=22Andr=C3=A9s_Ram?= =?utf-8?Q?=C3=ADrez=22's?= message of "Sun, 17 Apr 2022 21:05:44 +0000") X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.84; envelope-from=luangruo@yahoo.com; helo=sonic306-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288581 Archived-At: Andr=C3=A9s Ram=C3=ADrez writes: > Hi. > > The first time I used the --daemon command line option I got: > ,---- [ ] > | Warning: due to a long standing Gtk+ bug > | https://gitlab.gnome.org/GNOME/gtk/issues/221 > | Emacs might crash when run in daemon mode and the X11 connection is une= xpectedly lost. > | Using an Emacs configured with --with-x-toolkit=3Dlucid does not have t= his problem. > | Starting Emacs daemon. > `---- > > The output of that message lead me to the lucid toolkit. > > Also the first time I did M-x report-emacs-bug I got: > ,---- [ ] > | Please describe exactly what actions triggered the bug > | and the precise symptoms of the bug. If you can, give > | a recipe starting from `emacs -Q': > `---- > > That's the reason for trying to get a proper backtrace for this case. > > Having said that this is the recipe for the missing backtrace: > source code: emacs-28.1.tar.xz > compiled emacs with: "--enable-checking=3Dyes,glyphs --enable-check-lisp-= object-type 'CFLAGS=3D-O0 -g3' --with-cairo --with-harfbuzz --with-modules = --with-wide-int --with-x-toolkit=3Dlucid --with-json=3Dyes --with-xft" --with-xft has no effect when you specify --with-cairo, so I'll assume you've actually built Emacs with cairo support. Crystal ball says it's somehow related to that. > 1. @host ./emacs -Q -f toggle-debug-on-error --daemon > 2. @host emacsclient -c -n --eval '(eshell)' > 3. on eshell-buffer emacs-version Return=20 > 4. @remoteMachine emacsclient -c -n ~/.bashrc {inside xterm} {JIC: be4 do= 'ssh -Y user@host'} {.bashrc could have just a comment character} > 5. M-x dired-jump > 6. M-x eval-expression "(x-synchronize t)" {without the quotes}{when doin= g this step do not do #8} > 7. M-x close-display-connection {both opened frames close, and emacs abor= ts. check trying to open a new-frame} > 8. type exit and press Return on xterm. {this step depends on step#6} > > Expected Output: > emacs crash {it's an emacs_abort} > Both opened frames close. #2 and #4 > > NOTE: when starting emacs without calling 'toggle-debug-on-error' after s= tep#7 when You open a new > frame. You could get the message: > 'X protocol error: RenderBadGlyph (invalid Glyph parameter) on protocol r= equest 139' > > For Trying to get backtrace I have appended those lines to the file > /tmp/emacs/src/emacs-28.1/src/.gdbinit > > ,---- [ ] > | #@theEndOf close-display-connection x-close-connection is called > | # b xfns.c:x-close-connection # does not work > | b xterm.c:x_delete_terminal > | b xterm.c:x_delete_display > | b terminal.c:delete_terminal > | b frame.c:delete_frame #very long function > | b sysdep.c:emacs_abort > | b emacs.c:terminate_due_to_signal > `---- > > Those breakpoints never get hitted. The .gdbinit file defines commands in GDB which are useful for debugging Emacs, but it is useless without attaching a debugger to Emacs in the first place.