From unknown Fri Jun 20 05:25:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#29548 <29548@debbugs.gnu.org> To: bug#29548 <29548@debbugs.gnu.org> Subject: Status: 25.2; How to DEBUG get-device-terminal Reply-To: bug#29548 <29548@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:25:04 +0000 retitle 29548 25.2; How to DEBUG get-device-terminal reassign 29548 emacs submitter 29548 Live System User severity 29548 normal tag 29548 moreinfo wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 03 10:42:17 2017 Received: (at submit) by debbugs.gnu.org; 3 Dec 2017 15:42:17 +0000 Received: from localhost ([127.0.0.1]:43539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLWPJ-0005W2-Ek for submit@debbugs.gnu.org; Sun, 03 Dec 2017 10:42:17 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLWPH-0005Vl-SF for submit@debbugs.gnu.org; Sun, 03 Dec 2017 10:42:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLWPB-0005UF-8w for submit@debbugs.gnu.org; Sun, 03 Dec 2017 10:42:10 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51859) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eLWPB-0005U8-5f for submit@debbugs.gnu.org; Sun, 03 Dec 2017 10:42:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLWP9-0005Ln-Fs for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2017 10:42:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLWP6-0005TM-Ad for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2017 10:42:07 -0500 Received: from omr-a005e.mx.aol.com ([204.29.186.50]:55871) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eLWP6-0005Ss-68 for bug-gnu-emacs@gnu.org; Sun, 03 Dec 2017 10:42:04 -0500 Received: from mtaout-aao01.mx.aol.com (mtaout-aao01.mx.aol.com [172.27.21.13]) by omr-a005e.mx.aol.com (Outbound Mail Relay) with ESMTP id 611913800087 for ; Sun, 3 Dec 2017 10:42:02 -0500 (EST) Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-aao01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id C54A338000089 for ; Sun, 3 Dec 2017 10:42:01 -0500 (EST) From: Live System User To: bug-gnu-emacs@gnu.org Subject: 25.2; How to DEBUG get-device-terminal Date: Sun, 03 Dec 2017 10:42:00 -0500 Message-ID: <87d13v24zb.fsf@aol.com> MIME-Version: 1.0 Content-Type: text/plain x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1512315722; bh=QRHrA5WYv+OH4YKqe+aJYKgeDfZn2HLy/hhCSdw364o=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=R8WXcc9OTDfRYFxVan8cqyk7Cj8ypzSYj/mDlYT0eNsePq9oGabPtzYToBoTpLVNC jqSzs1jmdgxOrfoXiEvmCL4AynFTQ8cNZAj8bdT7PNKbXjVdEmgQnH4X9aWV0cDRD7 x+FcwPL9RdjOBDYGhRfZQe2hkABxfKcBTfZWjSqM= x-aol-sid: 3039ac1b150d5a241b496bb6 X-AOL-IP: 73.16.70.190 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hi, I currently have an Emacs (GUI) proceaa giving the error: get-device-terminal: Invalid argument # in 'get-device-terminal' Error running timer battery-update-handler' (error Invalid argument # in 'get-device-terminal'") I belive this happened in my setup after I did the following in conjuction with an Emacs daemon process: (From a terminall shell prompt) $ emacsclient -c file1.txt (Emacs frame pops up) From another terminal shell prompt:: $ emacsclient -t file1.txt (terminal shows Emacs with file1.txt buffer) 'C-x 5 0' "(delete-frame)" in Emacs (TTY) (terminal "clears" -- Emacs (TTY) mo longer on scree, as expected, but mot returned to system shell prompt) (Emacs (GUI) frame starts showing 'get-device-terminql' error messages abd is umresponsive to any keyboard input) This Emacs process is still avaiable to GDB, if useful. If not, the only thing else I can do is to kill the Emacs process(es) from the command line. Please advixe. Thanks. In GNU Emacs 25.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.20.10) of 2017-05-02 built on buildvm-17.phx2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.11803000 Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Summary Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: nnimap read 136k from imap.aim.com [2 times] nnimap read 152k from imap.aim.com nnimap read 160k from imap.aim.com [2 times] nnimap read 176k from imap.aim.com nnimap read 184k from imap.aim.com Fetching headers for nnimap+aol:INBOX...done Scoring...done Sorting threads...done Generating summary...done Quit previous-line: Beginning of buffer [9 times] Load-path shadows: None found. Features: (shadow emacsbug sendmail sort gnus-cite smiley ansi-color shr-color color shr dom subr-x browse-url mail-extr gnus-async gnus-bcklg qp gnus-ml disp-table cursor-sensor nndraft nnmh nndoc mm-archive jka-compr timezone url-http url-gw url-cache url-auth url-handlers utf-7 rfc2104 nnfolder network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache epa-file epa derived nnreddit mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs url-vars json map seq byte-opt bytecomp byte-compile cl-extra cconv gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap cl gv sieve sieve-mode sieve-manage nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc parse-time gnus-spec gnus-int gnus-range message dired format-spec rfc822 mml mml-sec password-cache epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems wid-edit nnoo nnheader gnus-util mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 341497 43309) (symbols 48 125854 0) (miscs 40 215 249) (strings 32 108374 6729) (string-bytes 1 3799327) (vectors 16 26887) (vector-slots 8 926120 60648) (floats 8 571 497) (intervals 56 11919 146) (buffers 976 45) (heap 1024 65802 17295)) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 03 11:09:32 2017 Received: (at 29548) by debbugs.gnu.org; 3 Dec 2017 16:09:32 +0000 Received: from localhost ([127.0.0.1]:43586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLWpg-00087F-1h for submit@debbugs.gnu.org; Sun, 03 Dec 2017 11:09:32 -0500 Received: from mail-it0-f44.google.com ([209.85.214.44]:42610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLWpe-000872-RI for 29548@debbugs.gnu.org; Sun, 03 Dec 2017 11:09:31 -0500 Received: by mail-it0-f44.google.com with SMTP id p139so7391253itb.1 for <29548@debbugs.gnu.org>; Sun, 03 Dec 2017 08:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Z0mnk1Mf/QJ5sEhr4Io3aFHNb+GbTkpaTCurcZBhJfo=; b=FLWQm/TKPXy4yrMLXA31x114oMHvsrSb4Kt5VVY6D2rmjyhK+qwserpwm67J6iM58T Fr8ae2ARoTP+AiZ4Ko0roGGGKCapnsUSZVdRn7lTnipEUIXIE6Y61vFba1tkGng5m/Kt ltHZ08POplJrrsI+IvLGaGAi1+GzrsmSh6N0bEqsRz4BsSq+wJI0FKMk0vxp629xF8Rf utz7DKt5bkZiEZbPiTZlJnXzw+dsN5UsSg5gcSXV0XUTDMe+c2tasm9BnyJvnbFnjemi 0Uf6kd9fCAtjcOUXjZA3Rf6yLLPH/VYCbu2b9Y9H/AMKXMWSKkA5ikn41Na6/P1Ni1M5 g/0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Z0mnk1Mf/QJ5sEhr4Io3aFHNb+GbTkpaTCurcZBhJfo=; b=r748QEbny7TII0GD6rkNrnDRgQo8hvA/cMYVcRTzUlVxUoa1nx0GpVpkX1tLuLh/sz bND2PJ7fn4kf4NfWsX8w5uHwnvrXzwIVIkc8/dl3Ub3Lrs6G4tGGGtcDKed5OHHS3JA9 iO4f2zF6hMyjgzStVXJ8NxtCTCKlIpQPmopjHnH5IUKON60Gh8LZerNzEOw1yPsY1qVm t11PuQkdeEGjlsGCoztSdsXF42INsx2LgrcJLwUXNDpGHtnzAFbaCEpShyeKyxCtpa7W CqasUO7LcGkgKpcOn+IdtFUSAN2xxRqMGqaWbS1f/NgjW/ErKjofXfXtNI7OCuioluFh XLQQ== X-Gm-Message-State: AKGB3mLvHSVcQAh4GFYard5lE5PN0LVsv1i0leHp+HEJh3I24/hbG9a7 hIyWAq83uSBhMNF1uj96XyBSLw== X-Google-Smtp-Source: AGs4zMabPT7O3LNZ8+AN2kOKd3H4x4XNqhA07sedjO38bsmXZSmTpkgU82tyx6bcOtoIl5prbHK4tg== X-Received: by 10.36.222.68 with SMTP id d65mr1417053itg.67.1512317365186; Sun, 03 Dec 2017 08:09:25 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 140sm1241039itx.3.2017.12.03.08.09.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Dec 2017 08:09:24 -0800 (PST) From: Noam Postavsky To: Live System User Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal References: <87d13v24zb.fsf@aol.com> Date: Sun, 03 Dec 2017 11:09:23 -0500 In-Reply-To: <87d13v24zb.fsf@aol.com> (Live System User's message of "Sun, 03 Dec 2017 10:42:00 -0500") Message-ID: <87k1y3iyj0.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 29548 Cc: 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) Live System User writes: > Hi, > > I currently have an Emacs (GUI) proceaa giving the > error: > > get-device-terminal: Invalid argument # in > 'get-device-terminal' > Error running timer battery-update-handler' (error Invalid argument > # in 'get-device-terminal'") > > I belive this happened in my setup after I did the following > in conjuction with an Emacs daemon process: > > (From a terminall shell prompt) > $ emacsclient -c file1.txt > (Emacs frame pops up) > > From another terminal shell prompt:: > $ emacsclient -t file1.txt > (terminal shows Emacs with file1.txt buffer) > 'C-x 5 0' "(delete-frame)" in Emacs (TTY) > (terminal "clears" -- Emacs (TTY) mo longer on scree, as > expected, but mot returned to system shell prompt) > (Emacs (GUI) frame starts showing 'get-device-terminql' > error messages abd is umresponsive to any keyboard input) > > This Emacs process is still avaiable to GDB, if useful. Looks like that error comes from a condition-case-unless-debug handler (in timer-event-handler). Can you set `debug-on-error' from an emacsclient and get a backtrace? Otherwise I think 'break Fsignal' in GDB should give some info as well (make sure that src/.gdbinit is sourced so you get a lisp backtrace in addition to the C one). From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 03 16:19:11 2017 Received: (at control) by debbugs.gnu.org; 3 Dec 2017 21:19:11 +0000 Received: from localhost ([127.0.0.1]:43881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLbfK-0006Go-VK for submit@debbugs.gnu.org; Sun, 03 Dec 2017 16:19:11 -0500 Received: from mail-it0-f41.google.com ([209.85.214.41]:38466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLbfJ-0006GZ-EG for control@debbugs.gnu.org; Sun, 03 Dec 2017 16:19:09 -0500 Received: by mail-it0-f41.google.com with SMTP id r6so2089087itr.3 for ; Sun, 03 Dec 2017 13:19:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=7f7Vfz0bKSaWwXZt0ZrZOmSiBcAmrZl1Y6i+5tPc76s=; b=uprJykE9r8RIctPhG/9/NFMeIr62mkL98+Er0Y+9gR2GM4KFtgLA0mlVx+r9bo9++0 rLU+FzepDG8hWEd5MNEqNRm1/Ks+R2u/rJLPJg9zyzcpItaOe4h+ejfa30GulvN8gfS2 lBWlXKmmDDpqjLj37yKpvI48dC9H1r3ty0quWgCBSSXqBNUA7HHfSNdvaK74cKldzTiA W7iyKHwFA/DaswuqkXfBkoKkd+HNNv/3JF+0q35g8zRVB7oKc4wFaTKP350Ut89j006S VGrnxdaiZTH7Y9vjsSwLSyK5XUVl0PXe5yfcR9rJx+eXsgolm0pXRFgp+odOG+gHAlCE 70bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=7f7Vfz0bKSaWwXZt0ZrZOmSiBcAmrZl1Y6i+5tPc76s=; b=ubPPDg5/G/tLV09KKOHWTH/2maREWJd5LAEfDi3UeB65jR0pDxLKCgQNCeyQt23iQ+ iBJDxGlXTMXffTa/7bQEAfrIpxmyKxtjM4aEl2CWdLFBSE7WFX+uwlqSjrnMn4NkSI+/ WdOuv3pD44+5RXTf+skoB/4hLYYnwdx9PCtpi18iJHJ2tqYWCsDofPY1GvHP0xXySUIS 48LyVl4YU34h3ZDdtv7Pz1b8zdAiFxLG1iI2uzIULsNPXbqJ5e1H9H8ougeQ0SEFsJta XvyeaXXeBU44CyLLN/doL6sZZPNU2qFNcwURV3gGUVDVOIUdVFFGHLcopccFNw7Y8771 oulg== X-Gm-Message-State: AKGB3mIJQGTNLsiqLaafl4iyjLejPRrooZc72sBktiC18WPaK5EqN+jI EsTVuq/pBC14kAkgzsj2k8b+2A== X-Google-Smtp-Source: AGs4zMYILW+ETixRrME+HVQtH0YQr1wfuIyRZffO0H7ryszMcxHiU5BvS2sXTQnYgW0ZkCpw050oiA== X-Received: by 10.36.127.67 with SMTP id r64mr10241750itc.4.1512335943773; Sun, 03 Dec 2017 13:19:03 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id o73sm3042522ito.4.2017.12.03.13.19.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Dec 2017 13:19:02 -0800 (PST) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #29548 Date: Sun, 03 Dec 2017 16:19:01 -0500 Message-ID: <87y3mjh5mi.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) merge 29548 22362 quit From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 06 13:49:20 2017 Received: (at 29548) by debbugs.gnu.org; 6 Dec 2017 18:49:20 +0000 Received: from localhost ([127.0.0.1]:49420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMekx-0008ES-Q3 for submit@debbugs.gnu.org; Wed, 06 Dec 2017 13:49:20 -0500 Received: from omr-m006e.mx.aol.com ([204.29.186.6]:61188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMeku-0008EC-Jm for 29548@debbugs.gnu.org; Wed, 06 Dec 2017 13:49:17 -0500 Received: from mtaout-mab01.mx.aol.com (mtaout-mab01.mx.aol.com [172.26.249.81]) by omr-m006e.mx.aol.com (Outbound Mail Relay) with ESMTP id 542F938000AD; Wed, 6 Dec 2017 13:49:11 -0500 (EST) Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-mab01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 4DBCA38000089; Wed, 6 Dec 2017 13:49:10 -0500 (EST) From: Live System User To: Noam Postavsky Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal In-Reply-To: <87k1y3iyj0.fsf@users.sourceforge.net> (Noam Postavsky's message of "Sun, 03 Dec 2017 11:09:23 -0500") References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Date: Wed, 06 Dec 2017 13:49:05 -0500 Message-ID: <87609j1yla.fsf@aol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1512586151; bh=wm5+SDGrs+nl/+BXLffXabCDJs6kGPKwdUC2zX5O5ZE=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=4oxLMsGGvaiHDJwLkTCmg144WH6oBRiJZ6CY/7kpX7y5LEK9cPInkxnZf4Ik4cv8J CfnIEIqhZB95soizG4oi5IqDp8HZ8mWsqIuSY2SCe2mw1nQkogu4LRqNOtVZs177tu nT5L2wHy9hMC6oMXx86S9H7KkSf1PuePiNQ1zJaI= x-aol-sid: 3039ac1af9515a283ba67403 X-AOL-IP: 73.16.70.190 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 29548 Cc: 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Noam Postavsky writes: > Live System User writes: > >> Hi, >> >> I currently have an Emacs (GUI) proceaa giving the >> error: >> >> get-device-terminal: Invalid argument # in >> 'get-device-terminal' >> Error running timer battery-update-handler' (error Invalid argument >> # in 'get-device-terminal'") >> >> I belive this happened in my setup after I did the following >> in conjuction with an Emacs daemon process: >> >> (From a terminall shell prompt) >> $ emacsclient -c file1.txt >> (Emacs frame pops up) >> >> From another terminal shell prompt:: >> $ emacsclient -t file1.txt >> (terminal shows Emacs with file1.txt buffer) >> 'C-x 5 0' "(delete-frame)" in Emacs (TTY) >> (terminal "clears" -- Emacs (TTY) mo longer on scree, as >> expected, but mot returned to system shell prompt) >> (Emacs (GUI) frame starts showing 'get-device-terminql' >> error messages abd is umresponsive to any keyboard input) >> >> This Emacs process is still avaiable to GDB, if useful. > > Looks like that error comes from a condition-case-unless-debug handler > (in timer-event-handler). Can you set `debug-on-error' from an > emacsclient and get a backtrace? Otherwise I think 'break Fsignal' in > GDB should give some info as well (make sure that src/.gdbinit is > sourced so you get a lisp backtrace in addition to the C one). $ emacsclient --eval "(setq debug-on-error t)" emacsclient: can't find socket; have you started the server? To start the server in Emacs, type "M-x server-start". *ERROR*: Invalid argument # in =E2=80=98get-device-terminal=E2= =80=99 (gdb) source ~/.gdbinit.emacs-25=20 Warning: /home/liveuser/../lwlib: No such file or directory. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from te= rminal] DISPLAY =3D :0 TERM =3D gnome-256color Breakpoint 1 at 0x4f17d0: file ../../src/emacs.c, line 353. Temporary breakpoint 2 at 0x50a490: init_sys_modes. (3 locations) (gdb) break Fsignal Breakpoint 3 at 0x566a50: file ../../src/eval.c, line 1470. (gdb) c Continuing. Thread 1 "emacs" hit Breakpoint 3, Fsignal (error_symbol=3DXIL(0x4b00),=20 data=3DXIL(0x2451413)) at ../../src/eval.c:1470 1470 { (gdb) list 1465 See Info anchor `(elisp)Definition of signal' for some details on how = this 1466 error message is constructed. 1467 If the signal is handled, DATA is made available to the handler. 1468 See also the function `condition-case'. */) 1469 (Lisp_Object error_symbol, Lisp_Object data) 1470 { 1471 /* When memory is full, ERROR-SYMBOL is nil, 1472 and DATA is (REAL-ERROR-SYMBOL . REAL-DATA). 1473 That is a special case--don't do this in other situations. */ 1474 Lisp_Object conditions; (gdb)=20 (gdb) bt #0 Fsignal (error_symbol=3DXIL(0x4b00), data=3DXIL(0x2451413)) at ../../src/eval.c:1470 #1 0x00000000005668d5 in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7ffe5e= 974a90) at ../../src/eval.c:2702 #2 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 vector=3D, maxdepth=3D,=20 args_template=3D, nargs=3Dnargs@entry=3D2, args=3D,=20 args@entry=3D0x878274 ) at ../../src/bytecode.c:880 #3 0x0000000000566416 in funcall_lambda (fun=3DXIL(0x7ffe5e974ce0),=20 nargs=3Dnargs@entry=3D2, arg_vector=3D0x878274 ,=20 arg_vector@entry=3D0x7ffe5e974c48) at ../../src/eval.c:2863 #4 0x00000000005666db in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7ffe5e= 974c40) at ../../src/eval.c:2760 #5 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 vector=3D, maxdepth=3D,=20 args_template=3D, nargs=3Dnargs@entry=3D1, args=3D,=20 args@entry=3D0x97c484 ) at ../../src/bytecode.c:880 #6 0x0000000000566416 in funcall_lambda (fun=3DXIL(0x7ffe5e974ea0),=20 nargs=3Dnargs@entry=3D1, arg_vector=3D0x97c484 ,=20 arg_vector@entry=3D0x7ffe5e974e08) at ../../src/eval.c:2863 #7 0x00000000005666db in Ffuncall (nargs=3D2, args=3Dargs@entry=3D0x7ffe5e= 974e00) at ../../src/eval.c:2760 #8 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 ---Type to continue, or q to quit--- vector=3D, maxdepth=3D,=20 args_template=3D, nargs=3Dnargs@entry=3D1, args=3D,=20 args@entry=3D0x97c5d4 ) at ../../src/bytecode.c:880 #9 0x0000000000566416 in funcall_lambda (fun=3DXIL(0x7ffe5e975040),=20 nargs=3Dnargs@entry=3D1, arg_vector=3D0x97c5d4 ,=20 arg_vector@entry=3D0x7ffe5e974fc0) at ../../src/eval.c:2863 #10 0x00000000005666db in Ffuncall (nargs=3D2, args=3Dargs@entry=3D0x7ffe5e= 974fb8) at ../../src/eval.c:2760 #11 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 vector=3D, maxdepth=3D,=20 args_template=3Dargs_template@entry=3DXIL(0), nargs=3Dnargs@entry=3D0,= =20 args=3D, args@entry=3D0x0) at ../../src/bytecode.c:880 #12 0x00000000005662ed in funcall_lambda (fun=3DXIL(0x8a6a3d),=20 nargs=3Dnargs@entry=3D1, arg_vector=3Darg_vector@entry=3D0x7ffe5e9751c8) at ../../src/eval.c:2929 #13 0x00000000005666db in Ffuncall (nargs=3Dnargs@entry=3D2,=20 args=3Dargs@entry=3D0x7ffe5e9751c0) at ../../src/eval.c:2760 #14 0x00000000005669da in call1 (fn=3Dfn@entry=3DXIL(0x8a6a3d),=20 arg1=3D) at ../../src/eval.c:2558 #15 0x000000000056daaa in mapcar1 (leni=3Dleni@entry=3D3,=20 vals=3Dvals@entry=3D0x7ffe5e975250, fn=3Dfn@entry=3DXIL(0x8a6a3d),=20 seq=3Dseq@entry=3DXIL(0x2452103)) at ../../src/fns.c:2522 #16 0x000000000056e175 in Fmapcar (function=3DXIL(0x8a6a3d),=20 ---Type to continue, or q to quit--- sequence=3DXIL(0x2452103)) at ../../src/fns.c:2587 #17 0x00000000005668d5 in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7ffe5e= 9753a0) at ../../src/eval.c:2702 #18 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 vector=3D, maxdepth=3D,=20 args_template=3Dargs_template@entry=3DXIL(0), nargs=3Dnargs@entry=3D0,= =20 args=3D, args@entry=3D0x0) at ../../src/bytecode.c:880 #19 0x00000000005662ed in funcall_lambda (fun=3DXIL(0x8a69bd),=20 nargs=3Dnargs@entry=3D0, arg_vector=3Darg_vector@entry=3D0x7ffe5e9755b0) at ../../src/eval.c:2929 #20 0x00000000005666db in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7ffe5e= 9755a8) at ../../src/eval.c:2760 #21 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 vector=3D, maxdepth=3D,=20 args_template=3Dargs_template@entry=3DXIL(0), nargs=3Dnargs@entry=3D0,= =20 args=3D, args@entry=3D0x0) at ../../src/bytecode.c:880 #22 0x00000000005662ed in funcall_lambda (fun=3Dfun@entry=3DXIL(0x8acec5),= =20 nargs=3Dnargs@entry=3D3, arg_vector=3Darg_vector@entry=3D0x7ffe5e975710) at ../../src/eval.c:2929 #23 0x0000000000565768 in apply_lambda (fun=3DXIL(0x8acec5),=20 args=3D, count=3Dcount@entry=3D26) at ../../src/eval.c:2= 800 #24 0x0000000000565aca in eval_sub (form=3D) at ../../src/eval.c:2247 ---Type to continue, or q to quit--- #25 0x000000000056645d in Fprogn (body=3DXIL(0x25d0603)) at ../../src/eval.= c:431 #26 funcall_lambda (fun=3DXIL(0x25d05c3), nargs=3Dnargs@entry=3D0,=20 arg_vector=3Darg_vector@entry=3D0x7ffe5e9759e8) at ../../src/eval.c:2922 #27 0x00000000005666db in Ffuncall (nargs=3D1, args=3D0x7ffe5e9759e0) at ../../src/eval.c:2760 #28 0x0000000000566939 in funcall_nil (nargs=3D,=20 args=3D) at ../../src/eval.c:2338 #29 0x0000000000564a55 in run_hook_with_args (nargs=3D1, args=3D0x7ffe5e975= 9e0,=20 funcall=3D0x566930 ) at ../../src/eval.c:2515 #30 0x0000000000564c33 in run_hook_with_args (funcall=3D,=20 args=3D, nargs=3D) at ../../src/eval.c:23= 61 #31 Frun_hook_with_args (args=3D0x7ffe5e9759e0, nargs=3D1) at ../../src/eva= l.c:2380 #32 run_hook (hook=3D) at ../../src/eval.c:2528 #33 Frun_hooks (nargs=3D1, args=3D0x7ffe5e975ac8) at ../../src/eval.c:2362 #34 0x00000000005667e9 in Ffuncall (nargs=3Dnargs@entry=3D2,=20 args=3Dargs@entry=3D0x7ffe5e975ac0) at ../../src/eval.c:2679 #35 0x00000000005669da in call1 (fn=3D,=20 arg1=3Darg1@entry=3DXIL(0x2e80)) at ../../src/eval.c:2558 #36 0x000000000051107a in Fget_buffer_create (buffer_or_name=3D) at ../../src/buffer.c:591 #37 0x00000000005668e0 in Ffuncall (nargs=3D2, args=3Dargs@entry=3D0x7ffe5e= 975bc0) at ../../src/eval.c:2699 #38 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 ---Type to continue, or q to quit--- vector=3D, maxdepth=3D,=20 args_template=3D, nargs=3Dnargs@entry=3D1, args=3D,=20 args@entry=3D0x8c314c ) at ../../src/bytecode.c:880 #39 0x0000000000566416 in funcall_lambda (fun=3DXIL(0x7ffe5e975e30),=20 nargs=3Dnargs@entry=3D1, arg_vector=3D0x8c314c ,=20 arg_vector@entry=3D0x7ffe5e975d60) at ../../src/eval.c:2863 #40 0x00000000005666db in Ffuncall (nargs=3D2, args=3Dargs@entry=3D0x7ffe5e= 975d58) at ../../src/eval.c:2760 #41 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 vector=3D, maxdepth=3D,=20 args_template=3Dargs_template@entry=3DXIL(0), nargs=3Dnargs@entry=3D0,= =20 args=3D, args@entry=3D0x0) at ../../src/bytecode.c:880 #42 0x00000000005662ed in funcall_lambda (fun=3DXIL(0x1357aa5),=20 nargs=3Dnargs@entry=3D0, arg_vector=3Darg_vector@entry=3D0x7ffe5e975fc0) at ../../src/eval.c:2929 #43 0x00000000005666db in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7ffe5e= 975fb8) at ../../src/eval.c:2760 #44 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 vector=3D, maxdepth=3D,=20 args_template=3Dargs_template@entry=3DXIL(0), nargs=3Dnargs@entry=3D0,= =20 args=3D, args@entry=3D0x0) at ../../src/bytecode.c:880 #45 0x00000000005662ed in funcall_lambda (fun=3DXIL(0x1355a05),=20 nargs=3Dnargs@entry=3D0, arg_vector=3Darg_vector@entry=3D0x7ffe5e9761e0) ---Type to continue, or q to quit--- at ../../src/eval.c:2929 #46 0x00000000005666db in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7ffe5e= 9761d8) at ../../src/eval.c:2760 #47 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 vector=3D, maxdepth=3D,=20 args_template=3Dargs_template@entry=3DXIL(0), nargs=3Dnargs@entry=3D0,= =20 args=3D, args@entry=3D0x0) at ../../src/bytecode.c:880 #48 0x00000000005662ed in funcall_lambda (fun=3DXIL(0x135594d),=20 nargs=3Dnargs@entry=3D0, arg_vector=3Darg_vector@entry=3D0x7ffe5e976508) at ../../src/eval.c:2929 #49 0x00000000005666db in Ffuncall (nargs=3Dnargs@entry=3D1,=20 args=3Dargs@entry=3D0x7ffe5e976500) at ../../src/eval.c:2760 #50 0x0000000000567d0c in Fapply (nargs=3D2, args=3D0x7ffe5e976500) at ../../src/eval.c:2280 #51 0x00000000005667e9 in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7ffe5e= 9764f8) at ../../src/eval.c:2679 #52 0x000000000059f173 in exec_byte_code (bytestr=3D,=20 vector=3D, maxdepth=3D,=20 args_template=3Dargs_template@entry=3DXIL(0), nargs=3Dnargs@entry=3D0,= =20 args=3D, args@entry=3D0x0) at ../../src/bytecode.c:880 #53 0x00000000005662ed in funcall_lambda (fun=3DXIL(0x9b3855),=20 nargs=3Dnargs@entry=3D1, arg_vector=3Darg_vector@entry=3D0x7ffe5e976718) at ../../src/eval.c:2929 ---Type to continue, or q to quit--- #54 0x00000000005666db in Ffuncall (nargs=3Dnargs@entry=3D2,=20 args=3Dargs@entry=3D0x7ffe5e976710) at ../../src/eval.c:2760 #55 0x00000000005669da in call1 (fn=3Dfn@entry=3DXIL(0xb340),=20 arg1=3Darg1@entry=3DXIL(0x1356ac5)) at ../../src/eval.c:2558 #56 0x00000000004f7714 in timer_check_2 (idle_timers=3D,=20 timers=3D) at ../../src/keyboard.c:4432 #57 timer_check () at ../../src/keyboard.c:4494 #58 0x00000000005a9851 in wait_reading_process_output ( time_limit=3Dtime_limit@entry=3D0, nsecs=3Dnsecs@entry=3D0,=20 read_kbd=3Dread_kbd@entry=3D-1, do_display=3Dtrue,=20 wait_for_cell=3Dwait_for_cell@entry=3DXIL(0), wait_proc=3Dwait_proc@ent= ry=3D0x0,=20 just_wait_proc=3D0) at ../../src/process.c:4600 #59 0x00000000004fc80c in kbd_buffer_get_event (end_time=3D0x0,=20 used_mouse_menu=3D0x7ffe5e9773cb, kbp=3D) at ../../src/keyboard.c:3824 #60 read_event_from_main_queue (used_mouse_menu=3D0x7ffe5e9773cb,=20 local_getcjmp=3D0x7ffe5e976fe0, end_time=3D0x0) at ../../src/keyboard.c= :2153 #61 read_decoded_event_from_main_queue (used_mouse_menu=3D,= =20 prev_event=3D, local_getcjmp=3D,=20 end_time=3D) at ../../src/keyboard.c:2216 #62 read_char (commandflag=3Dcommandflag@entry=3D1, map=3Dmap@entry=3DXIL(0= x1f9cd43),=20 prev_event=3DXIL(0), used_mouse_menu=3Dused_mouse_menu@entry=3D0x7ffe5e= 9773cb,=20 end_time=3Dend_time@entry=3D0x0) at ../../src/keyboard.c:2804 ---Type to continue, or q to quit--- #63 0x00000000004fe62d in read_key_sequence ( keybuf=3Dkeybuf@entry=3D0x7ffe5e9774c0, prompt=3Dprompt@entry=3DXIL(0),= =20 dont_downcase_last=3Ddont_downcase_last@entry=3Dfalse,=20 can_return_switch_frame=3Dcan_return_switch_frame@entry=3Dtrue,=20 fix_current_buffer=3Dfix_current_buffer@entry=3Dtrue,=20 prevent_redisplay=3Dprevent_redisplay@entry=3Dfalse, bufsize=3D30) at ../../src/keyboard.c:9068 #64 0x0000000000500264 in command_loop_1 () at ../../src/keyboard.c:1370 #65 0x0000000000565002 in internal_condition_case ( bfun=3Dbfun@entry=3D0x500040 ,=20 handlers=3Dhandlers@entry=3DXIL(0x4b00), hfun=3Dhfun@entry=3D0x4f68c0 <= cmd_error>) at ../../src/eval.c:1315 #66 0x00000000004f1cf4 in command_loop_2 (ignore=3Dignore@entry=3DXIL(0)) at ../../src/keyboard.c:1112 #67 0x0000000000564fa3 in internal_catch (tag=3Dtag@entry=3DXIL(0xb580),=20 func=3Dfunc@entry=3D0x4f1cd0 , arg=3Darg@entry=3DXIL(0)) at ../../src/eval.c:1080 #68 0x00000000004f1cb0 in command_loop () at ../../src/keyboard.c:1091 #69 0x00000000004f64b7 in recursive_edit_1 () at ../../src/keyboard.c:697 #70 0x00000000004f6808 in Frecursive_edit () at ../../src/keyboard.c:768 #71 0x000000000041a032 in main (argc=3D2, argv=3D0x7ffe5e977848) at ../../src/emacs.c:1629 ---Type to continue, or q to quit--- Lisp Backtrace: "signal" (0x5e974a98) "error" (0x5e974c48) "get-device-terminal" (0x5e974e08) "frames-on-display-list" (0x5e974fc0) 0x8a6a38 PVEC_COMPILED "mapcar" (0x5e9753a8) "internal--before-save-selected-window" (0x5e9755b0) "walk-windows" (0x5e975710) 0x25d05c0 Lisp type 3 "run-hooks" (0x5e975ac8) "get-buffer-create" (0x5e975bc8) "generate-new-buffer" (0x5e975d60) "battery-linux-sysfs" (0x5e975fc0) "battery-update" (0x5e9761e0) "battery-update-handler" (0x5e976508) "apply" (0x5e976500) "timer-event-handler" (0x5e976718) From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 06 14:56:55 2017 Received: (at 29548) by debbugs.gnu.org; 6 Dec 2017 19:56:55 +0000 Received: from localhost ([127.0.0.1]:49562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMfoM-0003OV-LX for submit@debbugs.gnu.org; Wed, 06 Dec 2017 14:56:54 -0500 Received: from mail-wr0-f169.google.com ([209.85.128.169]:40743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMfoJ-0003OG-Fu for 29548@debbugs.gnu.org; Wed, 06 Dec 2017 14:56:51 -0500 Received: by mail-wr0-f169.google.com with SMTP id q9so5142204wre.7 for <29548@debbugs.gnu.org>; Wed, 06 Dec 2017 11:56:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+ycH8oDI0kVP0qvUkxDJJVCVgU44RFqpc0WppasBteI=; b=ThhqCQTxJ64/r/3ifkgC1tv753M8J+5XRq86SH9Id466W/s6skhP6FpExbqAAgn1ln hpNg8POzNrOWNhXbrbLAqF5v/V5JZIEd4kO3od8a4CewA5REiJ4Qh2+tF5eillSU7zO/ q4H+RR9mAkEeu5d+WfpN6ZtCld7swvYeKR/sNryIOm2yLmjMhNWQ1D4zbs9wztDGqOL8 pQmh44vIukxnPWGWwBB2Fcgjq6RNyCjVTogRTtdJgfe4mYvc0KLSlfdzpu0R2+5o6Aej dKFry2fuHIUsErQpN+Mw9c4kwdHcOlVHc8/qu2mmgqL8nC0LxBuEuFXUP1Fv+LdoPxcJ CJcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=+ycH8oDI0kVP0qvUkxDJJVCVgU44RFqpc0WppasBteI=; b=QxgcXJmy6oWLskY/60miEoQsNrC6D05U3/yrhWrHFI71iAO5IwFOqgo9RuZiltmw0o t5h9+ByEnRXsJjFgE3k6uidp2B+rD8fdqahl52cCcKPawpNV4VSqZfdWGA6+bIgwQhfM +NfJlRYGxJy/PcIuMRFtXEpbDeaMRLulOL6MaJyVqUAYULiyUWsaBKVuHmmYOiOgcMHH v+i2nwVMUwRxdEVUwCCvz0SS3OsTsZIHj8bGfPwUZPLKUA/sw70X15MuhxFNDzrFvD2y 22IGNqeSMYWpWdJFucZE/wnVvBBBf1b+Kkwwbn1cH8bobM1gDWNYyN+NKnK1ZR2y/IiT oCZA== X-Gm-Message-State: AJaThX5CeQ6DajXUXUAc7guQkjSC9G4EaH1iigKChEoRXpHD4mu0YTce xZ5BKMgWt1qB8rwlu0cOcymWYeRUynh1oG6uyUI= X-Google-Smtp-Source: AGs4zMY1ovTxaM7RvuJNiMvLaIzcEONF7V+bNtHjDWBWsDQEoYsWUgohmbSqZJ4kwh8rGTL/DFBlMOtxa6pO2xsgDEo= X-Received: by 10.223.136.162 with SMTP id f31mr21219896wrf.130.1512590205715; Wed, 06 Dec 2017 11:56:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.151.116 with HTTP; Wed, 6 Dec 2017 11:56:45 -0800 (PST) In-Reply-To: <87609j1yla.fsf@aol.com> References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> From: Noam Postavsky Date: Wed, 6 Dec 2017 14:56:45 -0500 X-Google-Sender-Auth: mr1s42gS52y1X-XZP0NlnsO_iB8 Message-ID: Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal To: Live System User Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29548 Cc: 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) On Wed, Dec 6, 2017 at 1:49 PM, Live System User wrote: > Lisp Backtrace: > "signal" (0x5e974a98) > "error" (0x5e974c48) > "get-device-terminal" (0x5e974e08) > "frames-on-display-list" (0x5e974fc0) > 0x8a6a38 PVEC_COMPILED > "mapcar" (0x5e9753a8) > "internal--before-save-selected-window" (0x5e9755b0) So this function is getting the terminal list by calling list-terminals. Try printing them out in gdb, by entering the following: define print_terminal_list set $t = terminal_list while $t print *$t set $t = $t->next_terminal end end print_terminal_list The gdb command window should like this when you do that (gdb) define print_terminal_list Type commands for definition of "print_terminal_list". End with a line saying just "end". >set $t = terminal_list >while $t >print *$t >set $t = $t->next_terminal >end >end (gdb) print_terminal_list $7 = { ...[printout of terminals follows] From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 06 19:25:14 2017 Received: (at 29548) by debbugs.gnu.org; 7 Dec 2017 00:25:14 +0000 Received: from localhost ([127.0.0.1]:49637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMk01-0003C0-Nl for submit@debbugs.gnu.org; Wed, 06 Dec 2017 19:25:14 -0500 Received: from omr-a018e.mx.aol.com ([204.29.186.64]:44731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMjzz-0003Bj-Su for 29548@debbugs.gnu.org; Wed, 06 Dec 2017 19:25:12 -0500 Received: from mtaout-aah02.mx.aol.com (mtaout-aah02.mx.aol.com [172.27.1.142]) by omr-a018e.mx.aol.com (Outbound Mail Relay) with ESMTP id 906683800082; Wed, 6 Dec 2017 19:25:06 -0500 (EST) Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-aah02.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 13A213800008A; Wed, 6 Dec 2017 19:25:03 -0500 (EST) From: Live System User To: Noam Postavsky Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal In-Reply-To: (Noam Postavsky's message of "Wed, 6 Dec 2017 14:56:45 -0500") References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Date: Wed, 06 Dec 2017 19:25:01 -0500 Message-ID: <87609jtmea.fsf@aol.com> MIME-Version: 1.0 Content-Type: text/plain x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1512606306; bh=tcCgIiaKjI3DnOK+jDf9qH9pxAlf6NsE+ciDTQpY8E8=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=8byEzzwDqRB+Vgo0KuJZ5QMX54PejxVD075qdcZsJu2o2gPcSqh3UEtmdwjp+u85Q Y4uFsFrr/bNwlapZHHoD9rzoHcRyFXv0eul3hysgzKXkheq2gyC0ZOOMjMW3vS5kYs FgVnERtlg+hmtc1CH9C63RwL/1JG+PkybQ4kdHrA= x-aol-sid: 3039ac1b018e5a288a5f79b3 X-AOL-IP: 73.16.70.190 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29548 Cc: 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Noam Postavsky writes: > On Wed, Dec 6, 2017 at 1:49 PM, Live System User wrote: > >> Lisp Backtrace: >> "signal" (0x5e974a98) >> "error" (0x5e974c48) >> "get-device-terminal" (0x5e974e08) >> "frames-on-display-list" (0x5e974fc0) >> 0x8a6a38 PVEC_COMPILED >> "mapcar" (0x5e9753a8) >> "internal--before-save-selected-window" (0x5e9755b0) > > So this function is getting the terminal list by calling > list-terminals. Try printing them out in gdb, by entering the > following: > > define print_terminal_list > set $t = terminal_list > while $t > print *$t > set $t = $t->next_terminal > end > end > print_terminal_list > > The gdb command window should like this when you do that > > (gdb) define print_terminal_list > Type commands for definition of "print_terminal_list". > End with a line saying just "end". >>set $t = terminal_list >>while $t > >print *$t > >set $t = $t->next_terminal > >end >>end > (gdb) print_terminal_list > $7 = { > ...[printout of terminals follows] (gdb) define print_terminal_list Type commands for definition of "print_terminal_list". End with a line saying just "end". >set $t = terminal_list >while $t >print *$t >set $t = $t->next_terminal >end >end (gdb) print_terminal_list $1 = { header = { size = 4611686018561773572 }, param_alist = XIL(0x2bfe553), charset_list = XIL(0x102ec33), Vselection_alist = XIL(0), glyph_code_table = XIL(0), next_terminal = 0x363e3d8, id = 5, reference_count = 0, type = output_termcap, name = 0x0, kboard = 0x4c584e0, image_cache = 0x0, display_info = { tty = 0x4160c10, x = 0x4160c10, w32 = 0x4160c10, ns = 0x4160c10 }, terminal_coding = 0x572a020, keyboard_coding = 0x8594d30, ---Type to continue, or q to quit--- rif = 0x0, cursor_to_hook = 0x4b3aa0 , raw_cursor_to_hook = 0x4b39f0 , clear_to_end_hook = 0x4b1160 , clear_frame_hook = 0x4b1ce0 , clear_end_of_line_hook = 0x4b38b0 , ins_del_lines_hook = 0x4b0e50 , insert_glyphs_hook = 0x4b4820 , write_glyphs_hook = 0x4b4500 , delete_glyphs_hook = 0x4b3720 , ring_bell_hook = 0x4b0bb0 , toggle_invisible_pointer_hook = 0x0, reset_terminal_modes_hook = 0x4b3600 , set_terminal_modes_hook = 0x4b0d00 , update_begin_hook = 0x0, update_end_hook = 0x4b35a0 , set_terminal_window_hook = 0x4b0790 , mouse_position_hook = 0x0, frame_rehighlight_hook = 0x0, frame_raise_lower_hook = 0x0, fullscreen_hook = 0x0, menu_show_hook = 0x4b2ab0 , popup_dialog_hook = 0x0, ---Type to continue, or q to quit--- set_vertical_scroll_bar_hook = 0x0, set_horizontal_scroll_bar_hook = 0x0, condemn_scroll_bars_hook = 0x0, redeem_scroll_bar_hook = 0x0, judge_scroll_bars_hook = 0x0, read_socket_hook = 0x4f8cf0 , frame_up_to_date_hook = 0x0, delete_frame_hook = 0x4b0130 , delete_terminal_hook = 0x4aff70 } $2 = { header = { size = 4611686018561773572 }, param_alist = XIL(0x3635c03), charset_list = XIL(0), Vselection_alist = XIL(0), glyph_code_table = XIL(0), next_terminal = 0xc2b460, id = 4, reference_count = 2, type = output_x_window, name = 0x3b51a70 ":0", ---Type to continue, or q to quit--- kboard = 0x3e374f0, image_cache = 0x435b910, display_info = { tty = 0x3a31c00, x = 0x3a31c00, w32 = 0x3a31c00, ns = 0x3a31c00 }, terminal_coding = 0x3f2f200, keyboard_coding = 0x446f800, rif = 0x85a520 , cursor_to_hook = 0x0, raw_cursor_to_hook = 0x0, clear_to_end_hook = 0x0, clear_frame_hook = 0x4c2500 , clear_end_of_line_hook = 0x0, ins_del_lines_hook = 0x4c0cb0 , insert_glyphs_hook = 0x0, write_glyphs_hook = 0x0, delete_glyphs_hook = 0x4c0ca0 , ring_bell_hook = 0x4c4810 , toggle_invisible_pointer_hook = 0x4c0680 , reset_terminal_modes_hook = 0x0, ---Type to continue, or q to quit--- set_terminal_modes_hook = 0x0, update_begin_hook = 0x4c05c0 , update_end_hook = 0x4c05d0 , set_terminal_window_hook = 0x0, mouse_position_hook = 0x4c8f90 , frame_rehighlight_hook = 0x4c9f20 , frame_raise_lower_hook = 0x4c4630 , fullscreen_hook = 0x4ccfe0 , menu_show_hook = 0x46dd20 , popup_dialog_hook = 0x46e680 , set_vertical_scroll_bar_hook = 0x4c1f60 , set_horizontal_scroll_bar_hook = 0x4c19d0 , condemn_scroll_bars_hook = 0x4c0630 , redeem_scroll_bar_hook = 0x4c0ab0 , judge_scroll_bars_hook = 0x4c15f0 , read_socket_hook = 0x4c2380 , frame_up_to_date_hook = 0x4c4650 , delete_frame_hook = 0x4ce160 , delete_terminal_hook = 0x4c5ea0 } $3 = { header = { size = 4611686018561773572 ---Type to continue, or q to quit--- }, param_alist = XIL(0x13a3aa3), charset_list = XIL(0x102ec33), Vselection_alist = XIL(0), glyph_code_table = XIL(0), next_terminal = 0x0, id = 0, reference_count = 1, type = output_initial, name = 0xbf45e0 "initial_terminal", kboard = 0xc26e30, image_cache = 0x0, display_info = { tty = 0x0, x = 0x0, w32 = 0x0, ns = 0x0 }, terminal_coding = 0xc2dbf0, keyboard_coding = 0xc2d980, rif = 0x0, cursor_to_hook = 0x0, raw_cursor_to_hook = 0x0, ---Type to continue, or q to quit--- clear_to_end_hook = 0x0, clear_frame_hook = 0x0, clear_end_of_line_hook = 0x0, ins_del_lines_hook = 0x0, insert_glyphs_hook = 0x0, write_glyphs_hook = 0x0, delete_glyphs_hook = 0x0, ring_bell_hook = 0x0, toggle_invisible_pointer_hook = 0x0, reset_terminal_modes_hook = 0x0, set_terminal_modes_hook = 0x0, update_begin_hook = 0x0, update_end_hook = 0x0, set_terminal_window_hook = 0x0, mouse_position_hook = 0x0, frame_rehighlight_hook = 0x0, frame_raise_lower_hook = 0x0, fullscreen_hook = 0x0, menu_show_hook = 0x0, popup_dialog_hook = 0x0, set_vertical_scroll_bar_hook = 0x0, set_horizontal_scroll_bar_hook = 0x0, condemn_scroll_bars_hook = 0x0, ---Type to continue, or q to quit--- redeem_scroll_bar_hook = 0x0, judge_scroll_bars_hook = 0x0, read_socket_hook = 0x0, frame_up_to_date_hook = 0x0, delete_frame_hook = 0x4b6ea0 , delete_terminal_hook = 0x4b7690 } (gdb) From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 07 04:28:05 2017 Received: (at 29548) by debbugs.gnu.org; 7 Dec 2017 09:28:05 +0000 Received: from localhost ([127.0.0.1]:49872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMsTN-0001Na-By for submit@debbugs.gnu.org; Thu, 07 Dec 2017 04:28:05 -0500 Received: from mout.gmx.net ([212.227.15.15]:65322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMsTL-0001N6-MM for 29548@debbugs.gnu.org; Thu, 07 Dec 2017 04:28:04 -0500 Received: from [192.168.1.100] ([46.125.250.46]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M3AzH-1fFGCr3iHH-00syQE; Thu, 07 Dec 2017 10:27:47 +0100 Message-ID: <5A290987.7070107@gmx.at> Date: Thu, 07 Dec 2017 10:27:35 +0100 From: martin rudalics MIME-Version: 1.0 To: Noam Postavsky , Live System User Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:X2A4RWOeMSJn1drOAJyX9xbKwI9aa8fKZneOzJWUJJ2nOwa/erp gndf+9f03vlWOlDAJIcKGg2sUEZXWPYxevccSAlbSrgUVexuE5dg8EHnvP6DqjNjRDWfvLr xYvd1QA5VbOCsNJKae/72NipWSY4SPPs2UPRezYpaKryB5XDJCV9GwqiUBBkPB293IyaE+B rtiuFn3bJGENdj5CPxU/w== X-UI-Out-Filterresults: notjunk:1;V01:K0:Wu34ZYtD2ag=:h+UP9j3Tj0Rkb6oJBd8jf5 sdC5DfWpc4xSfSmfgxrvM/fbDbUzBl7J8FIG5iiM/MBGFwwrQ2wCeepm9tXDAedq9evzZ2e6a ew2Y898C7PCwdlNbe9zui6+a3gg44vRDgR8xpFUhL32M8iDxPUC496FDkBr5UFxFAKLYmiuDi YJcEfKy2Bxc3lsWBHnBMHxHdBywRgQwsmUiyFkOyPVe1dhmzKmOO4yeseYFyl+X9YdD+cMAaK /pvaVcQFEvKV2hAU3mw7V75dNux9tUmzd3y15hvc46Jw4vXa2Ku0fe8x8gQD2TZUhv1L/jIVV Pi/KQ98s6C2auVViHaXb5icXHybTiTycXpVvlTBTYWex80W6oMrteN0ir/jooX+G+1mQTc2TY eywwOpOVBBeKuTOID36RY5eHBK5M2+9Tl8NJ9rHnLtKkSLM0iYLHuhwX6upGppY6Aqf2VKnFA Hy4sMNa7WXfIGNheCSW+dyqrm59ggAdeiNigIfAYPYLBxSboQC+ltcCOXGeLG1Hg2GBgl/dQw 26LaY06NXN3t7ssaaLdM4xjX3tRZvEvHoFUFnG5U18u9JIINeumiHSvUxy+JGD/cUnpTo+xl2 tFlxugfC4mSvC43TitIL14ycdVfK4d3qFOyBz8lQuK1MyKwmXz7ECjVSEQ4MSJhhXWLCkb4O1 Nlz/A4SpI/dp4VHMcfbURJ6HkErlWZz31EaAjoA/guKuRpn04dqteBYV/9+JWL4qRW7F0XZqQ 7w+nMwf/XR1Eda/RCxoonXciKmHfaArOoODvWQTXT3qW9BIGOp+XQM9jOJsA1APwQJWrURW2n PwJxw8MijbzS+EpB37siys2NARcwgz0oeYgb5RnvfirhFs1L9RXtoY9H4Bb1UOTB1yLExkc X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 29548 Cc: 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > So this function is getting the terminal list by calling > list-terminals. What function is `list-terminals'? martin From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 07 04:35:40 2017 Received: (at 29548) by debbugs.gnu.org; 7 Dec 2017 09:35:40 +0000 Received: from localhost ([127.0.0.1]:49876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMsai-0001Yb-49 for submit@debbugs.gnu.org; Thu, 07 Dec 2017 04:35:40 -0500 Received: from mail-it0-f45.google.com ([209.85.214.45]:39494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMsag-0001YO-GA for 29548@debbugs.gnu.org; Thu, 07 Dec 2017 04:35:39 -0500 Received: by mail-it0-f45.google.com with SMTP id 68so12969318ite.4 for <29548@debbugs.gnu.org>; Thu, 07 Dec 2017 01:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=P4TgyLKMIvfgOYGZmK6PKC3JyE2BOzSLt3SMksDcQio=; b=hFMecv04yJ8L5GO8+SUGMDZsVUkiHPjq0rXTI2KbRith8/E7ACAkzz1ONe0xffgS5v cGq7IJlLgdgCr2jz9UmHmLncA+nUa++zVRqy/nk9+tE9B7kVsh9WkzsZ7w/pKv3XIQOt 0U0SQzqFxdgXrG3Q5pl4YPaxYzHgZ1fFMd2dFrX52KP9hCjlsHIHnS3QR9sqcMp2VDl3 q2NthtZA1/T//WWpqO4vIlojjZFHq9HnEhzytak2xZZunktrl93uAdL9aTPp5f2eu+s3 kJ00bIon92I433geP3ZYUGUGMU7j7L0zTV5V57oRs9dDbVUAiyGGujHflSCGn0p316PY 0EKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=P4TgyLKMIvfgOYGZmK6PKC3JyE2BOzSLt3SMksDcQio=; b=WkJtv6EEYYGtOufw1FlMMeaC1CAAEq11t6QdnvBSOxwjv74H3VQaGJkP0pCMZvDrRl 5Lt3ZZIJWa94LcrqAKQldmrJDloRFa0gyM7aUJ8QuwVVbVjJVpV1LwL56DEzipTYKant gXWvx4K5SmHEJ2ZHTK2+lNJCAIAclNU+Vblc4ZNsnsEgycxt3t8mRKj3gS6kir7Ak6Mf GMqXdkOMj79Ck+/9yMPN8KNN9QI29t4AXYliJEmPpwHicjZCU1zuPwPePirVePwaIiYc 9tqvoit8+K69BmmA3k1t5kobChppYmT/R+/qrwiP4hw2Aaflgk7bN/wMG9d1PYajj7oM l8yA== X-Gm-Message-State: AKGB3mKUP7t2k5u8OVMkWY1Um1j48Ej/d8XieZILZbB5zOLVXYXZwo3h 7Dlj4plbA+BRWqXT91xA8TdtmA== X-Google-Smtp-Source: AGs4zMblGLNauLNEITLr7GCvB8L1AwrJmyLQD2u/AySnXnOZC7BRrXIBxwzepgfKKtdqEn4Ub0uW6Q== X-Received: by 10.36.206.130 with SMTP id v124mr570161itg.81.1512639332619; Thu, 07 Dec 2017 01:35:32 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id s4sm2578793ita.12.2017.12.07.01.35.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Dec 2017 01:35:31 -0800 (PST) From: Noam Postavsky To: martin rudalics Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> <5A290987.7070107@gmx.at> Date: Thu, 07 Dec 2017 04:35:30 -0500 In-Reply-To: <5A290987.7070107@gmx.at> (martin rudalics's message of "Thu, 07 Dec 2017 10:27:35 +0100") Message-ID: <87shcmg9st.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29548 Cc: 29548@debbugs.gnu.org, Live System User X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) martin rudalics writes: >> So this function is getting the terminal list by calling >> list-terminals. > > What function is `list-terminals'? Sorry, I meant terminal-list. From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 14 20:37:32 2017 Received: (at 29548) by debbugs.gnu.org; 15 Dec 2017 01:37:32 +0000 Received: from localhost ([127.0.0.1]:34342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePewN-0002ka-SC for submit@debbugs.gnu.org; Thu, 14 Dec 2017 20:37:32 -0500 Received: from mail-it0-f42.google.com ([209.85.214.42]:45637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePewJ-0002kK-6b for 29548@debbugs.gnu.org; Thu, 14 Dec 2017 20:37:29 -0500 Received: by mail-it0-f42.google.com with SMTP id z6so15869283iti.4 for <29548@debbugs.gnu.org>; Thu, 14 Dec 2017 17:37:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=m7xGRbvfbVGC0N4oh2SvYa9RVHqjRDW5CQAivC1Mhg8=; b=q2moqUOm/JcKXpUqbLcH+ESdoOMC/Ec4S2aUDJaLOCW/fKUYipyAO9ovzYipHwZlJw ZblsvU+q1GQ5tn62CRSa8SqlXf6mVz6uOekVmdEcsS3Huj0o4v2Ov8VCAikPG3JQ7GPQ niqkS3xhOy36ZwWwZu2jvsgG/A3CdFv0unvGNBD6qVP/xoyAIxvWx4OxB6yFBHIU8+7t sF3oRBteWqODKIK3l7JzXco+tPwivTHU3pwwMFnZ0oidpbr72BldfjSRCf4Ug7Ly0Wf/ bryOeX2rEpeU4N4Qxjpvlr0y7LVyiLms55qBvmWJWCesIIixiKiBPI6+0ed7BZ9nQoSV 8lwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=m7xGRbvfbVGC0N4oh2SvYa9RVHqjRDW5CQAivC1Mhg8=; b=rucK2MBQ+P/jzOg99E1u4ao8njZgW61QPs1U29yLRHIvYGIhyPpEZBRAO3V4aa96RG 021w01if7RFDK/zesA/FIxNq+S4CQJeQmaRIk//aD/upsgubSHQWUdYvXlG9d7z8+uBC fh3az11fXpOskubRxCei3+EjjdpfwoZXti7koLHNNSgjRBg7K9urF8QMH5b6i0joVmBj X/PYg015Fv/10ssbz2f8HTG3S0tmACMRWQ9ePNHTg5lHUTmmGx7cChAMUe7Fh0ksGr6L p8pF0emX1la/ksEt7/75trZs1g4xv8H48tt0DzB3Cnto2lKvAJCxYzn5Ol598I0CISk3 7IxQ== X-Gm-Message-State: AKGB3mLQ7aQ+cBrxbUqAdlk5EVg4b8GfhwUcTmecpWruC6aF3lG5BIdp ZBoMAlbtuEjxRU1VdSJaLTD1dQ== X-Google-Smtp-Source: ACJfBovoJHpCF0VPl8MgqqZQ9Rhl5Kj9D61awJTJgikDpTyIfv63PACCtfJvukEi/1mFq6ATJ5m42w== X-Received: by 10.107.195.14 with SMTP id t14mr10242526iof.238.1513301841386; Thu, 14 Dec 2017 17:37:21 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id r95sm1366237ioi.74.2017.12.14.17.37.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Dec 2017 17:37:20 -0800 (PST) From: Noam Postavsky To: Live System User Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> <87609jtmea.fsf@aol.com> Date: Thu, 14 Dec 2017 20:37:19 -0500 In-Reply-To: <87609jtmea.fsf@aol.com> (Live System User's message of "Wed, 06 Dec 2017 19:25:01 -0500") Message-ID: <874losdb5c.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29548 Cc: 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Live System User writes: > (gdb) define print_terminal_list > Type commands for definition of "print_terminal_list". > End with a line saying just "end". >>set $t = terminal_list >>while $t > >print *$t > >set $t = $t->next_terminal > >end >>end > (gdb) print_terminal_list > $1 = { > header = { > size = 4611686018561773572 > }, > param_alist = XIL(0x2bfe553), > charset_list = XIL(0x102ec33), > Vselection_alist = XIL(0), > glyph_code_table = XIL(0), > next_terminal = 0x363e3d8, > id = 5, > reference_count = 0, > type = output_termcap, > name = 0x0, As far as I can tell, the only place that sets a terminals 'name' field to NULL is in delete_terminal: delete_terminal (struct terminal *terminal) { ... terminal->name = NULL; [...] *tp = terminal->next_terminal; ... Something must have happened in the [...] to prevent the terminal from being removed from the terminal list. There is a lot code in that [...], with a lot of conditional, recursive calls so it's hard to say what could be the problem. One thing I see, is that it calls Fframe_parameter which uses Fassq which checks for quit signals. Not sure how plausible it is that you could have managed to quit just at the right time though. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 04 09:37:48 2018 Received: (at 29548) by debbugs.gnu.org; 4 Jan 2018 14:37:48 +0000 Received: from localhost ([127.0.0.1]:35184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eX6eR-0000Xv-RP for submit@debbugs.gnu.org; Thu, 04 Jan 2018 09:37:48 -0500 Received: from omr-a010e.mx.aol.com ([204.29.186.54]:58300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eX6eQ-0000Xg-Kq for 29548@debbugs.gnu.org; Thu, 04 Jan 2018 09:37:46 -0500 Received: from mtaout-aam01.mx.aol.com (mtaout-aam01.mx.aol.com [172.27.19.145]) by omr-a010e.mx.aol.com (Outbound Mail Relay) with ESMTP id 2749138000B3; Thu, 4 Jan 2018 09:37:41 -0500 (EST) Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-aam01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 855D838000081; Thu, 4 Jan 2018 09:37:40 -0500 (EST) From: Live System User To: Noam Postavsky Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal In-Reply-To: <874losdb5c.fsf@users.sourceforge.net> (Noam Postavsky's message of "Thu, 14 Dec 2017 20:37:19 -0500") References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> <87609jtmea.fsf@aol.com> <874losdb5c.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Date: Thu, 04 Jan 2018 09:37:31 -0500 Message-ID: <87y3ldbsgk.fsf@aol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1515076661; bh=VV6xNda4h5jrGKNJ7O5rQYa2cxawjtg8EjfWlTdBYlU=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=GWzoRP0H0ryShtOwu276dawdSerevxvN6rlPYm2S8qUbDofw9lbQw5TuZVQaXI+Nr cZ7Nm3cyXM1ejB18w+hC+6ISMiEa3ARD3GuQkoQiEIXuMBi4n3UFAhI5aJZWGS+a24 k761jAfUJIVsYAAXImXMGdlcjLCC0RUfKgi37qpE= x-aol-sid: 3039ac1b13915a4e3c3429b8 X-AOL-IP: 73.16.70.190 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29548 Cc: martin rudalics , 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Noam Postavsky writes: > Live System User writes: > >> (gdb) define print_terminal_list >> Type commands for definition of "print_terminal_list". >> End with a line saying just "end". >>>set $t =3D terminal_list >>>while $t >> >print *$t >> >set $t =3D $t->next_terminal >> >end >>>end >> (gdb) print_terminal_list >> $1 =3D { >> header =3D { >> size =3D 4611686018561773572 >> },=20 >> param_alist =3D XIL(0x2bfe553),=20 >> charset_list =3D XIL(0x102ec33),=20 >> Vselection_alist =3D XIL(0),=20 >> glyph_code_table =3D XIL(0),=20 >> next_terminal =3D 0x363e3d8,=20 >> id =3D 5,=20 >> reference_count =3D 0,=20 >> type =3D output_termcap,=20 >> name =3D 0x0,=20 > > As far as I can tell, the only place that sets a terminals 'name' field > to NULL is in delete_terminal: > > delete_terminal (struct terminal *terminal) > { > ... > terminal->name =3D NULL; > > [...] > *tp =3D terminal->next_terminal; > ... > > Something must have happened in the [...] to prevent the terminal from > being removed from the terminal list. There is a lot code in that > [...], with a lot of conditional, recursive calls so it's hard to say > what could be the problem. One thing I see, is that it calls > Fframe_parameter which uses Fassq which checks for quit signals. Not > sure how plausible it is that you could have managed to quit just at the > right time though. Here's a new occurrance (see below): One thing I noticed is that when it happen this time when doing a "emacsclient -c" "is that a blank GUI frame quickly flashed on the screen and disappeated before printing the error: *ERROR*: Invalid argument # in =E2=80=98get-device-terminal=E2= =80=99 When I invoke "emacsclient -t" that error message does NOT appear -- Emacs still just doesn't do anything (the emacsclient command executed (?) and returned to the system prompt). As you noticed that when it's in this state, the "name" field appears invalid and its "reference count" is 0 (is it because it's deleted/dead/invalid?): id =3D 10,=20 reference_count =3D 0,=20 type =3D output_termcap,=20 name =3D 0x0,=20 Whereas in a working instance it looks like this: id =3D 2,=20 reference_count =3D 1,=20 type =3D output_termcap,=20 name =3D 0x33d5bc0 "/dev/pts/23",=20 Thanks. (gdb) print_terminal_list $1 =3D { header =3D { size =3D 4611686018561773572 },=20 param_alist =3D XIL(0x8793ef3),=20 charset_list =3D XIL(0x102ec33),=20 Vselection_alist =3D XIL(0),=20 glyph_code_table =3D XIL(0),=20 next_terminal =3D 0xc2b460,=20 id =3D 10,=20 reference_count =3D 0,=20 type =3D output_termcap,=20 name =3D 0x0,=20 kboard =3D 0x54ade00,=20 image_cache =3D 0x0,=20 display_info =3D { tty =3D 0x9d4e190,=20 x =3D 0x9d4e190,=20 w32 =3D 0x9d4e190,=20 ns =3D 0x9d4e190 },=20 terminal_coding =3D 0x802de00,=20 keyboard_coding =3D 0x8e3e1b0,=20 ---Type to continue, or q to quit--- rif =3D 0x0,=20 cursor_to_hook =3D 0x4b3aa0 ,=20 raw_cursor_to_hook =3D 0x4b39f0 ,=20 clear_to_end_hook =3D 0x4b1160 ,=20 clear_frame_hook =3D 0x4b1ce0 ,=20 clear_end_of_line_hook =3D 0x4b38b0 ,=20 ins_del_lines_hook =3D 0x4b0e50 ,=20 insert_glyphs_hook =3D 0x4b4820 ,=20 write_glyphs_hook =3D 0x4b4500 ,=20 delete_glyphs_hook =3D 0x4b3720 ,=20 ring_bell_hook =3D 0x4b0bb0 ,=20 toggle_invisible_pointer_hook =3D 0x0,=20 reset_terminal_modes_hook =3D 0x4b3600 ,=20 set_terminal_modes_hook =3D 0x4b0d00 ,=20 update_begin_hook =3D 0x0,=20 update_end_hook =3D 0x4b35a0 ,=20 set_terminal_window_hook =3D 0x4b0790 ,=20 mouse_position_hook =3D 0x0,=20 frame_rehighlight_hook =3D 0x0,=20 frame_raise_lower_hook =3D 0x0,=20 fullscreen_hook =3D 0x0,=20 menu_show_hook =3D 0x4b2ab0 ,=20 popup_dialog_hook =3D 0x0,=20 ---Type to continue, or q to quit--- set_vertical_scroll_bar_hook =3D 0x0,=20 set_horizontal_scroll_bar_hook =3D 0x0,=20 condemn_scroll_bars_hook =3D 0x0,=20 redeem_scroll_bar_hook =3D 0x0,=20 judge_scroll_bars_hook =3D 0x0,=20 read_socket_hook =3D 0x4f8cf0 ,=20 frame_up_to_date_hook =3D 0x0,=20 delete_frame_hook =3D 0x4b0130 ,=20 delete_terminal_hook =3D 0x4aff70 } $2 =3D { header =3D { size =3D 4611686018561773572 },=20 param_alist =3D XIL(0x13a3b23),=20 charset_list =3D XIL(0x102ec33),=20 Vselection_alist =3D XIL(0),=20 glyph_code_table =3D XIL(0),=20 next_terminal =3D 0x0,=20 id =3D 0,=20 reference_count =3D 1,=20 type =3D output_initial,=20 name =3D 0xbf45e0 "initial_terminal",=20 ---Type to continue, or q to quit--- kboard =3D 0xc26e30,=20 image_cache =3D 0x0,=20 display_info =3D { tty =3D 0x0,=20 x =3D 0x0,=20 w32 =3D 0x0,=20 ns =3D 0x0 },=20 terminal_coding =3D 0xc2dbf0,=20 keyboard_coding =3D 0xc2d980,=20 rif =3D 0x0,=20 cursor_to_hook =3D 0x0,=20 raw_cursor_to_hook =3D 0x0,=20 clear_to_end_hook =3D 0x0,=20 clear_frame_hook =3D 0x0,=20 clear_end_of_line_hook =3D 0x0,=20 ins_del_lines_hook =3D 0x0,=20 insert_glyphs_hook =3D 0x0,=20 write_glyphs_hook =3D 0x0,=20 delete_glyphs_hook =3D 0x0,=20 ring_bell_hook =3D 0x0,=20 toggle_invisible_pointer_hook =3D 0x0,=20 reset_terminal_modes_hook =3D 0x0,=20 ---Type to continue, or q to quit--- set_terminal_modes_hook =3D 0x0,=20 update_begin_hook =3D 0x0,=20 update_end_hook =3D 0x0,=20 set_terminal_window_hook =3D 0x0,=20 mouse_position_hook =3D 0x0,=20 frame_rehighlight_hook =3D 0x0,=20 frame_raise_lower_hook =3D 0x0,=20 fullscreen_hook =3D 0x0,=20 menu_show_hook =3D 0x0,=20 popup_dialog_hook =3D 0x0,=20 set_vertical_scroll_bar_hook =3D 0x0,=20 set_horizontal_scroll_bar_hook =3D 0x0,=20 condemn_scroll_bars_hook =3D 0x0,=20 redeem_scroll_bar_hook =3D 0x0,=20 judge_scroll_bars_hook =3D 0x0,=20 read_socket_hook =3D 0x0,=20 frame_up_to_date_hook =3D 0x0,=20 delete_frame_hook =3D 0x4b6ea0 ,=20 delete_terminal_hook =3D 0x4b7690 } (gdb)=20 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 04 21:12:39 2018 Received: (at 29548) by debbugs.gnu.org; 5 Jan 2018 02:12:39 +0000 Received: from localhost ([127.0.0.1]:36198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXHUt-0005H5-7X for submit@debbugs.gnu.org; Thu, 04 Jan 2018 21:12:39 -0500 Received: from mail-it0-f51.google.com ([209.85.214.51]:39025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXHUr-0005Gp-8N for 29548@debbugs.gnu.org; Thu, 04 Jan 2018 21:12:37 -0500 Received: by mail-it0-f51.google.com with SMTP id 68so4555476ite.4 for <29548@debbugs.gnu.org>; Thu, 04 Jan 2018 18:12:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=T4ubh729qoy2ofPhanmWEIcL/3PDJiDgUfQtpvHlhgM=; b=gJXDjHXELAt3UTtmlMMx0wE5QtNO3vQ626HOovSlcaigywn72nvE5ovRpRKAf6Wt7g 60SrmnO8Tg8Uj1/3Cng6+hSjcwaDuc87YE3TNMR3juBkz13qobp6PzCGANKZGYgzJf36 HKChSzFEQzdh64uTJPNQuCxgyIMSZj1PLIVyoUlDghoEkcsj+OZC2UZfeDUJAr5vzPVN KY4+PwX1A+vubZO2dNU2L2jU0mMHeBsRSubkkiQ30WYXBVn3sWAuApXLWwalgaTk8QJy bYGRfK0oPa1nMBQWHOQbKnIc2DBby0lTzfLFdFzmkzvhHzDjfsaJLMSNOZUFKYoNN4vD KPjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=T4ubh729qoy2ofPhanmWEIcL/3PDJiDgUfQtpvHlhgM=; b=CXrzocQ8VQsJRBWjPO+h+cVzhGc1sFzd8pgl7itgGjCJfrsXnMPyyMmtM9mQvNsY+3 yLLeP9OBBV4B6e4FMhfbiaCYu35stmraccN9VnuhjwG1lIr2oTsraEEQtClhjAwwaYdW cimmZydB4u5xnPN+VpSY2jnlnho/9gXqdF6YglYzbV/g64oSsatanH0rU5cqpuXWwZtD 5/mnqa+4g91NayojyWqTbCiloV+yU1bAFwVjZnD+y9hA9aRbLLIUmhoOlJcVRDJvYM7C bY9nDug+sSiYg7KH48u20vsmqmUzxJldFOK8xSoCA745gg/KitxLnFGgMNdHDHPT3WGL 9q9g== X-Gm-Message-State: AKGB3mLAlT3CTXQqxXr60/hrchzH3uq9NYtiRoaYBl3iJLISSJadPmoH SDOLWFXN5r4cUDpHyH9/icMC4A== X-Google-Smtp-Source: ACJfBoswUFGTuBvldLPd40lIhSGi45FlCW5uGK9h4nKRG+BKpiRL0PiaNNst9Kp9CbOoVSg4XiXazQ== X-Received: by 10.36.83.21 with SMTP id n21mr1728312itb.74.1515118351491; Thu, 04 Jan 2018 18:12:31 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 140sm1504121itx.3.2018.01.04.18.12.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jan 2018 18:12:30 -0800 (PST) From: Noam Postavsky To: Live System User Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> <87609jtmea.fsf@aol.com> <874losdb5c.fsf@users.sourceforge.net> <87y3ldbsgk.fsf@aol.com> Date: Thu, 04 Jan 2018 21:12:28 -0500 In-Reply-To: <87y3ldbsgk.fsf@aol.com> (Live System User's message of "Thu, 04 Jan 2018 09:37:31 -0500") Message-ID: <874lo1rr3n.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29548 Cc: martin rudalics , 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-=-= Content-Type: text/plain Live System User writes: > Here's a new occurrance (see below): Hmm, if you can reproduce this semi-regularly, then perhaps the following patch can catch the reason for the problem. It sets a breakpoint in Fsignal while the terminal is in the process of being deleted (requires reproducing the problem under gdb with the patched .gdbinit loaded). --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-TEMP-Debugging-for-Bug-29548-terminal-deletion.patch Content-Description: patch >From 3178fb78ba044efcbf6c986b64b82e4adb36d203 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Thu, 4 Jan 2018 21:09:03 -0500 Subject: [PATCH] [TEMP] Debugging for Bug#29548 (terminal deletion) --- src/.gdbinit | 22 ++++++++++++++++++++++ src/terminal.c | 12 ++++++++++++ 2 files changed, 34 insertions(+) diff --git a/src/.gdbinit b/src/.gdbinit index 83341c795a..4cfd2ca88a 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -1279,3 +1279,25 @@ commands end continue end + +break signal_or_quit +set $bp_signal_or_quit_num = $bpnum +disable $bp_signal_or_quit_num + +break begin_delete_terminal +set $bp_begin_delete_terminal_num = $bpnum +commands $bp_begin_delete_terminal_num + if delete_terminal_count == 0 + enable $bp_signal_or_quit_num + end + continue +end + +break end_delete_terminal +set $bp_end_delete_terminal_num = $bpnum +commands $bp_end_delete_terminal_num + if delete_terminal_count == 1 + disable $bp_signal_or_quit_num + end + continue +end diff --git a/src/terminal.c b/src/terminal.c index 0b1cbe7b79..3bf18c562d 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -311,6 +311,16 @@ create_terminal (enum output_method type, struct redisplay_interface *rif) /* Low-level function to close all frames on a terminal, remove it from the terminal list and free its memory. */ +static int delete_terminal_count = 0; +static void begin_delete_terminal (void) +{ + delete_terminal_count++; +} +static void end_delete_terminal (void) +{ + delete_terminal_count--; +} + void delete_terminal (struct terminal *terminal) { @@ -321,6 +331,7 @@ delete_terminal (struct terminal *terminal) delete_terminal_hook when we delete our last frame. */ if (!terminal->name) return; + begin_delete_terminal(); xfree (terminal->name); terminal->name = NULL; @@ -339,6 +350,7 @@ delete_terminal (struct terminal *terminal) if (! *tp) emacs_abort (); *tp = terminal->next_terminal; + end_delete_terminal(); xfree (terminal->keyboard_coding); terminal->keyboard_coding = NULL; -- 2.11.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 06 05:17:11 2018 Received: (at 29548) by debbugs.gnu.org; 6 Jan 2018 10:17:11 +0000 Received: from localhost ([127.0.0.1]:37573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXlXL-00036s-0K for submit@debbugs.gnu.org; Sat, 06 Jan 2018 05:17:11 -0500 Received: from omr-m019e.mx.aol.com ([204.29.186.18]:59124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXlXJ-00036f-GT for 29548@debbugs.gnu.org; Sat, 06 Jan 2018 05:17:10 -0500 Received: from mtaout-aad02.mx.aol.com (mtaout-aad02.mx.aol.com [172.26.127.226]) by omr-m019e.mx.aol.com (Outbound Mail Relay) with ESMTP id 1DCE73800083; Sat, 6 Jan 2018 05:17:04 -0500 (EST) Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-aad02.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id A21DD38000088; Sat, 6 Jan 2018 05:17:03 -0500 (EST) From: Live System User To: Noam Postavsky Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal In-Reply-To: <874lo1rr3n.fsf@users.sourceforge.net> (Noam Postavsky's message of "Thu, 04 Jan 2018 21:12:28 -0500") References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> <87609jtmea.fsf@aol.com> <874losdb5c.fsf@users.sourceforge.net> <87y3ldbsgk.fsf@aol.com> <874lo1rr3n.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Date: Sat, 06 Jan 2018 05:16:55 -0500 Message-ID: <87zi5r5m20.fsf@aol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1515233824; bh=I8YrDHI418n+5GLOslSRsZSwDEmffNUrvVxgdmCoWPs=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=Y6+o5iieq8+gJ5rnu1u7fIICWWdH3DRf5f7pO9Zioeel3CQIW8JjJnlyr6e7O6dGa vB/g4Mjrfvk5dm6fTjx0rXNMOlnzXEQgRv2C8PFXZh2AzQdyLOA6toLOOF2UW/gGtn LimdvTknTnD80abr+td9y+9554MpIKVVlPuqRIZA= x-aol-sid: 3039ac1a7fe25a50a21f06b5 X-AOL-IP: 73.16.70.190 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29548 Cc: martin rudalics , 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Noam Postavsky writes: > Live System User writes: > >> Here's a new occurrance (see below): > > Hmm, if you can reproduce this semi-regularly, then perhaps the > following patch can catch the reason for the problem. It sets a > breakpoint in Fsignal while the terminal is in the process of being > deleted (requires reproducing the problem under gdb with the patched > .gdbinit loaded). I applied your patch; thanks for it. While playing around wirh the emacs daemon and TTY/GUI client frames, I got a slightly diffent error message this time (I'lltry to see if I can get back into the same exact situation/error message I got before later...but here's this (perhaps?) slightly different one): $ emacsclient -t file1.txt *ERROR*: Terminal is not live, can=E2=80=99t create new frames on it In the *server* buffer, I see: =20=20 server <127.0.0.1:60208>: Terminal is not live, can=E2=80=99t create new frames on it server <127.0.0.1:60208>: Status changed to closed: connection broken by remote peer server <127.0.0.1:60208>: server-delete-client server <127.0.0.1:60208>: Deleted (The screen quickly flashed the emacsclient frame and then it disappered). Your patch output displayed: Breakpoint 3 at 0x508f7b: file terminal.c, line 317. Breakpoint 4 at 0x508f91: file terminal.c, line 321. (gdb) c Continuing. [New Thread 0x7fc3a0d25700 (LWP 7745)] warning: the debug information found in "/usr/lib/debug//lib64/libfreebl3.s= o.debug" does not match "/lib64/libfreebl3.so" (CRC mismatch). [New Thread 0x7fc39b162700 (LWP 7746)] Thread 1 "emacs" hit Breakpoint 3, begin_delete_terminal () at terminal.c:3= 17 317 delete_terminal_count++; Thread 1 "emacs" hit Breakpoint 4, end_delete_terminal () at terminal.c:321 321 delete_terminal_count--; Thread 1 "emacs" hit Breakpoint 3, begin_delete_terminal () at terminal.c:3= 17 317 delete_terminal_count++; Thread 1 "emacs" hit Breakpoint 4, end_delete_terminal () at terminal.c:321 321 delete_terminal_count--; Thread 1 "emacs" hit Breakpoint 3, begin_delete_terminal () at terminal.c:3= 17 317 delete_terminal_count++; I noticed that this didn't end with a paired "delete_terminal_count--;". =20=20=20=20=20=20=20=20=20=20=20=20=20 which it does do so normally. After the initial error, the "delete_terminal_count" is no longer displayed. The *Messages* buffer contains multiple: get-device-terminal: Invalid argument # in 'get-device-terminal' Error running timer battery-update-handler' (error Invalid argument # in 'get-device-terminal'") whenever its timer goes off. The "print_terminal_list" output was: (gdb) print_terminal_list $1 =3D { header =3D { size =3D 4611686018561773572 },=20 param_alist =3D 0,=20 charset_list =3D 0,=20 Vselection_alist =3D 0,=20 glyph_code_table =3D 0,=20 next_terminal =3D 0x0,=20 id =3D 0,=20 reference_count =3D 1,=20 type =3D output_initial,=20 name =3D 0xcaf940 "initial_terminal",=20 kboard =3D 0xce1fb0,=20 image_cache =3D 0x0,=20 display_info =3D { tty =3D 0x0,=20 x =3D 0x0,=20 w32 =3D 0x0,=20 ns =3D 0x0 },=20 terminal_coding =3D 0xce8d70,=20 keyboard_coding =3D 0xce8b00,=20 ---Type to continue, or q to quit--- rif =3D 0x0,=20 cursor_to_hook =3D 0x0,=20 raw_cursor_to_hook =3D 0x0,=20 clear_to_end_hook =3D 0x0,=20 clear_frame_hook =3D 0x0,=20 clear_end_of_line_hook =3D 0x0,=20 ins_del_lines_hook =3D 0x0,=20 insert_glyphs_hook =3D 0x0,=20 write_glyphs_hook =3D 0x0,=20 delete_glyphs_hook =3D 0x0,=20 ring_bell_hook =3D 0x0,=20 toggle_invisible_pointer_hook =3D 0x0,=20 reset_terminal_modes_hook =3D 0x0,=20 set_terminal_modes_hook =3D 0x0,=20 update_begin_hook =3D 0x0,=20 update_end_hook =3D 0x0,=20 set_terminal_window_hook =3D 0x0,=20 mouse_position_hook =3D 0x0,=20 frame_rehighlight_hook =3D 0x0,=20 frame_raise_lower_hook =3D 0x0,=20 fullscreen_hook =3D 0x0,=20 menu_show_hook =3D 0x0,=20 popup_dialog_hook =3D 0x0,=20 ---Type to continue, or q to quit--- set_vertical_scroll_bar_hook =3D 0x0,=20 set_horizontal_scroll_bar_hook =3D 0x0,=20 condemn_scroll_bars_hook =3D 0x0,=20 redeem_scroll_bar_hook =3D 0x0,=20 judge_scroll_bars_hook =3D 0x0,=20 read_socket_hook =3D 0x0,=20 frame_up_to_date_hook =3D 0x0,=20 delete_frame_hook =3D 0x509839 ,=20 delete_terminal_hook =3D 0x5098f4 } (gdb)=20 Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 09 22:51:57 2018 Received: (at 29548) by debbugs.gnu.org; 10 Jan 2018 03:51:57 +0000 Received: from localhost ([127.0.0.1]:50147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ7Qj-0005Ej-5m for submit@debbugs.gnu.org; Tue, 09 Jan 2018 22:51:57 -0500 Received: from mail-io0-f175.google.com ([209.85.223.175]:39530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ7Qh-0005EX-IQ for 29548@debbugs.gnu.org; Tue, 09 Jan 2018 22:51:55 -0500 Received: by mail-io0-f175.google.com with SMTP id g70so20889163ioj.6 for <29548@debbugs.gnu.org>; Tue, 09 Jan 2018 19:51:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=O1SN7zaRD7cyzQQUxXiqKJOJOXCBnxsa2F9jJItbJbk=; b=llubLTleRUlXHxGzAHeIua0sU+VHpSwgj7FDTL3GddhJDLhVIua9WtrgcJNo2BJv9o jGYh8e3dAsjoyhkORhdq0t4Qdb4oTeGZMsZ/TDWekK7xZBENjme/9LPVK8GCO2/+hREP OOGhztmgTvlYnjjdMP2EBrAmxHfVK0UgIfjzER2Ja2hp2uM37VdJJx5+ekwIuolDgLFA 1RebXFMeOtcC5wkpce0Lx+ZRMVrWsmqYJlwlKGR3myZ+XcZET4T1XCkD06WSXXI+Ur3F oVuN+NwzNjcDkPL4yXDkD6PHeXL/5bXlusfOd0rq+IPZKh9PrrI5UKjkcGvRh9n2DKg5 u2jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=O1SN7zaRD7cyzQQUxXiqKJOJOXCBnxsa2F9jJItbJbk=; b=O9jga31Y/bpluQb9xtyqBsV9GinzVfkbFPJLA8dY7BKQTAAi4y78Ge1LS2s5y4ugzk s5N628STCzRhQvhNnfgMt9utp2WwODcrRAsV9dVjAaMtwnGx/JXzpNGYrDPhCz70Q0U3 WQVVoAQwTJuR6LX3cziE3+dWrDXG5VuOyWPP5ZG3T8CdRqExGSF0xUp6xc5p0rRHozGB H9cpkbsf1MAFSHObLXmpQFbjhvB58MwAKS4K3l/DGoM6EU34yFFX3/IvquWyzJuxoNVh syUtYsqEu1jeo58RvDuYhJEx2V1t+iyMo92h0mhHxDYn3S7RhGCCPgwFPXIE4YLZqbNw pZlg== X-Gm-Message-State: AKwxytf9vfmiRmK7n+n3z0ntiEmvorWCj8U80oWhKGuZcVdLlkWTJuVX ORIzpcWkWut2NLBY5NjNWCscHQ== X-Google-Smtp-Source: ACJfBos96IdEadhrSPQvD6L8JDKQkAZMZ18lya2Koad+fkCSVVIpFvjxz2kpv6QigJlGs7gRHRB2VA== X-Received: by 10.107.107.4 with SMTP id g4mr17730083ioc.195.1515556309733; Tue, 09 Jan 2018 19:51:49 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id j68sm5103483ioe.3.2018.01.09.19.51.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jan 2018 19:51:48 -0800 (PST) From: Noam Postavsky To: Live System User Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> <87609jtmea.fsf@aol.com> <874losdb5c.fsf@users.sourceforge.net> <87y3ldbsgk.fsf@aol.com> <874lo1rr3n.fsf@users.sourceforge.net> <87zi5r5m20.fsf@aol.com> Date: Tue, 09 Jan 2018 22:51:47 -0500 In-Reply-To: <87zi5r5m20.fsf@aol.com> (Live System User's message of "Sat, 06 Jan 2018 05:16:55 -0500") Message-ID: <87tvvupe0c.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29548 Cc: martin rudalics , 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Live System User writes: > Noam Postavsky writes: > >> Hmm, if you can reproduce this semi-regularly, then perhaps the >> following patch can catch the reason for the problem. It sets a >> breakpoint in Fsignal while the terminal is in the process of being I said Fsignal, but posted a patching breaking in signal_or_quit. The latter only exists in emacs-26. Are you running that or 25.2 as in your original report? Actually I think it might work better to break in longjmp instead. > Thread 1 "emacs" hit Breakpoint 3, begin_delete_terminal () at terminal.c:317 > 317 delete_terminal_count++; > > > I noticed that this didn't end with a paired > > "delete_terminal_count--;". > > which it does do so normally. I believe this means that the problem is indeed a non-local exit happening somewhere in there, but we failed to catch it. Either because I posted the Emacs 26 version while you are on Emacs 25, or it doesn't go through the signal machinery at all. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 14 12:26:29 2018 Received: (at 29548) by debbugs.gnu.org; 14 Feb 2018 17:26:29 +0000 Received: from localhost ([127.0.0.1]:43112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em0pA-0002WF-JN for submit@debbugs.gnu.org; Wed, 14 Feb 2018 12:26:29 -0500 Received: from omr-a003e.mx.aol.com ([204.29.186.57]:58158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1em0p8-0002W2-Lu for 29548@debbugs.gnu.org; Wed, 14 Feb 2018 12:26:27 -0500 Received: from mtaout-mca01.mx.aol.com (mtaout-mca01.mx.aol.com [172.26.221.77]) by omr-a003e.mx.aol.com (Outbound Mail Relay) with ESMTP id 6D4643800094; Wed, 14 Feb 2018 12:26:21 -0500 (EST) Received: from localhost.localdomain (c-73-16-70-190.hsd1.ma.comcast.net [73.16.70.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mtaout-mca01.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id CF1133800008B; Wed, 14 Feb 2018 12:26:20 -0500 (EST) From: Live System User To: Noam Postavsky Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal In-Reply-To: <87tvvupe0c.fsf@users.sourceforge.net> (Noam Postavsky's message of "Tue, 09 Jan 2018 22:51:47 -0500") References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> <87609jtmea.fsf@aol.com> <874losdb5c.fsf@users.sourceforge.net> <87y3ldbsgk.fsf@aol.com> <874lo1rr3n.fsf@users.sourceforge.net> <87zi5r5m20.fsf@aol.com> <87tvvupe0c.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) Date: Wed, 14 Feb 2018 12:26:19 -0500 Message-ID: <87k1vffpok.fsf@aol.com> MIME-Version: 1.0 Content-Type: text/plain x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1518629181; bh=0zs7PZx4cG24scPOYs05Eju5mxRBtcsevsCKp7hYvTk=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=kywTy4jRhqk3S8xg5ULadzNWy8lSzj7CiaHvTz7Hg1tYMsUavAZD9DSm0rBWLorl7 UsWIu46nXfU8RwihsICbKEqU0ib8HGDMaWZJE0pa1ri8grShXT5po5uUfb4t5elQ5O FUORNeo1UEV9zNPtIF7TIh4ACJFXl9Hb9WLNBlNo= x-aol-sid: 3039ac1add4d5a84713c7ed1 X-AOL-IP: 73.16.70.190 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Noam Postavsky writes: > Live System User writes: > >> Noam Postavsky writes: >> >>> Hmm, if you can reproduce this semi-regularly, then perhaps the >>> following patch can catch the reason for the problem. It sets a >>> breakpoint in Fsignal while the terminal is in the process of being > > I said Fsignal, but posted a patching breaking in signal_or_quit. The > latter only exists in emacs-26. Are you running that or 25.2 as in your > original report? > > Actually I think it might work better to break in longjmp instead. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RCVD_IN_RP_RNBL RBL: Relay in RNBL, https://senderscore.org/blacklistlookup/ [204.29.186.57 listed in bl.score.senderscore.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (nyc4bos[at]aol.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [204.29.186.57 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [204.29.186.57 listed in list.dnswl.org] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 0.0 T_FILL_THIS_FORM_SHORT Fill in a short form with personal information X-Debbugs-Envelope-To: 29548 Cc: martin rudalics , 29548@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Noam Postavsky writes: > Live System User writes: > >> Noam Postavsky writes: >> >>> Hmm, if you can reproduce this semi-regularly, then perhaps the >>> following patch can catch the reason for the problem. It sets a >>> breakpoint in Fsignal while the terminal is in the process of being > > I said Fsignal, but posted a patching breaking in signal_or_quit. The > latter only exists in emacs-26. Are you running that or 25.2 as in your > original report? > > Actually I think it might work better to break in longjmp instead. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RCVD_IN_RP_RNBL RBL: Relay in RNBL, https://senderscore.org/blacklistlookup/ [204.29.186.57 listed in bl.score.senderscore.com] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [204.29.186.57 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [204.29.186.57 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (nyc4bos[at]aol.com) 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Noam Postavsky writes: > Live System User writes: > >> Noam Postavsky writes: >> >>> Hmm, if you can reproduce this semi-regularly, then perhaps the >>> following patch can catch the reason for the problem. It sets a >>> breakpoint in Fsignal while the terminal is in the process of being > > I said Fsignal, but posted a patching breaking in signal_or_quit. The > latter only exists in emacs-26. Are you running that or 25.2 as in your > original report? > > Actually I think it might work better to break in longjmp instead. Where would I do that? > >> Thread 1 "emacs" hit Breakpoint 3, begin_delete_terminal () at terminal.c:317 >> 317 delete_terminal_count++; >> >> >> I noticed that this didn't end with a paired >> >> "delete_terminal_count--;". >> >> which it does do so normally. > > I believe this means that the problem is indeed a non-local exit > happening somewhere in there, but we failed to catch it. Either because > I posted the Emacs 26 version while you are on Emacs 25, or it doesn't > go through the signal machinery at all. When I first start up Emacs daemon. attach GDB, define commands, and then continue: (gdb) define print_terminal_list Type commands for definition of "print_terminal_list". End with a line saying just "end" >set $t = terminal_list >while $t >print *$t >set $t = $t->next_terminal >end >end (gdb) c Continuing. I see the following immediately upon creating a GUI frame via "emacsclient -c": There is no member named name. What does this message mean? (Presumably. this is from .gdbinit) When I subsequently create a TTY framel I do not get this message. Here is the "terminal list": (gdb) print_terminal_list $1 = { header = { size = 4611686018561777668, gcaligned = 4 '\004' }, param_alist = XIL(0), charset_list = XIL(0), Vselection_alist = XIL(0), glyph_code_table = XIL(0), next_terminal = 0x3c63270, id = 6, reference_count = 0, type = output_termcap, name = 0x2b4fc10 "/dev/pts/8", kboard = 0x3dcba00, image_cache = 0x0, display_info = { tty = 0x2ea9e00, x = 0x2ea9e00, w32 = 0x2ea9e00, ns = 0x2ea9e00 }, terminal_coding = 0x2751100, ---Type to continue, or q to quit--- keyboard_coding = 0x24c0f00, rif = 0x0, cursor_to_hook = 0x4f8d81 , raw_cursor_to_hook = 0x4f8e5d , clear_to_end_hook = 0x4f8f1f , clear_frame_hook = 0x4f9022 , clear_end_of_line_hook = 0x4f9116 , ins_del_lines_hook = 0x4facda , insert_glyphs_hook = 0x4fa63c , write_glyphs_hook = 0x4f9f77 , delete_glyphs_hook = 0x4faae4 , ring_bell_hook = 0x4f8059 , toggle_invisible_pointer_hook = 0x0, reset_terminal_modes_hook = 0x4f843a , set_terminal_modes_hook = 0x4f8254 , update_begin_hook = 0x0, update_end_hook = 0x4f860f , set_terminal_window_hook = 0x4f86b6 , mouse_position_hook = 0x4fe4e2 , frame_rehighlight_hook = 0x0, frame_raise_lower_hook = 0x0, fullscreen_hook = 0x0, menu_show_hook = 0x500c1d , ---Type to continue, or q to quit--- popup_dialog_hook = 0x0, set_vertical_scroll_bar_hook = 0x0, set_horizontal_scroll_bar_hook = 0x0, condemn_scroll_bars_hook = 0x0, redeem_scroll_bar_hook = 0x0, judge_scroll_bars_hook = 0x0, read_socket_hook = 0x566c0e , frame_up_to_date_hook = 0x0, buffer_flipping_unblocked_hook = 0x0, delete_frame_hook = 0x5017eb , delete_terminal_hook = 0x503230 } $2 = { header = { size = 4611686018561777668, gcaligned = 4 '\004' }, param_alist = XIL(0x398c6d3), charset_list = XIL(0), Vselection_alist = XIL(0), glyph_code_table = XIL(0), next_terminal = 0xd38140, id = 5, ---Type to continue, or q to quit--- reference_count = 1, type = output_x_window, name = 0x3452030 ":0", kboard = 0x33f1130, image_cache = 0x2948760, display_info = { tty = 0x3665600, x = 0x3665600, w32 = 0x3665600, ns = 0x3665600 }, terminal_coding = 0x399ea00, keyboard_coding = 0x3711000, rif = 0x92d640 , cursor_to_hook = 0x0, raw_cursor_to_hook = 0x0, clear_to_end_hook = 0x0, clear_frame_hook = 0x518b22 , clear_end_of_line_hook = 0x0, ins_del_lines_hook = 0x51938c , insert_glyphs_hook = 0x0, write_glyphs_hook = 0x0, delete_glyphs_hook = 0x5189c2 , ---Type to continue, or q to quit--- ring_bell_hook = 0x519312 , toggle_invisible_pointer_hook = 0x5192cc , reset_terminal_modes_hook = 0x0, set_terminal_modes_hook = 0x0, update_begin_hook = 0x51163b , update_end_hook = 0x511eef , set_terminal_window_hook = 0x0, mouse_position_hook = 0x51ab85 , frame_rehighlight_hook = 0x519fe3 , frame_raise_lower_hook = 0x525056 , fullscreen_hook = 0x523cfb , menu_show_hook = 0x498353 , popup_dialog_hook = 0x4994da , set_vertical_scroll_bar_hook = 0x51bd30 , set_horizontal_scroll_bar_hook = 0x51c2c7 , condemn_scroll_bars_hook = 0x51ca88 , redeem_scroll_bar_hook = 0x51cb79 , judge_scroll_bars_hook = 0x51d085 , read_socket_hook = 0x5208f0 , frame_up_to_date_hook = 0x511f45 , buffer_flipping_unblocked_hook = 0x512006 , delete_frame_hook = 0x526493 , ---Type to continue, or q to quit--- delete_terminal_hook = 0x527ec2 } $3 = { header = { size = 4611686018561777668, gcaligned = 4 '\004' }, param_alist = XIL(0x1217ec3), charset_list = XIL(0x1134013), Vselection_alist = XIL(0), glyph_code_table = XIL(0), next_terminal = 0x0, id = 0, reference_count = 1, type = output_initial, name = 0xce6940 "initial_terminal", kboard = 0xd33a00, image_cache = 0x0, display_info = { tty = 0x0, x = 0x0, w32 = 0x0, ns = 0x0 ---Type to continue, or q to quit--- }, terminal_coding = 0xd3abe0, keyboard_coding = 0xd3a970, rif = 0x0, cursor_to_hook = 0x0, raw_cursor_to_hook = 0x0, clear_to_end_hook = 0x0, clear_frame_hook = 0x0, clear_end_of_line_hook = 0x0, ins_del_lines_hook = 0x0, insert_glyphs_hook = 0x0, write_glyphs_hook = 0x0, delete_glyphs_hook = 0x0, ring_bell_hook = 0x0, toggle_invisible_pointer_hook = 0x0, reset_terminal_modes_hook = 0x0, set_terminal_modes_hook = 0x0, update_begin_hook = 0x0, update_end_hook = 0x0, set_terminal_window_hook = 0x0, mouse_position_hook = 0x0, frame_rehighlight_hook = 0x0, frame_raise_lower_hook = 0x0, ---Type to continue, or q to quit--- fullscreen_hook = 0x0, menu_show_hook = 0x0, popup_dialog_hook = 0x0, set_vertical_scroll_bar_hook = 0x0, set_horizontal_scroll_bar_hook = 0x0, condemn_scroll_bars_hook = 0x0, redeem_scroll_bar_hook = 0x0, judge_scroll_bars_hook = 0x0, read_socket_hook = 0x0, frame_up_to_date_hook = 0x0, buffer_flipping_unblocked_hook = 0x0, delete_frame_hook = 0x5044cf , delete_terminal_hook = 0x50458a } (gdb) c Continuing. Thread 1 "emacs" hit Breakpoint 5, begin_delete_terminal () at terminal.c:317 317 delete_terminal_count++; Thread 1 "emacs" hit Breakpoint 6, end_delete_terminal () at terminal.c:321 321 delete_terminal_count--; " From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 18 17:42:06 2018 Received: (at 29548) by debbugs.gnu.org; 18 Feb 2018 22:42:06 +0000 Received: from localhost ([127.0.0.1]:50277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enXeo-0000Pu-Bv for submit@debbugs.gnu.org; Sun, 18 Feb 2018 17:42:06 -0500 Received: from mail-io0-f169.google.com ([209.85.223.169]:43011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enXem-0000PO-Pz for 29548@debbugs.gnu.org; Sun, 18 Feb 2018 17:42:05 -0500 Received: by mail-io0-f169.google.com with SMTP id l12so3733625ioc.10 for <29548@debbugs.gnu.org>; Sun, 18 Feb 2018 14:42:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=btmfR4VhlRlYmTeZmqZDKQ0lwyC+i6t1DkyaSNkxeto=; b=ZQkleCXHb2fYKXmBIuuKlqDIB3j8myKEKDC3ftaVhohNsM7OnlZylUO5MtRDKZeSve JiheZa5iBtdDPzgw/hgHesgienEKoDV2TynuS47X/7cZLRro3ZUA9Hk+dcYZeEqI+OSb 0FRFm8A5i+GWyDkMw9gaO2Xa2P1nod9iw7h5ulNRBkRHDf9DoWuPn0ZqBbixC0L8uof7 6kZHqEEsGJNBpTneoCeZSbl+qADsKmhvXdPPW53kwNzqNX6mA83bcCBlz0ON6uAVwwyk JPGPbb+Pa/KsuByf7zzLqAVpmX5lC8DDXbJVlO9MyOMQAbV8k9D3MOL/rXVTjhCQtMOa LDGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=btmfR4VhlRlYmTeZmqZDKQ0lwyC+i6t1DkyaSNkxeto=; b=V2/2UstChgRpesBVbMaVgCLT4TMponniRPQxp2fG+mzIlbvcrHioJPzHL6qcOrG0Uf qqkhp3PMPbfVnTm8O4g1TtU1aIBUd6gOFAswjZ4un663MEiUCrz/t4ZW3Ys02lOYoml2 tSjCaRrlyryLMPtE6J5VR1CrLXaGnrwza8veg2bnKsKhZV9vyvd8+n1WaC+x29ukzOhm bEI9xVfQcA2qvR7SDloGpp2D1tUuAPkoObrQtmg1/Dht3R6ufsWe9QYob27hyOwSticM NJ97uhj24OippuexmmHQO0ZPph++g6GpvTQcoWU0nLv5jkRZHGIMKq25PdYkUhQKgXs1 i+Rg== X-Gm-Message-State: APf1xPCS1eQqkChacyYDpdk48OzaUPr7XPS9pFZ0ofNLHcvHgS+unil0 7T4remGBO7rE9aEAARHsCORpOQ== X-Google-Smtp-Source: AH8x225RXXOr2eMhCxoAB9SXDaVV14B/iwyFwJrRaLZUjgtXEuHNBNBvWfoHK4UwN7wxQwyXWuDgPw== X-Received: by 10.107.56.8 with SMTP id f8mr18433614ioa.212.1518993719003; Sun, 18 Feb 2018 14:41:59 -0800 (PST) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 12sm3670269itm.1.2018.02.18.14.41.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Feb 2018 14:41:57 -0800 (PST) From: Noam Postavsky To: Live System User Subject: Re: bug#29548: 25.2; How to DEBUG get-device-terminal References: <87d13v24zb.fsf@aol.com> <87k1y3iyj0.fsf@users.sourceforge.net> <87609j1yla.fsf@aol.com> <87609jtmea.fsf@aol.com> <874losdb5c.fsf@users.sourceforge.net> <87y3ldbsgk.fsf@aol.com> <874lo1rr3n.fsf@users.sourceforge.net> <87zi5r5m20.fsf@aol.com> <87tvvupe0c.fsf@users.sourceforge.net> <87k1vffpok.fsf@aol.com> Date: Sun, 18 Feb 2018 17:41:55 -0500 In-Reply-To: <87k1vffpok.fsf@aol.com> (Live System User's message of "Wed, 14 Feb 2018 12:26:19 -0500") Message-ID: <87d1116hu4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29548 Cc: martin rudalics , 29548@debbugs.gnu.org, Noam Postavsky X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Live System User writes: > Noam Postavsky writes: > >> Live System User writes: >> >>> Noam Postavsky writes: >>> >>>> Hmm, if you can reproduce this semi-regularly, then perhaps the >>>> following patch can catch the reason for the problem. It sets a >>>> breakpoint in Fsignal while the terminal is in the process of being >> >> I said Fsignal, but posted a patching breaking in signal_or_quit. The >> latter only exists in emacs-26. Are you running that or 25.2 as in your >> original report? >> >> Actually I think it might work better to break in longjmp instead. > > Where would I do that? Um, maybe in the .gdbinit patch I posted replace signal_or_quit with 'siglongjmp'? Does anyone else have ideas how to catch this sort of thing? > I see the following immediately upon creating a GUI > frame via "emacsclient -c": > > There is no member named name. > > What does this message mean? > (Presumably. this is from .gdbinit) Not sure. Maybe add some printfs in .gdbinit to pin it down? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 09 14:39:06 2019 Received: (at control) by debbugs.gnu.org; 9 Jan 2019 19:39:06 +0000 Received: from localhost ([127.0.0.1]:52539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghJgv-0003l9-UJ for submit@debbugs.gnu.org; Wed, 09 Jan 2019 14:39:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghJgu-0003kK-CX for control@debbugs.gnu.org; Wed, 09 Jan 2019 14:39:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghJgo-0001w7-Ns for control@debbugs.gnu.org; Wed, 09 Jan 2019 14:38:59 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghJgo-0001w2-Kt for control@debbugs.gnu.org; Wed, 09 Jan 2019 14:38:58 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ghJgo-0007ru-Hf for control@debbugs.gnu.org; Wed, 09 Jan 2019 14:38:58 -0500 Subject: control message for bug 29548 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 09 Jan 2019 14:38:58 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:470:142:3::e X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tag 29548 + wontfix close 29548 From unknown Fri Jun 20 05:25:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 07 Feb 2019 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator