From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Andr=C3=A9s_Ram=C3=ADrez?= Newsgroups: gmane.emacs.devel Subject: help needed for getting a backtrace ( multi-head emacs_abort on lucid-frame) Date: Sun, 17 Apr 2022 21:05:44 +0000 Message-ID: <86mtgjh13r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35577"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 17 23:07:32 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 1ngC7H-00093D-Dh for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Apr 2022 23:07:31 +0200 Original-Received: from localhost ([::1]:41398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngC7G-0008R0-BS for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Apr 2022 17:07:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngC5l-0006Ca-Og for emacs-devel@gnu.org; Sun, 17 Apr 2022 17:05:57 -0400 Original-Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]:34858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngC5k-0000XB-0o for emacs-devel@gnu.org; Sun, 17 Apr 2022 17:05:57 -0400 Original-Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-e2fa360f6dso12641164fac.2 for ; Sun, 17 Apr 2022 14:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=neWJQwlNFLCDrnHxNbuUrZZ/nFqTBbn47g/8zpKxvbI=; b=pL98QqDcW+aIYyFRHR05kI9/k+B5C1tMewA+XzWY8bM7qvS4lzHMyQsXQZPN2INo/I cCsM0v28T40uXAChkbN6qvEZ80L4ZSJS6KMeT9pDMx/EG77n1zyYd/gc1/0tfCOaNjxO gV7yEfWRFUQt4ztaKPqbx76KNbW8UVRLv5qSfUAIR+OjN/G1IXdBjfugkG4kOSNjg+XP 4l3ylAgCVhI0hrFh7RN4YcKVQiy8BPsoi11mNCh0m9SE7zJbjFFROhOqfY+g0R2dwsEe 1KvwplDSg/H6j09MxFks0MIV4y9O0ykCNNzFj7/oMuTRTL2nGhARbQdfsRkRMiaio1L7 wuuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=neWJQwlNFLCDrnHxNbuUrZZ/nFqTBbn47g/8zpKxvbI=; b=MqjcKeywzSk+s0zS1Qm+HjOPpav41tcSqcNMRlITQCUzd83UIqDj3evv/Tfe1isXzd HsJD3yXJGINX/2czhf54J1TU49Nsz2XOw41YR07nxgyZ3Mne4D4vVkGSNJKgsP+oFyUB aK2en7mxWxI2z0QzY2VX1u+1J4m4S5L8NErzmiSOP6GJwUPPSv3cMYVl9SRaWK51sLwR pPQ4RIcQX2oKx+uQTOOhxzkWh5pBT+DOZ30rzE5gWIR4C/yeu/yergB2cnS6Oxk/l8Ay 28HuaycamupluT321WdAJsVyXwUHJBoBYDYcMb2RV1ZrPI5/i4fntFxdI0InCT/1P7Qh LYRA== X-Gm-Message-State: AOAM530pDD89bkHkdlRpIhZAzMKHolm4AsdzIIxr9qOwY0jh+6ghpsa1 BC5kq9ArISaIZs52634UK6UNap4S76Q= X-Google-Smtp-Source: ABdhPJzUipeRb7A1w3CtQP1Zc8WAek5MoakJJ+ZRYmtNPtGVAMo21RZjO33F3Pn/OTeBOVz98gQQ6Q== X-Received: by 2002:a05:6870:248b:b0:e5:9d7d:8795 with SMTP id s11-20020a056870248b00b000e59d7d8795mr3137125oaq.74.1650229553789; Sun, 17 Apr 2022 14:05:53 -0700 (PDT) Original-Received: from sacsa.n800.arm.processor.yandex.fm ([190.237.25.227]) by smtp.gmail.com with ESMTPSA id b20-20020a4a3414000000b00339e0afec88sm1940016ooa.31.2022.04.17.14.05.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Apr 2022 14:05:53 -0700 (PDT) Received-SPF: pass client-ip=2001:4860:4864:20::29; envelope-from=rrandresf@gmail.com; helo=mail-oa1-x29.google.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, 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:288577 Archived-At: 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 unexpectedly lost. | Using an Emacs configured with --with-x-toolkit=lucid does not have this 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=yes,glyphs --enable-check-lisp-object-type 'CFLAGS=-O0 -g3' --with-cairo --with-harfbuzz --with-modules --with-wide-int --with-x-toolkit=lucid --with-json=yes --with-xft" --8<---------------cut here---------------start------------->8--- 1. @host ./emacs -Q -f toggle-debug-on-error --daemon 2. @host emacsclient -c -n --eval '(eshell)' 3. on eshell-buffer emacs-version Return 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 doing this step do not do #8} 7. M-x close-display-connection {both opened frames close, and emacs aborts. check trying to open a new-frame} 8. type exit and press Return on xterm. {this step depends on step#6} --8<---------------cut here---------------end--------------->8--- 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 step#7 when You open a new frame. You could get the message: 'X protocol error: RenderBadGlyph (invalid Glyph parameter) on protocol request 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. Please. Let me know the right way of getting a backtrace on this situation. Best Regards