From unknown Fri Jun 20 19:45:35 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#25178 <25178@debbugs.gnu.org> To: bug#25178 <25178@debbugs.gnu.org> Subject: Status: 26.0.50; Crash when pressing C-g in TTY mode Reply-To: bug#25178 <25178@debbugs.gnu.org> Date: Sat, 21 Jun 2025 02:45:35 +0000 retitle 25178 26.0.50; Crash when pressing C-g in TTY mode reassign 25178 emacs submitter 25178 Elias Martenson severity 25178 normal tag 25178 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 11 23:33:55 2016 Received: (at submit) by debbugs.gnu.org; 12 Dec 2016 04:33:55 +0000 Received: from localhost ([127.0.0.1]:38650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGIJG-00069G-U2 for submit@debbugs.gnu.org; Sun, 11 Dec 2016 23:33:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGIJF-000693-LF for submit@debbugs.gnu.org; Sun, 11 Dec 2016 23:33:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGIJ9-00061R-0Y for submit@debbugs.gnu.org; Sun, 11 Dec 2016 23:33:48 -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,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49277) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGIJ8-00061I-Te for submit@debbugs.gnu.org; Sun, 11 Dec 2016 23:33:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGIJ7-00082S-1V for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2016 23:33:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGIJ3-00060C-Rp for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2016 23:33:45 -0500 Received: from mail.murex.com ([194.98.51.42]:54081 helo=bl-ironport.murex.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGIJ3-0005yk-G2 for bug-gnu-emacs@gnu.org; Sun, 11 Dec 2016 23:33:41 -0500 X-IronPort-AV: E=Sophos;i="5.33,334,1477954800"; d="scan'208";a="6574113" Content-Type: multipart/mixed; boundary="===============8210785048483941689==" MIME-Version: 1.0 Received: from unknown (HELO FR-FRDC2-HC-V2.fr.murex.com) ([10.0.0.1]) by bl-ironport.murex.com with ESMTP; 12 Dec 2016 05:33:38 +0100 Received: from SG-SGDC1-HC-V1.sg.murex.com (172.21.65.24) by FR-FRDC2-HC-V2.fr.murex.com (172.21.43.199) with Microsoft SMTP Server (TLS) id 14.3.279.2; Mon, 12 Dec 2016 05:32:55 +0100 Received: from em-desktop (172.21.72.4) by SG-SGDC1-HC-V1.sg.murex.com (172.21.65.24) with Microsoft SMTP Server (TLS) id 14.3.279.2; Mon, 12 Dec 2016 12:32:52 +0800 From: Elias Martenson To: Subject: 26.0.50; Crash when pressing C-g in TTY mode Date: Mon, 12 Dec 2016 12:33:01 +0800 Message-ID: MIME-Version: 1.0 X-Originating-IP: [172.21.72.4] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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 (----) --===============8210785048483941689== Content-Type: text/plain Build 2783e0e3899cf92910e97dc8bfda3e47b3df1478 with default options. Start emacs -nw -Q Press C-g This causes the application to crash immediately. In GNU Emacs 26.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.5) of 2016-12-12 built on em-desktop Repository revision: 2783e0e3899cf92910e97dc8bfda3e47b3df1478 Recent messages: Loading /home/emartenson/.emacs.d/murex-mail.el (source)...done Loading /home/emartenson/.emacs.d/murex-slime.el (source)...done Loading /home/emartenson/.emacs.d/view-defect.el (source)...done Loading /home/emartenson/.emacs.d/murex.el (source)...done Loading /home/emartenson/.emacs.d/project-settings.el (source)...done Loading /home/emartenson/.emacs.d/em-multi-edit.el (source)...done Loading /home/emartenson/.emacs.d/em-blogger.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [2 times] funcall-interactively: End of buffer Configured using: 'configure CFLAGS=-g --prefix=/home/emartenson/src/emacs/dist' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 LIBSYSTEMD Important settings: value of $LANG: en_SG.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: paredit-mode: t guide-key-mode: t winner-mode: t elisp-slime-nav-mode: t shell-dirtrack-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Load-path shadows: None found. Features: (shadow sort flyspell ispell mail-extr emacsbug sendmail term/xterm xterm paredit warnings server cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs company-clang company-template company flycheck rx auto-complete-clang auto-complete gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-calendar gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message rfc822 mml mml-sec epa epg mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs mail-utils mm-decode mm-bodies mm-encode gnus-calendar-org org-capture ical-event-reply ical-event eieio-compat org-import-icalendar eudcb-ldap eudc cus-edit eudc-vars ldap outlook-style outlook-style-muse-editor muse-html muse-xml-common muse-protocols muse-regexps muse muse-nested-tags muse-publish org-caldav icalendar diary-lib diary-loaddefs org-id ox-latex ox-icalendar ox-html ox-ascii ox-publish ox org-element the-org-mode-expansions org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs url-dav xml projectile ibuf-ext ibuffer ibuffer-loaddefs expand-region text-mode-expansions er-basic-expansions expand-region-core expand-region-custom diminish guide-key s popwin dash gnu-apl-mode gnu-apl-osx-workaround gnu-apl-documentation gnu-apl-refdocs-bsd-license gnu-apl-follow gnu-apl-plot gnu-apl-spreadsheet ses unsafep gnu-apl-editor gnu-apl-interactive gnu-apl-input gnu-apl-symbols quail gnu-apl-network gnu-apl-util w3m doc-view jka-compr dired dired-loaddefs image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util wid-edit tex-mode winner em-translate popup json map http-post-simple url-http tls gnutls url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm subr-x puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap ielm elisp-slime-nav slime-indentation slime-cl-indent cl-indent slime-mrepl inferior-slime slime-asdf grep slime-tramp tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time format-spec slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations advice bridge slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp slime-parse slime derived gud apropos arc-mode archive-mode noutline outline easy-mmode pp hyperspec thingatpt browse-url slime-autoloads ggtags etags xref project compile comint ansi-color ring ewoc edmacro kmacro cl finder-inf tex-site kotl-loaddefs info package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date paren cus-start cus-load mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors 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 composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 702625 24255) (symbols 48 58858 0) (miscs 40 97 244) (strings 32 142031 19572) (string-bytes 1 4638361) (vectors 16 71231) (vector-slots 8 1106490 5578) (floats 8 723 950) (intervals 56 392 0) (buffers 976 14)) --===============8210785048483941689== Content-Type: multipart/alternative; boundary="===============2892742997073603658==" MIME-Version: 1.0 Content-Disposition: inline --===============2892742997073603658== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ******************************* This e-mail contains information for the intended recipient only. It may co= ntain proprietary material or confidential information. If you are not the = intended recipient you are not authorised to distribute, copy or use this e= -mail or any attachment to it. Murex cannot guarantee that it is virus free= and accepts no responsibility for any loss or damage arising from its use.= If you have received this e-mail in error please notify immediately the se= nder and delete the original email received, any attachments and all copies= from your system. --===============2892742997073603658== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

*= ******************************

This e-mail con= tains information for the intended recipient only. It may contain proprieta= ry material or confidential information. If you are not the intended r= ecipient you are not authorised to distribute, copy or use this e-mail= or any attachment to it.  X-Spam-Score: -8.1 (--------) > From: Elias Martenson > Date: Mon, 12 Dec 2016 12:33:01 +0800 > > Build 2783e0e3899cf92910e97dc8bfda3e47b3df1478 with default options. > > Start emacs -nw -Q > > Press C-g > > This causes the application to crash immediately. Doesn't happen to me. Can you run this under GDB and show the backtrace from the crash? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 12 21:52:17 2016 Received: (at 25178) by debbugs.gnu.org; 13 Dec 2016 02:52:17 +0000 Received: from localhost ([127.0.0.1]:39933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGdCS-0002xJ-Va for submit@debbugs.gnu.org; Mon, 12 Dec 2016 21:52:17 -0500 Received: from mail.murex.com ([194.98.51.42]:49317 helo=bl-ironport.murex.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGdCQ-0002xA-Qc for 25178@debbugs.gnu.org; Mon, 12 Dec 2016 21:52:15 -0500 X-IronPort-AV: E=Sophos;i="5.33,339,1477954800"; d="scan'208";a="6582582" Content-Type: multipart/mixed; boundary="===============6075896719524908373==" MIME-Version: 1.0 Received: from unknown (HELO FR-FRDC1-HC-V1.fr.murex.com) ([10.0.0.1]) by bl-ironport.murex.com with ESMTP; 13 Dec 2016 03:52:13 +0100 Received: from SG-SGDC1-HC-V2.sg.murex.com (172.21.65.12) by FR-FRDC1-HC-V1.fr.murex.com (172.21.43.213) with Microsoft SMTP Server (TLS) id 14.3.279.2; Tue, 13 Dec 2016 03:52:12 +0100 Received: from em-desktop (172.21.72.4) by SG-SGDC1-HC-V2.sg.murex.com (172.21.65.43) with Microsoft SMTP Server (TLS) id 14.3.279.2; Tue, 13 Dec 2016 10:52:10 +0800 From: Elias Martenson To: Eli Zaretskii Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> Date: Tue, 13 Dec 2016 10:52:17 +0800 In-Reply-To: <83bmwhccib.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 12 Dec 2016 18:56:12 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [172.21.72.4] X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25178 Cc: 25178@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: -3.1 (---) --===============6075896719524908373== Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > Eli Zaretskii writes: > > > From: Elias Martenson > > Date: Mon, 12 Dec 2016 12:33:01 +0800 > >=20 > > Build 2783e0e3899cf92910e97dc8bfda3e47b3df1478 with default options. > >=20 > > Start emacs -nw -Q > >=20 > > Press C-g > >=20 > > This causes the application to crash immediately. >=20 > Doesn't happen to me. >=20 > Can you run this under GDB and show the backtrace from the crash? It still happens on a completely fresh checkout and install of 8db7b65d66f01e90a05cc9f11c67667233d84ca0 Here is the stack trace: Thread 1 "emacs" received signal SIGINT, Interrupt. 0x00007fffef71f18c in pselect () from /usr/lib/libc.so.6 (gdb) bt full #0 0x00007fffef71f18c in pselect () at /usr/lib/libc.so.6 #1 0x000000000069fd6b in xg_select (fds_lim=3D8, rfds=3D0x7fffffffdcd0, wf= ds=3D0x7fffffffdc50, efds=3D0x0, timeout=3D0x7fffffffdc30, sigmask=3D0x0) a= t xgselect.c:116 all_rfds =3D {fds_bits =3D {192, 0 }} all_wfds =3D {fds_bits =3D {0 }} tmo =3D {tv_sec =3D 0, tv_nsec =3D 140737488345200} tmop =3D 0x7fffffffdc30 context =3D 0x2d825d0 have_wfds =3D true gfds_buf =3D=20 {{fd =3D 7, events =3D 1, revents =3D 0}, {fd =3D 6560509, even= ts =3D 0, revents =3D 0}, {fd =3D -10080, events =3D 32767, revents =3D 0},= {fd =3D 1, events =3D 0, revents =3D 0}, {fd =3D 1030, events =3D 0, reven= ts =3D 0}, {fd =3D 42, events =3D 0, revents =3D 0}, {fd =3D 11055605, even= ts =3D 0, revents =3D 0}, {fd =3D 11055572, events =3D 0, revents =3D 0}, {= fd =3D 0, events =3D 0, revents =3D 0}, {fd =3D 88, events =3D 0, revents = =3D 0}, {fd =3D 12167591, events =3D 0, revents =3D 0}, {fd =3D 11055572, e= vents =3D 0, revents =3D 0}, {fd =3D 12167420, events =3D 0, revents =3D 0}= , {fd =3D 0, events =3D 0, revents =3D 0}, {fd =3D 0, events =3D 0, revents= =3D 0}, {fd =3D 0, events =3D 10, revents =3D 0}, {fd =3D 12772560, events= =3D 0, revents =3D 0}, {fd =3D -11112, events =3D 32767, revents =3D 0}, {= fd =3D 5573343, events =3D 0, revents =3D 0}, {fd =3D 0, events =3D 0, reve= nts =3D 0}, {fd =3D 12772565, events =3D 0, revents =3D 0}, {fd =3D 1, even= ts =3D 0, revents =3D 0}, {fd =3D 12772560, events =3D 0, revents =3D 0}, {= fd =3D 21486901, events =3D 0, revents =3D 0}, {fd =3D -11064, events =3D 3= 2767, revents =3D 0}, {fd =3D 5570466, events =3D 0, revents =3D 0}, {fd = =3D 21486901, events =3D 0, revents =3D 0}, {fd =3D -11040, events =3D 3276= 7, revents =3D 0}, {fd =3D 5570466, events =3D 0, revents =3D 0}, {fd =3D 9= , events =3D 0, revents =3D 0}, {fd =3D 5572836, events =3D 0, revents =3D = 0}, {fd =3D 2, events =3D 0, revents =3D 0}, {fd =3D 13300048, events =3D 0= , revents =3D 0}, {fd =3D 6281605, events =3D 0, revents =3D 0}, {fd =3D 45= 984, events =3D 0, revents =3D 0}, {fd =3D -136433516, events =3D 32767, re= vents =3D 0}, {fd =3D 5568885, events =3D 0, revents =3D 0}, {fd =3D 305, e= vents =3D 0, revents =3D 0}, {fd =3D -134537216, events =3D 32767, revents = =3D 0}, {fd =3D -268357864, events =3D 32767, revents =3D 0}, {fd =3D -2683= 49704, events =3D 32767, revents =3D 0}, {fd =3D -136431405, events =3D 327= 67, revents =3D 0}, {fd =3D 305, events =3D 0, revents =3D 0}, {fd =3D -268= 349704, events =3D 32767, revents =3D 0}, {fd =3D -134537216, events =3D 32= 767, revents =3D 0}, {fd =3D -10792, events =3D 32767, revents =3D 0}, {fd = =3D -10796, events =3D 32767, revents =3D 0}, {fd =3D -136433077, events = =3D 32767, revents =3D 0}, {fd =3D 4242610, events =3D 0, revents =3D 0}, {= fd =3D 4199752, events =3D 0, revents =3D 0}, {fd =3D -10792, events =3D 32= 767, revents =3D 0}, {fd =3D 2111285930, events =3D 0, revents =3D 0}, {fd = =3D 26, events =3D 0, revents =3D 0}, {fd =3D -268349704, events =3D 32767,= revents =3D 0}, {fd =3D -10576, events =3D 32767, revents =3D 0}, {fd =3D = -268357864, events =3D 32767, revents =3D 0}, {fd =3D -10796, events =3D 32= 767, revents =3D 0}, {fd =3D -10592, events =3D 32767, revents =3D 0}, {fd = =3D -135176416, events =3D 32767, revents =3D 0}, {fd =3D 106, events =3D 0= , revents =3D 0}, {fd =3D 47427648, events =3D 0, revents =3D 0}, {fd =3D 0= , events =3D 0, revents =3D 0}, {fd =3D 0, events =3D 0, revents =3D 0}, {f= d =3D 0, events =3D 0, revents =3D 0}, {fd =3D 0, events =3D 0, revents =3D= 0}, {fd =3D -134224792, events =3D 32767, revents =3D 0}, {fd =3D -10432, = events =3D 32767, revents =3D 0}, {fd =3D -135175304, events =3D 32767, rev= ents =3D 0}, {fd =3D 5, events =3D 0, revents =3D 0}, {fd =3D 0, events =3D= 0, revents =3D 0}, {fd =3D -10392, events =3D 32767, revents =3D 0}, {fd = =3D -136430111, events =3D 32767, revents =3D 0}, {fd =3D 49, events =3D 0,= revents =3D 0}, {fd =3D 22169539, events =3D 0, revents =3D 0}, {fd =3D 21= 486901, events =3D 0, revents =3D 0}, {fd =3D 9562752, events =3D 0, revent= s =3D 0}, {fd =3D 1, events =3D 0, revents =3D 0}, {fd =3D 13251680, events= =3D 0, revents =3D 0}, {fd =3D -10528, events =3D 32767, revents =3D 0}, {= fd =3D 6138465, events =3D 0, revents =3D 0}, {fd =3D 13743104, events =3D = 0, revents =3D 0}, {fd =3D 13251680, events =3D 0, revents =3D 0}, {fd =3D = -10576, events =3D 32767, revents =3D 0}, {fd =3D 1, events =3D 0, revents = =3D 0}, {fd =3D 1, events =3D 0, revents =3D 0}, {fd =3D 1, events =3D 0, r= events =3D 0}, {fd =3D 1, events =3D 0, revents =3D 0}, {fd =3D 257, events= =3D 0, revents =3D 0}, {fd =3D -11304, events =3D 32767, revents =3D 0}, {= fd =3D 0, events =3D 6, revents =3D 0}, {fd =3D 0, events =3D 0, revents = =3D 0}, {fd =3D 11, events =3D 0, revents =3D 0}, {fd =3D 13251680, events = =3D 0, revents =3D 0}, {fd =3D -10528, events =3D 32767, revents =3D 0}, {f= d =3D 28272, events =3D 0, revents =3D 0}, {fd =3D 4294032, events =3D 0, r= events =3D 0}, {fd =3D -10400, events =3D 32767, revents =3D 0}, {fd =3D 61= 41648, events =3D 0, revents =3D 0}, {fd =3D 0, events =3D 0, revents =3D 0= }, {fd =3D 0, events =3D 0, revents =3D 0}, {fd =3D 0, events =3D 0, revent= s =3D 0}, {fd =3D 28272, events =3D 0, revents =3D 0}, {fd =3D 1, events = =3D 135, revents =3D 0}, {fd =3D 1, events =3D 0, revents =3D 0}, {fd =3D 1= 3251680, events =3D 0, revents =3D 0}, {fd =3D 13743104, events =3D 0, reve= nts =3D 0}, {fd =3D 13254064, events =3D 0, revents =3D 0}, {fd =3D -11392,= events =3D 32767, revents =3D 0}, {fd =3D 0, events =3D 0, revents =3D 0},= {fd =3D 13282336, events =3D 0, revents =3D 0}, {fd =3D 5568885, events = =3D 0, revents =3D 0}, {fd =3D 28272, events =3D 0, revents =3D 0}, {fd =3D= -10352, events =3D 32767, revents =3D 0}, {fd =3D 6140345, events =3D 0, r= events =3D 0}, {fd =3D 13251680, events =3D 0, revents =3D 0}, {fd =3D 0, e= vents =3D 0, revents =3D 0}, {fd =3D 5573208, events =3D 0, revents =3D 0},= {fd =3D 0, events =3D 0, revents =3D 0}, {fd =3D -10256, events =3D 32767,= revents =3D 0}, {fd =3D 6144162, events =3D 0, revents =3D 0}, {fd =3D 0, = events =3D 0, revents =3D 0}, {fd =3D 28272, events =3D 0, revents =3D 0}, {fd =3D 5, events =3D 0, revents =3D 0}, {fd =3D 6, events =3D 0, revents = =3D 0}, {fd =3D 13251680, events =3D 0, revents =3D 0}, {fd =3D -10248, eve= nts =3D 32767, revents =3D 0}, {fd =3D 5573343, events =3D 0, revents =3D 0= }, {fd =3D 13282336, events =3D 0, revents =3D 0}} gfds =3D 0x7fffffffd3e0 gfds_size =3D 128 n_gfds =3D 1 retval =3D 0 our_fds =3D 0 max_fds =3D 7 context_acquired =3D true i =3D 1 nfds =3D 0 tmo_in_millisec =3D -1 must_free =3D 0 need_to_dispatch =3D 35 #2 0x0000000000676dad in really_call_select (arg=3D0x7fffffffda20) at thre= ad.c:498 sa =3D 0x7fffffffda20 self =3D 0xcc69e0 #3 0x00000000005d4a02 in flush_stack_call_func (func=3D0x676d51 , arg=3D0x7fffffffda20) at alloc.c:5137 end =3D 0x7fffffffd9a0 self =3D 0xcc69e0 #4 0x0000000000676e2b in thread_select (func=3D0x69f84f , max_f= ds=3D7, rfds=3D0x7fffffffdcd0, wfds=3D0x7fffffffdc50, efds=3D0x0, timeout= =3D0x7fffffffdc30, sigmask=3D0x0) at thread.c:517 sa =3D=20 {func =3D 0x69f84f , max_fds =3D 7, rfds =3D 0x7ffffff= fdcd0, wfds =3D 0x7fffffffdc50, efds =3D 0x0, timeout =3D 0x7fffffffdc30, s= igmask =3D 0x0, result =3D -1} #5 0x0000000000651168 in wait_reading_process_output (time_limit=3D30, nse= cs=3D0, read_kbd=3D-1, do_display=3Dtrue, wait_for_cell=3D0, wait_proc=3D0x= 0, just_wait_proc=3D0) at process.c:5345 process_skipped =3D false channel =3D 1024 nfds =3D 0 Available =3D {fds_bits =3D {64, 0 }} Writeok =3D {fds_bits =3D {0 }} check_write =3D true check_delay =3D 0 no_avail =3D false xerrno =3D 4 proc =3D 47321728 timeout =3D {tv_sec =3D 9, tv_nsec =3D 484656783} end_time =3D {tv_sec =3D 1481596880, tv_nsec =3D 100278958} timer_delay =3D {tv_sec =3D 9, tv_nsec =3D 484656783} got_output_end_time =3D {tv_sec =3D 1481596880, tv_nsec =3D 1002789= 58} wait =3D TIMEOUT got_some_output =3D -1 retry_for_async =3D false count =3D 3 now =3D {tv_sec =3D 0, tv_nsec =3D -1} #6 0x00000000004252be in sit_for (timeout=3D122, reading=3Dtrue, display_o= ption=3D1) at dispnew.c:5763 sec =3D 30 nsec =3D 0 do_display =3D true #7 0x000000000055bc48 in read_char (commandflag=3D1, map=3D18488707, prev_= event=3D0, used_mouse_menu=3D0x7fffffffe24f, end_time=3D0x0) at keyboard.c:= 2722 tem0 =3D 5568885 timeout =3D 30 delay_level =3D 4 buffer_size =3D 1 c =3D 0 jmpcount =3D 3 local_getcjmp =3D=20 {{__jmpbuf =3D {0, -1720637353449548036, 4294032, 140737488= 349360, 0, 0, -1720637351413213444, 1720636901125723900}, __mask_was_saved = =3D 0, __saved_mask =3D {__val =3D {20304512, 13254064, 6140185, 0, 1407374= 88347280, 5568885, 18152640, 13254064, 5703904, 0, 140737488347328, 5568885= , 19983315, 140737488347424, 6272424, 0}}}} save_jump =3D=20 {{__jmpbuf =3D {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = =3D 0, __saved_mask =3D {__val =3D {0 }}}} tem =3D 18488707 save =3D 0 previous_echo_area_message =3D 0 also_record =3D 0 reread =3D false recorded =3D false polling_stopped_here =3D false orig_kboard =3D 0x2d23870 #8 0x0000000000568714 in read_key_sequence (keybuf=3D0x7fffffffe400, bufsi= ze=3D30, prompt=3D0, dont_downcase_last=3Dfalse, can_return_switch_frame=3D= true, fix_current_buffer=3Dtrue, prevent_redisplay=3Dfalse) at keyboard.c:9= 136 interrupted_kboard =3D 0x2d23870 interrupted_frame =3D 0xd28688 key =3D 4545089 used_mouse_menu =3D false echo_local_start =3D 0 last_real_key_start =3D 0 keys_local_start =3D 0 new_binding =3D 5 count =3D 3 t =3D 0 echo_start =3D 0 keys_start =3D 0 current_binding =3D 18488707 first_event =3D 0 first_unbound =3D 31 mock_input =3D 0 fkey =3D {parent =3D 14043411, map =3D 14043411, start =3D 0, end = =3D 0} keytran =3D {parent =3D 13732419, map =3D 13732419, start =3D 0, en= d =3D 0} indec =3D {parent =3D 14043443, map =3D 14043443, start =3D 0, end = =3D 0} shift_translated =3D false delayed_switch_frame =3D 0 original_uppercase =3D 0 original_uppercase_position =3D -1 dummyflag =3D false starting_buffer =3D 0xd1b400 fake_prefixed_keys =3D 0 #9 0x0000000000558939 in command_loop_1 () at keyboard.c:1373 cmd =3D 140737488348496 keybuf =3D=20 {0, 29328, 8321642624, 0, 13251856, 29328, 288, 13283392, 1325185= 6, 0, 140737488348320, 6271814, 4294967296, 140737488348352, 13254064, 0, 0= , 140737488348320, 5568885, 0, 140737488348416, 6272424, 14045523, 3, 13254= 064, 29328, 0, 140737488348400, 5568885, 0} i =3D 0 prev_modiff =3D 0 prev_buffer =3D 0x0 already_adjusted =3D false #10 0x00000000005f64a5 in internal_condition_case (bfun=3D0x558528 , handlers=3D19680, hfun=3D0x557d15 ) at eval.c:1336 val =3D 5568885 c =3D 0x2d3af10 #11 0x0000000000558232 in command_loop_2 (ignore=3D0) at keyboard.c:1115 val =3D 0 #12 0x00000000005f5d72 in internal_catch (tag=3D47472, func=3D0x558209 , arg=3D0) at eval.c:1101 val =3D 5568885 c =3D 0x2d23940 #13 0x00000000005581d4 in command_loop () at keyboard.c:1094 #14 0x00000000005578f0 in recursive_edit_1 () at keyboard.c:700 count =3D 1 val =3D 140737488348800 #15 0x0000000000557a6c in Frecursive_edit () at keyboard.c:771 count =3D 0 buffer =3D 0 #16 0x0000000000555867 in main (argc=3D3, argv=3D0x7fffffffe8b8) at emacs.c= :1686 stack_bottom_variable =3D 0 '\000' do_initial_setlocale =3D true dumping =3D false skip_args =3D 1 no_loadup =3D false junk =3D 0x0 dname_arg =3D 0x0 ch_to_dir =3D 0x0 original_pwd =3D 0x0 disable_aslr =3D false rlim =3D {rlim_cur =3D 8720384, rlim_max =3D 18446744073709551615} sockfd =3D -1 --===============6075896719524908373== Content-Type: multipart/alternative; boundary="===============1726792422858395034==" MIME-Version: 1.0 Content-Disposition: inline --===============1726792422858395034== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ******************************* This e-mail contains information for the intended recipient only. It may co= ntain proprietary material or confidential information. If you are not the = intended recipient you are not authorised to distribute, copy or use this e= -mail or any attachment to it. Murex cannot guarantee that it is virus free= and accepts no responsibility for any loss or damage arising from its use.= If you have received this e-mail in error please notify immediately the se= nder and delete the original email received, any attachments and all copies= from your system. --===============1726792422858395034== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

*= ******************************

This e-mail con= tains information for the intended recipient only. It may contain proprieta= ry material or confidential information. If you are not the intended r= ecipient you are not authorised to distribute, copy or use this e-mail= or any attachment to it.  To: Eli Zaretskii Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> Date: Tue, 13 Dec 2016 11:07:08 +0800 In-Reply-To: <83bmwhccib.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 12 Dec 2016 18:56:12 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [172.21.72.4] X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25178 Cc: 25178@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: -3.1 (---) --===============6989210188068349842== Content-Type: text/plain Eli Zaretskii writes: > Doesn't happen to me. > > Can you run this under GDB and show the backtrace from the crash? I'm sorry, the previous stack trace I posted was from the interrupt signal. Here is the actual stack trace from the core dump generated during the crash: Machine ID: 50467f3a69eb4dbea19c8a2972949839 Hostname: em-desktop Storage: /var/lib/systemd/coredump/core.emacs.50067.45a62f2ad9804a0b81fed25ad8faffab.21460.1481598260000000000000.lz4 Message: Process 21460 (emacs) of user 50067 dumped core. Stack trace of thread 21460: #0 0x00007fec16127f5f raise (libpthread.so.0) #1 0x0000000000553c66 terminate_due_to_signal (emacs-26.0.50) #2 0x00000000005783c1 handle_fatal_signal (emacs-26.0.50) #3 0x0000000000578392 deliver_thread_signal (emacs-26.0.50) #4 0x00000000005783f8 deliver_fatal_thread_signal (emacs-26.0.50) #5 0x00000000005785ae handle_sigsegv (emacs-26.0.50) #6 0x00007fec16128080 __restore_rt (libpthread.so.0) #7 0x00007fec161296a0 __lll_unlock_elision (libpthread.so.0) #8 0x0000000000677a94 sys_mutex_unlock (emacs-26.0.50) #9 0x000000000067638d release_global_lock (emacs-26.0.50) #10 0x0000000000676d75 really_call_select (emacs-26.0.50) #11 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #12 0x0000000000676e2b thread_select (emacs-26.0.50) #13 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #14 0x00000000004252be sit_for (emacs-26.0.50) #15 0x000000000055bc48 read_char (emacs-26.0.50) #16 0x0000000000568714 read_key_sequence (emacs-26.0.50) #17 0x0000000000558939 command_loop_1 (emacs-26.0.50) #18 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #19 0x0000000000558232 command_loop_2 (emacs-26.0.50) #20 0x00000000005f5d72 internal_catch (emacs-26.0.50) #21 0x00000000005581d4 command_loop (emacs-26.0.50) #22 0x00000000005578f0 recursive_edit_1 (emacs-26.0.50) #23 0x0000000000557a6c Frecursive_edit (emacs-26.0.50) #24 0x0000000000555867 main (emacs-26.0.50) #25 0x00007fec15763291 __libc_start_main (libc.so.6) #26 0x00000000004185ba _start (emacs-26.0.50) Stack trace of thread 21461: #0 0x00007fec1582248d poll (libc.so.6) #1 0x00007fec1b119786 n/a (libglib-2.0.so.0) #2 0x00007fec1b11989c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007fec1b1198e1 n/a (libglib-2.0.so.0) #4 0x00007fec1b1410d5 n/a (libglib-2.0.so.0) #5 0x00007fec1611e454 start_thread (libpthread.so.0) #6 0x00007fec1582b7df __clone (libc.so.6) GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/emartenson/src/emacs/dist/bin/emacs-26.0.50...done. warning: core file may not match specified executable file. [New LWP 21460] [New LWP 21461] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `dist/bin/emacs -nw -Q'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fec16127f5f in raise () from /usr/lib/libpthread.so.0 [Current thread is 1 (Thread 0x7fec1e015a00 (LWP 21460))] (gdb) bt full #0 0x00007fec16127f5f in raise () at /usr/lib/libpthread.so.0 #1 0x0000000000553c66 in terminate_due_to_signal (sig=11, backtrace_limit=40) at emacs.c:394 #2 0x00000000005783c1 in handle_fatal_signal (sig=11) at sysdep.c:1685 #3 0x0000000000578392 in deliver_thread_signal (sig=11, handler=0x5783a7 ) at sysdep.c:1659 old_errno = 4 #4 0x00000000005783f8 in deliver_fatal_thread_signal (sig=11) at sysdep.c:1697 #5 0x00000000005785ae in handle_sigsegv (sig=11, siginfo=0xc8c930 , arg=0xc8c800 ) at sysdep.c:1782 fatal = false #6 0x00007fec16128080 in () at /usr/lib/libpthread.so.0 #7 0x00007fec161296a0 in __lll_unlock_elision () at /usr/lib/libpthread.so.0 #8 0x0000000000677a94 in sys_mutex_unlock (mutex=0xcc6b20 ) at systhread.c:119 #9 0x000000000067638d in release_global_lock () at thread.c:50 #10 0x0000000000676d75 in really_call_select (arg=0x7ffd4e656da0) at thread.c:497 sa = 0x7ffd4e656da0 self = 0xcc69e0 #11 0x00000000005d4a02 in flush_stack_call_func (func=0x676d51 , arg=0x7ffd4e656da0) at alloc.c:5137 end = 0x7ffd4e656d20 self = 0xcc69e0 #12 0x0000000000676e2b in thread_select (func=0x69f84f , max_fds=7, rfds=0x7ffd4e657050, wfds=0x7ffd4e656fd0, efds=0x0, timeout=0x7ffd4e656fb0, sigmask=0x0) at thread.c:517 sa = {func = 0x69f84f , max_fds = 7, rfds = 0x7ffd4e657050, wfds = 0x7ffd4e656fd0, efds = 0x0, timeout = 0x7ffd4e656fb0, sigmask = 0x0, result = -1} #13 0x0000000000651168 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:5345 process_skipped = false channel = 0 nfds = 5676853 Available = {fds_bits = {80, 0 }} Writeok = {fds_bits = {0 }} check_write = true check_delay = 0 no_avail = false xerrno = 0 proc = 75334272 timeout = {tv_sec = 0, tv_nsec = 499974654} end_time = {tv_sec = 1481598290, tv_nsec = 297726035} timer_delay = {tv_sec = 0, tv_nsec = 499974654} got_output_end_time = {tv_sec = 1481598290, tv_nsec = 297726035} wait = TIMEOUT got_some_output = -1 retry_for_async = false count = 3 now = {tv_sec = 0, tv_nsec = -1} #14 0x00000000004252be in sit_for (timeout=122, reading=true, display_option=1) at dispnew.c:5763 sec = 30 nsec = 0 do_display = true #15 0x000000000055bc48 in read_char (commandflag=1, map=19912227, prev_event=0, used_mouse_menu=0x7ffd4e6575cf, end_time=0x0) at keyboard.c:2722 tem0 = 5568885 timeout = 30 delay_level = 4 buffer_size = 1 c = 0 jmpcount = 3 local_getcjmp = {{__jmpbuf = {0, -8520776443860642955, 4294032, 140725918727216, 0, 0, -8520776443766271115, 8519265241542136693}, __mask_was_saved = 0, __saved_mask = {__val = {20304512, 13254064, 6140185, 0, 140725918725136, 5568885, 18152640, 13254064, 5703904, 0, 140725918725184, 5568885, 19983315, 140725918725280, 6272424, 0}}}} save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = {0 }}}} tem = 19912227 save = 0 previous_echo_area_message = 0 also_record = 0 reread = false recorded = false polling_stopped_here = false orig_kboard = 0x47da7f0 #16 0x0000000000568714 in read_key_sequence (keybuf=0x7ffd4e657780, bufsize=30, prompt=0, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9136 interrupted_kboard = 0x47da7f0 interrupted_frame = 0xd28688 key = 4545089 used_mouse_menu = false echo_local_start = 0 last_real_key_start = 0 keys_local_start = 0 new_binding = 5 count = 3 t = 0 echo_start = 0 keys_start = 0 current_binding = 19912227 first_event = 0 first_unbound = 31 mock_input = 0 fkey = {parent = 14043523, map = 14043523, start = 0, end = 0} keytran = {parent = 13732419, map = 13732419, start = 0, end = 0} indec = {parent = 14043571, map = 14043571, start = 0, end = 0} shift_translated = false delayed_switch_frame = 0 original_uppercase = 0 original_uppercase_position = -1 dummyflag = false starting_buffer = 0xd1b400 fake_prefixed_keys = 0 #17 0x0000000000558939 in command_loop_1 () at keyboard.c:1373 cmd = 140725918726352 keybuf = {140725918726112, 6265093, 140725918726160, 4, 140725918726096, 515712, 3, 3, 0, 9575733, 140725918726160, 0, 140725918726192, 6263393, 0, 9588196, 13254064, 515712, 0, 140725918726192, 5568885, 0, 13254064, 5603198, 13254064, 140725918726240, 0, 140725918726256, 5568885, 5603001} i = 1 prev_modiff = 0 prev_buffer = 0x0 already_adjusted = false #18 0x00000000005f64a5 in internal_condition_case (bfun=0x558528 , handlers=19680, hfun=0x557d15 ) at eval.c:1336 val = 5568885 c = 0x47f1f00 #19 0x0000000000558232 in command_loop_2 (ignore=0) at keyboard.c:1115 val = 2 #20 0x00000000005f5d72 in internal_catch (tag=47472, func=0x558209 , arg=0) at eval.c:1101 val = 5568885 c = 0x47da8c0 #21 0x00000000005581d4 in command_loop () at keyboard.c:1094 #22 0x00000000005578f0 in recursive_edit_1 () at keyboard.c:700 count = 1 val = 140725918726656 #23 0x0000000000557a6c in Frecursive_edit () at keyboard.c:771 count = 0 buffer = 0 #24 0x0000000000555867 in main (argc=3, argv=0x7ffd4e657c38) at emacs.c:1686 stack_bottom_variable = 0 '\000' do_initial_setlocale = true dumping = false skip_args = 1 no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x0 original_pwd = 0x0 disable_aslr = false rlim = {rlim_cur = 8720384, rlim_max = 18446744073709551615} sockfd = -1 --===============6989210188068349842== Content-Type: multipart/alternative; boundary="===============0321787001113841925==" MIME-Version: 1.0 Content-Disposition: inline --===============0321787001113841925== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ******************************* This e-mail contains information for the intended recipient only. It may co= ntain proprietary material or confidential information. If you are not the = intended recipient you are not authorised to distribute, copy or use this e= -mail or any attachment to it. Murex cannot guarantee that it is virus free= and accepts no responsibility for any loss or damage arising from its use.= If you have received this e-mail in error please notify immediately the se= nder and delete the original email received, any attachments and all copies= from your system. --===============0321787001113841925== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

*= ******************************

This e-mail con= tains information for the intended recipient only. It may contain proprieta= ry material or confidential information. If you are not the intended r= ecipient you are not authorised to distribute, copy or use this e-mail= or any attachment to it.  X-Spam-Score: -8.1 (--------) > From: Elias Martenson > CC: <25178@debbugs.gnu.org> > Date: Tue, 13 Dec 2016 11:07:08 +0800 > > Here is the actual stack trace from the core dump generated during the > crash: > > Machine ID: 50467f3a69eb4dbea19c8a2972949839 > Hostname: em-desktop > Storage: /var/lib/systemd/coredump/core.emacs.50067.45a62f2ad9804a0b81fed25ad8faffab.21460.1481598260000000000000.lz4 > Message: Process 21460 (emacs) of user 50067 dumped core. > > Stack trace of thread 21460: > #0 0x00007fec16127f5f raise (libpthread.so.0) > #1 0x0000000000553c66 terminate_due_to_signal (emacs-26.0.50) > #2 0x00000000005783c1 handle_fatal_signal (emacs-26.0.50) > #3 0x0000000000578392 deliver_thread_signal (emacs-26.0.50) > #4 0x00000000005783f8 deliver_fatal_thread_signal (emacs-26.0.50) > #5 0x00000000005785ae handle_sigsegv (emacs-26.0.50) > #6 0x00007fec16128080 __restore_rt (libpthread.so.0) > #7 0x00007fec161296a0 __lll_unlock_elision (libpthread.so.0) > #8 0x0000000000677a94 sys_mutex_unlock (emacs-26.0.50) > #9 0x000000000067638d release_global_lock (emacs-26.0.50) > #10 0x0000000000676d75 really_call_select (emacs-26.0.50) > #11 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) > #12 0x0000000000676e2b thread_select (emacs-26.0.50) > #13 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) > #14 0x00000000004252be sit_for (emacs-26.0.50) > #15 0x000000000055bc48 read_char (emacs-26.0.50) Hmm... Is calling pthread_mutex_unlock twice in a row, without an intervening call to pthread_mutex_lock, supposed to segfault? Posix seems to say the result is undefined behavior, but AFAICT by looking in the glibc sources, its implementation triggers a crash in that case. Strangely, I don't see this on the GNU/Linux system to which I have access, although Emacs definitely calls pthread_mutex_unlock twice in a row in the scenario of this bug report. Is this some change in latest versions of glibc? From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 14:26:18 2016 Received: (at 25178) by debbugs.gnu.org; 13 Dec 2016 19:26:18 +0000 Received: from localhost ([127.0.0.1]:41028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGsiQ-0006F1-J7 for submit@debbugs.gnu.org; Tue, 13 Dec 2016 14:26:18 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:50309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGsiN-0006Er-PQ for 25178@debbugs.gnu.org; Tue, 13 Dec 2016 14:26:16 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tdV7B4Y8Nz3hj6C; Tue, 13 Dec 2016 20:26:14 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tdV7B2qMqzvlW1; Tue, 13 Dec 2016 20:26:14 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id rx1lDr8T6t6g; Tue, 13 Dec 2016 20:26:11 +0100 (CET) X-Auth-Info: Keq6w9p2Kefn8XlAmZ3V6PATMMGYSaSHZDdtQ9zLizEFEs31rkqBUoqkX0dXXgee Received: from igel.home (ppp-88-217-9-187.dynamic.mnet-online.de [88.217.9.187]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 13 Dec 2016 20:26:11 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id BA7F42C36B1; Tue, 13 Dec 2016 20:26:10 +0100 (CET) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> <838trjbrcq.fsf@gnu.org> X-Yow: Edwin Meese made me wear CORDOVANS!! Date: Tue, 13 Dec 2016 20:26:10 +0100 In-Reply-To: <838trjbrcq.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 13 Dec 2016 20:45:25 +0200") Message-ID: <878trj1vhp.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25178 Cc: Elias Martenson , 25178@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 (/) On Dez 13 2016, Eli Zaretskii wrote: > Hmm... Is calling pthread_mutex_unlock twice in a row, without an > intervening call to pthread_mutex_lock, supposed to segfault? It's undefined, so anything can happen. Just don't do that. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 14:38:20 2016 Received: (at 25178) by debbugs.gnu.org; 13 Dec 2016 19:38:20 +0000 Received: from localhost ([127.0.0.1]:41038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGsu4-0006WR-0U for submit@debbugs.gnu.org; Tue, 13 Dec 2016 14:38:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGsu2-0006WE-JO for 25178@debbugs.gnu.org; Tue, 13 Dec 2016 14:38:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGstt-00024C-Eo for 25178@debbugs.gnu.org; Tue, 13 Dec 2016 14:38:13 -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.3 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGstt-000248-BV; Tue, 13 Dec 2016 14:38:09 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2761 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cGstq-0005rA-Eh; Tue, 13 Dec 2016 14:38:09 -0500 Date: Tue, 13 Dec 2016 21:37:27 +0200 Message-Id: <8337hrboy0.fsf@gnu.org> From: Eli Zaretskii To: Andreas Schwab In-reply-to: <878trj1vhp.fsf@linux-m68k.org> (message from Andreas Schwab on Tue, 13 Dec 2016 20:26:10 +0100) Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> <838trjbrcq.fsf@gnu.org> <878trj1vhp.fsf@linux-m68k.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.1 (--------) X-Debbugs-Envelope-To: 25178 Cc: elias.martenson@murex.com, 25178@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.1 (--------) > From: Andreas Schwab > Cc: Elias Martenson , 25178@debbugs.gnu.org > Date: Tue, 13 Dec 2016 20:26:10 +0100 > > On Dez 13 2016, Eli Zaretskii wrote: > > > Hmm... Is calling pthread_mutex_unlock twice in a row, without an > > intervening call to pthread_mutex_lock, supposed to segfault? > > It's undefined, so anything can happen. Just don't do that. At this point, I'd like to establish whether the fact Emacs does do it could explain crashes reported by Elias which I cannot reproduce on a different GNU/Linux system. What I think happens is that C-g on a TTY produces a SIGINT that interrupts the call to pselect and runs handle_interrupt, which then longjmps back to read_char, which then calls thread_select. But since pselect inside the previous call to thread_select was interrupted, the following call to acquire_global_lock was not done, and we are now running with the global lock unlocked. Then thread_select calls release_global_lock which attempts to unlock the (unlocked) mutex. The question is whether this is just bad, or causes the crash. It doesn't crash for me. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 15:12:12 2016 Received: (at 25178) by debbugs.gnu.org; 13 Dec 2016 20:12:12 +0000 Received: from localhost ([127.0.0.1]:41075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGtQp-0007Ik-RX for submit@debbugs.gnu.org; Tue, 13 Dec 2016 15:12:12 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:45556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGtQn-0007Ib-A0 for 25178@debbugs.gnu.org; Tue, 13 Dec 2016 15:12:09 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tdW882GZhz3hjPh; Tue, 13 Dec 2016 21:12:08 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tdW880YzczvlVR; Tue, 13 Dec 2016 21:12:08 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id PBupgEFJ4mG6; Tue, 13 Dec 2016 21:12:06 +0100 (CET) X-Auth-Info: t2P4k1XETjlRGYW4dNaDAjJSdg/1ld4ZbRxl8TEobX9bllr/l/HO0CQiOzn/K4Rx Received: from igel.home (ppp-88-217-9-187.dynamic.mnet-online.de [88.217.9.187]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 13 Dec 2016 21:12:06 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 7B5A82C3C84; Tue, 13 Dec 2016 21:12:05 +0100 (CET) From: Andreas Schwab To: Eli Zaretskii Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> <838trjbrcq.fsf@gnu.org> <878trj1vhp.fsf@linux-m68k.org> <8337hrboy0.fsf@gnu.org> X-Yow: He is the MELBA-BEING... the ANGEL CAKE... XEROX him... XEROX him -- Date: Tue, 13 Dec 2016 21:12:05 +0100 In-Reply-To: <8337hrboy0.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 13 Dec 2016 21:37:27 +0200") Message-ID: <87zijzzizu.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25178 Cc: elias.martenson@murex.com, 25178@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 (/) On Dez 13 2016, Eli Zaretskii wrote: > At this point, I'd like to establish whether the fact Emacs does do it > could explain crashes Yes. > It doesn't crash for me. A perfectly valid undefined behaviour. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 22:09:13 2016 Received: (at 25178) by debbugs.gnu.org; 14 Dec 2016 03:09:13 +0000 Received: from localhost ([127.0.0.1]:41257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGzwP-0008J0-Ig for submit@debbugs.gnu.org; Tue, 13 Dec 2016 22:09:13 -0500 Received: from mail.murex.com ([194.98.51.42]:64219 helo=ix-ironport.murex.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGzwN-0008Iq-UV for 25178@debbugs.gnu.org; Tue, 13 Dec 2016 22:09:12 -0500 X-IronPort-AV: E=Sophos;i="5.33,344,1477954800"; d="scan'208";a="32861704" Content-Type: multipart/mixed; boundary="===============6324145566055705986==" MIME-Version: 1.0 Received: from unknown (HELO FR-FRDC1-HC-V1.fr.murex.com) ([10.0.0.1]) by ix-ironport.murex.com with ESMTP; 14 Dec 2016 04:09:09 +0100 Received: from SG-SGDC1-HC-V2.sg.murex.com (172.21.65.12) by FR-FRDC1-HC-V1.fr.murex.com (172.21.43.213) with Microsoft SMTP Server (TLS) id 14.3.279.2; Wed, 14 Dec 2016 04:09:08 +0100 Received: from em-desktop (172.21.72.4) by SG-SGDC1-HC-V2.sg.murex.com (172.21.65.43) with Microsoft SMTP Server (TLS) id 14.3.279.2; Wed, 14 Dec 2016 11:09:06 +0800 From: Elias Martenson To: Eli Zaretskii Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> <838trjbrcq.fsf@gnu.org> Date: Wed, 14 Dec 2016 11:09:12 +0800 In-Reply-To: <838trjbrcq.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 13 Dec 2016 20:45:25 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [172.21.72.4] X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25178 Cc: 25178@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: -3.1 (---) --===============6324145566055705986== Content-Type: text/plain Eli Zaretskii writes: > > From: Elias Martenson > > CC: <25178@debbugs.gnu.org> > > Date: Tue, 13 Dec 2016 11:07:08 +0800 > > > > Here is the actual stack trace from the core dump generated during the > > crash: > > > > Machine ID: 50467f3a69eb4dbea19c8a2972949839 > > Hostname: em-desktop > > Storage: /var/lib/systemd/coredump/core.emacs.50067.45a62f2ad9804a0b81fed25ad8faffab.21460.1481598260000000000000.lz4 > > Message: Process 21460 (emacs) of user 50067 dumped core. > > > > Stack trace of thread 21460: > > #0 0x00007fec16127f5f raise (libpthread.so.0) > > #1 0x0000000000553c66 terminate_due_to_signal (emacs-26.0.50) > > #2 0x00000000005783c1 handle_fatal_signal (emacs-26.0.50) > > #3 0x0000000000578392 deliver_thread_signal (emacs-26.0.50) > > #4 0x00000000005783f8 deliver_fatal_thread_signal (emacs-26.0.50) > > #5 0x00000000005785ae handle_sigsegv (emacs-26.0.50) > > #6 0x00007fec16128080 __restore_rt (libpthread.so.0) > > #7 0x00007fec161296a0 __lll_unlock_elision (libpthread.so.0) > > #8 0x0000000000677a94 sys_mutex_unlock (emacs-26.0.50) > > #9 0x000000000067638d release_global_lock (emacs-26.0.50) > > #10 0x0000000000676d75 really_call_select (emacs-26.0.50) > > #11 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) > > #12 0x0000000000676e2b thread_select (emacs-26.0.50) > > #13 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) > > #14 0x00000000004252be sit_for (emacs-26.0.50) > > #15 0x000000000055bc48 read_char (emacs-26.0.50) > > Hmm... Is calling pthread_mutex_unlock twice in a row, without an > intervening call to pthread_mutex_lock, supposed to segfault? Posix > seems to say the result is undefined behavior, but AFAICT by looking > in the glibc sources, its implementation triggers a crash in that > case. > > Strangely, I don't see this on the GNU/Linux system to which I have > access, although Emacs definitely calls pthread_mutex_unlock twice in > a row in the scenario of this bug report. Is this some change in > latest versions of glibc? Calling pthread_mutex_unlock() twice has to be undefined behaviour. In fact, it can never work. Imagine what would happen if a different thread called pthread_mutex_lock() on the mutex between two the two unlock calls. In that case, you'd be unlocking a mutex help by a different thread which is obviously very dangerous. Regards, Elias --===============6324145566055705986== Content-Type: multipart/alternative; boundary="===============1627906692444614660==" MIME-Version: 1.0 Content-Disposition: inline --===============1627906692444614660== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ******************************* This e-mail contains information for the intended recipient only. It may co= ntain proprietary material or confidential information. If you are not the = intended recipient you are not authorised to distribute, copy or use this e= -mail or any attachment to it. Murex cannot guarantee that it is virus free= and accepts no responsibility for any loss or damage arising from its use.= If you have received this e-mail in error please notify immediately the se= nder and delete the original email received, any attachments and all copies= from your system. --===============1627906692444614660== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

*= ******************************

This e-mail con= tains information for the intended recipient only. It may contain proprieta= ry material or confidential information. If you are not the intended r= ecipient you are not authorised to distribute, copy or use this e-mail= or any attachment to it.  To: Eli Zaretskii Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> <838trjbrcq.fsf@gnu.org> <878trj1vhp.fsf@linux-m68k.org> <8337hrboy0.fsf@gnu.org> Date: Wed, 14 Dec 2016 11:13:35 +0800 In-Reply-To: <8337hrboy0.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 13 Dec 2016 21:37:27 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Originating-IP: [172.21.72.4] Content-Transfer-Encoding: base64 X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25178 Cc: 25178@debbugs.gnu.org, Andreas Schwab 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: -3.1 (---) RWxpIFphcmV0c2tpaSA8ZWxpekBnbnUub3JnPiB3cml0ZXM6DQoNCj4gPiBGcm9tOiBBbmRyZWFz IFNjaHdhYiA8c2Nod2FiQGxpbnV4LW02OGsub3JnPg0KPiA+IENjOiBFbGlhcyBNYXJ0ZW5zb24g PGVsaWFzLm1hcnRlbnNvbkBtdXJleC5jb20+LCAgMjUxNzhAZGViYnVncy5nbnUub3JnDQo+ID4g RGF0ZTogVHVlLCAxMyBEZWMgMjAxNiAyMDoyNjoxMCArMDEwMA0KPiA+IA0KPiA+IE9uIERleiAx MyAyMDE2LCBFbGkgWmFyZXRza2lpIDxlbGl6QGdudS5vcmc+IHdyb3RlOg0KPiA+IA0KPiA+ID4g SG1tLi4uICBJcyBjYWxsaW5nIHB0aHJlYWRfbXV0ZXhfdW5sb2NrIHR3aWNlIGluIGEgcm93LCB3 aXRob3V0IGFuDQo+ID4gPiBpbnRlcnZlbmluZyBjYWxsIHRvIHB0aHJlYWRfbXV0ZXhfbG9jaywg c3VwcG9zZWQgdG8gc2VnZmF1bHQ/DQo+ID4gDQo+ID4gSXQncyB1bmRlZmluZWQsIHNvIGFueXRo aW5nIGNhbiBoYXBwZW4uICBKdXN0IGRvbid0IGRvIHRoYXQuDQo+IA0KPiBBdCB0aGlzIHBvaW50 LCBJJ2QgbGlrZSB0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gZS1tYWlsIGluIGVycm9yIHBs ZWFzZSBub3RpZnkgaW1tZWRpYXRlbHkgdGhlIHNlbmRlciBhbmQgZGVsZXRlIHRoZSBvcmlnaW5h bCBlbWFpbCByZWNlaXZlZCwgYW55IGF0dGFjaG1lbnRzIGFuZCBhbGwgY29waWVzIGZyb20geW91 ciBzeXN0ZW0uCg== From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 22:40:34 2016 Received: (at 25178) by debbugs.gnu.org; 14 Dec 2016 03:40:34 +0000 Received: from localhost ([127.0.0.1]:41272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH0Qk-0002Ob-Fs for submit@debbugs.gnu.org; Tue, 13 Dec 2016 22:40:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH0Qi-0002OM-9b for 25178@debbugs.gnu.org; Tue, 13 Dec 2016 22:40:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cH0QY-0008RE-VA for 25178@debbugs.gnu.org; Tue, 13 Dec 2016 22:40:27 -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.3 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cH0QY-0008R4-SF; Tue, 13 Dec 2016 22:40:22 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3255 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cH0QX-00063U-VX; Tue, 13 Dec 2016 22:40:22 -0500 Date: Wed, 14 Dec 2016 05:39:38 +0200 Message-Id: <83y3zj9o1x.fsf@gnu.org> From: Eli Zaretskii To: Elias Martenson In-reply-to: (message from Elias Martenson on Wed, 14 Dec 2016 11:09:12 +0800) Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> <838trjbrcq.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.1 (--------) X-Debbugs-Envelope-To: 25178 Cc: 25178@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.1 (--------) > From: Elias Martenson > CC: <25178@debbugs.gnu.org> > Date: Wed, 14 Dec 2016 11:09:12 +0800 > > > Strangely, I don't see this on the GNU/Linux system to which I have > > access, although Emacs definitely calls pthread_mutex_unlock twice in > > a row in the scenario of this bug report. Is this some change in > > latest versions of glibc? > > Calling pthread_mutex_unlock() twice has to be undefined behaviour. In > fact, it can never work. Imagine what would happen if a different thread > called pthread_mutex_lock() on the mutex between two the two unlock > calls. In that case, you'd be unlocking a mutex help by a different > thread which is obviously very dangerous. I'm not asking if this is undefined behavior; it clearly is. I'm asking whether the second of these two calls is actually the one that crashes Emacs with SIGSEGV. IOW, does the crash happen inside the second call to pthread_mutex_unlock? And the next question would be why doesn't it crash for me on another GNU/Linux system? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 00:41:08 2016 Received: (at 25178) by debbugs.gnu.org; 14 Dec 2016 05:41:08 +0000 Received: from localhost ([127.0.0.1]:41333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH2JQ-0005Qm-Gr for submit@debbugs.gnu.org; Wed, 14 Dec 2016 00:41:08 -0500 Received: from mail.murex.com ([194.98.51.42]:20113 helo=ix-ironport.murex.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH2JN-0005Qd-TS for 25178@debbugs.gnu.org; Wed, 14 Dec 2016 00:41:07 -0500 X-IronPort-AV: E=Sophos;i="5.33,345,1477954800"; d="scan'208";a="32864180" Received: from unknown (HELO FR-FRDC2-HC-V3.fr.murex.com) ([10.0.0.1]) by ix-ironport.murex.com with ESMTP; 14 Dec 2016 06:41:04 +0100 Received: from SG-SGDC1-HC-V2.sg.murex.com (172.21.65.12) by FR-FRDC2-HC-V3.fr.murex.com (172.21.43.200) with Microsoft SMTP Server (TLS) id 14.3.279.2; Wed, 14 Dec 2016 06:41:04 +0100 Received: from em-desktop (172.21.72.4) by SG-SGDC1-HC-V2.sg.murex.com (172.21.65.43) with Microsoft SMTP Server (TLS) id 14.3.279.2; Wed, 14 Dec 2016 13:41:02 +0800 From: Elias Martenson To: Eli Zaretskii Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> <838trjbrcq.fsf@gnu.org> <83y3zj9o1x.fsf@gnu.org> Date: Wed, 14 Dec 2016 13:41:08 +0800 In-Reply-To: <83y3zj9o1x.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Dec 2016 05:39:38 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [172.21.72.4] Content-Type: text/plain; charset="utf-16" Content-Transfer-Encoding: base64 X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25178 Cc: 25178@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: -3.1 (---) //4+IEVsaSBaYXJldH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ABsACAAYwBvAHAAaQBlAHMAIABmAHIAbwBtACAAeQBvAHUAcgAg AHMAeQBzAHQAZQBtAC4ACgA= From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 17 08:59:47 2016 Received: (at 25178) by debbugs.gnu.org; 17 Dec 2016 13:59:48 +0000 Received: from localhost ([127.0.0.1]:44823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIFWd-0005dC-JL for submit@debbugs.gnu.org; Sat, 17 Dec 2016 08:59:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIFWb-0005cx-OG for 25178@debbugs.gnu.org; Sat, 17 Dec 2016 08:59:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIFWT-0005XC-5q for 25178@debbugs.gnu.org; Sat, 17 Dec 2016 08:59:40 -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.3 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIFWT-0005X4-1a; Sat, 17 Dec 2016 08:59:37 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3671 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cIFWS-0002my-Ax; Sat, 17 Dec 2016 08:59:36 -0500 Date: Sat, 17 Dec 2016 15:58:58 +0200 Message-Id: <83eg167j31.fsf@gnu.org> From: Eli Zaretskii To: Elias Martenson In-reply-to: (message from Elias Martenson on Wed, 14 Dec 2016 11:09:12 +0800) Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> <838trjbrcq.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.1 (--------) X-Debbugs-Envelope-To: 25178 Cc: 25178@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.1 (--------) > From: Elias Martenson > CC: <25178@debbugs.gnu.org> > Date: Wed, 14 Dec 2016 11:09:12 +0800 > > Calling pthread_mutex_unlock() twice has to be undefined behaviour. In > fact, it can never work. Imagine what would happen if a different thread > called pthread_mutex_lock() on the mutex between two the two unlock > calls. In that case, you'd be unlocking a mutex help by a different > thread which is obviously very dangerous. Can you try the patch below and see if it stops the crashes? With this patch, I no longer see two calls to pthread_mutex_unlock in a row. Would people who know about signals and threads please eyeball this patch and comment on whether it is correct, safe, etc.? TIA. diff --git a/src/keyboard.c b/src/keyboard.c index 1fb1d49..f2ee313 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2571,6 +2571,9 @@ read_char (int commandflag, Lisp_Object map, so restore it now. */ restore_getcjmp (save_jump); pthread_sigmask (SIG_SETMASK, &empty_mask, 0); +#if THREADS_ENABLED + maybe_reacquire_global_lock (); +#endif unbind_to (jmpcount, Qnil); XSETINT (c, quit_char); internal_last_event_frame = selected_frame; diff --git a/src/sysdep.c b/src/sysdep.c index 3d2b9bd..5e5a605 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -765,6 +765,23 @@ unblock_child_signal (sigset_t const *oldset) pthread_sigmask (SIG_SETMASK, oldset, 0); } +void +block_interrupt_signal (sigset_t *oldset) +{ + sigset_t blocked; + sigemptyset (&blocked); + sigaddset (&blocked, SIGINT); + pthread_sigmask (SIG_BLOCK, &blocked, oldset); +} + +/* Unblock SIGINT. */ + +void +unblock_interrupt_signal (sigset_t const *oldset) +{ + pthread_sigmask (SIG_SETMASK, oldset, 0); +} + #endif /* !MSDOS */ /* Saving and restoring the process group of Emacs's terminal. */ diff --git a/src/syssignal.h b/src/syssignal.h index 3de83c7..d3b585c 100644 --- a/src/syssignal.h +++ b/src/syssignal.h @@ -25,6 +25,8 @@ along with GNU Emacs. If not, see . */ extern void init_signals (bool); extern void block_child_signal (sigset_t *); extern void unblock_child_signal (sigset_t const *); +extern void block_interrupt_signal (sigset_t *); +extern void unblock_interrupt_signal (sigset_t const *); extern void block_tty_out_signal (sigset_t *); extern void unblock_tty_out_signal (sigset_t const *); diff --git a/src/thread.c b/src/thread.c index e8cb430..e519558 100644 --- a/src/thread.c +++ b/src/thread.c @@ -24,6 +24,7 @@ along with GNU Emacs. If not, see . */ #include "buffer.h" #include "process.h" #include "coding.h" +#include "syssignal.h" static struct thread_state primary_thread; @@ -100,6 +101,23 @@ acquire_global_lock (struct thread_state *self) post_acquire_global_lock (self); } +/* This is called from keyboard.c when it detects that SIGINT + interrupted thread_select before the current thread could acquire + the lock. We must acquire the lock to prevent a thread from + running without holding the global lock, and to avoid repeated + calls to sys_mutex_unlock, which invokes undefined behavior. */ +void +maybe_reacquire_global_lock (void) +{ + if (current_thread->not_holding_lock) + { + struct thread_state *self = current_thread; + + acquire_global_lock (self); + current_thread->not_holding_lock = 0; + } +} + static void @@ -493,11 +511,20 @@ really_call_select (void *arg) { struct select_args *sa = arg; struct thread_state *self = current_thread; + sigset_t oldset; + block_interrupt_signal (&oldset); + self->not_holding_lock = 1; release_global_lock (); + unblock_interrupt_signal (&oldset); + sa->result = (sa->func) (sa->max_fds, sa->rfds, sa->wfds, sa->efds, sa->timeout, sa->sigmask); + + block_interrupt_signal (&oldset); acquire_global_lock (self); + self->not_holding_lock = 0; + unblock_interrupt_signal (&oldset); } int diff --git a/src/thread.h b/src/thread.h index 739069a..b044383 100644 --- a/src/thread.h +++ b/src/thread.h @@ -171,6 +171,13 @@ struct thread_state interrupter should broadcast to this condition. */ sys_cond_t *wait_condvar; + /* This thread might have released the global lock. If so, this is + non-zero. When a thread runs outside thread_select with this + flag non-zero, it means it has been interrupted by SIGINT while + in thread_select, and didn't have a chance of acquiring the lock. + It must do so ASAP. */ + int not_holding_lock; + /* Threads are kept on a linked list. */ struct thread_state *next_thread; }; @@ -224,6 +231,7 @@ extern void unmark_threads (void); extern void finalize_one_thread (struct thread_state *state); extern void finalize_one_mutex (struct Lisp_Mutex *); extern void finalize_one_condvar (struct Lisp_CondVar *); +extern void maybe_reacquire_global_lock (void); extern void init_threads_once (void); extern void init_threads (void); From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 18 21:48:34 2016 Received: (at 25178) by debbugs.gnu.org; 19 Dec 2016 02:48:34 +0000 Received: from localhost ([127.0.0.1]:46643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIo0A-000158-6H for submit@debbugs.gnu.org; Sun, 18 Dec 2016 21:48:34 -0500 Received: from mail.murex.com ([194.98.51.42]:63397 helo=bl-ironport.murex.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIo08-00014z-7i for 25178@debbugs.gnu.org; Sun, 18 Dec 2016 21:48:32 -0500 X-IronPort-AV: E=Sophos;i="5.33,372,1477954800"; d="scan'208";a="6619065" Received: from unknown (HELO FR-FRDC2-HC-V3.fr.murex.com) ([10.0.0.1]) by bl-ironport.murex.com with ESMTP; 19 Dec 2016 03:48:30 +0100 Received: from SG-SGDC1-HC-V1.sg.murex.com (172.21.65.24) by FR-FRDC2-HC-V3.fr.murex.com (172.21.43.200) with Microsoft SMTP Server (TLS) id 14.3.279.2; Mon, 19 Dec 2016 03:48:09 +0100 Received: from em-desktop (172.21.72.4) by SG-SGDC1-HC-V1.sg.murex.com (172.21.65.24) with Microsoft SMTP Server (TLS) id 14.3.279.2; Mon, 19 Dec 2016 10:48:06 +0800 From: Elias Martenson To: Eli Zaretskii Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <83bmwhccib.fsf@gnu.org> <838trjbrcq.fsf@gnu.org> <83eg167j31.fsf@gnu.org> Date: Mon, 19 Dec 2016 10:48:08 +0800 In-Reply-To: <83eg167j31.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Dec 2016 15:58:58 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 X-Originating-IP: [172.21.72.4] Content-Type: text/plain; charset="utf-16" Content-Transfer-Encoding: base64 X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25178 Cc: 25178@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: -3.1 (---) //4+IEVsaSBaYXJldHNraWkgPGVsaXpAZ251Lm9yZz4gd3JpdGVzOgo+IAo+ID4gRnJvbTogRWxp YXMgTWFydGVuc29uIDxlbGlhcy5tYXJ0ZW5zb25AbXVyZXguY29tPgo+ID4gQ0M6IDwyNTE3OEBk ZWJidWdzLmdudS5vcmc+Cj4gPiBEYXRlOiBXZWQsIDE0IERlYyAyMDE2IDExOjA5OjEyICswODAw Cj4gPiAKPiA+IENhbGxpbmcgcHRocmVhZF9tdXRleF91bmxvY2soKSB0d2ljZSBoYXMgdG8gYmUg dW5kZWZpbmVkIGJlaGF2aW91ci4gSW4KPiA+IGZhY3QsIGl0IGNhbiBuZXZlciB3b3JrLiBJbWFn aW5lIHdoYXQgd291bGQgaGFwcGVuIGlmIGEgZGlmZmVyZW50IHRocmVhZAo+ID4gY2FsbGVkIHB0 aHJlYWRfbXV0ZXhfbG9jaygpIG9uIHRoZSBtdXRleCBiZXR3ZWVuIH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AbwByACAAZABh AG0AYQBnAGUAIABhAHIAaQBzAGkAbgBnACAAZgByAG8AbQAgAGkAdABzACAAdQBzAGUALgAgAEkA ZgAgAHkAbwB1ACAAaABhAHYAZQAgAHIAZQBjAGUAaQB2AGUAZAAgAHQAaABpAHMAIABlAC0AbQBh AGkAbAAgAGkAbgAgAGUAcgByAG8AcgAgAHAAbABlAGEAcwBlACAAbgBvAHQAaQBmAHkAIABpAG0A bQBlAGQAaQBhAHQAZQBsAHkAIAB0AGgAZQAgAHMAZQBuAGQAZQByACAAYQBuAGQAIABkAGUAbABl AHQAZQAgAHQAaABlACAAbwByAGkAZwBpAG4AYQBsACAAZQBtAGEAaQBsACAAcgBlAGMAZQBpAHYA ZQBkACwAIABhAG4AeQAgAGEAdAB0AGEAYwBoAG0AZQBuAHQAcwAgAGEAbgBkACAAYQBsAGwAIABj AG8AcABpAGUAcwAgAGYAcgBvAG0AIAB5AG8AdQByACAAcwB5AHMAdABlAG0ALgAKAA== From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 19 12:17:43 2016 Received: (at 25178) by debbugs.gnu.org; 19 Dec 2016 17:17:44 +0000 Received: from localhost ([127.0.0.1]:47875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJ1ZH-0001X2-KM for submit@debbugs.gnu.org; Mon, 19 Dec 2016 12:17:43 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJ1ZG-0001Wp-NL for 25178@debbugs.gnu.org; Mon, 19 Dec 2016 12:17:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJ1Z7-0000yg-Gg for 25178@debbugs.gnu.org; Mon, 19 Dec 2016 12:17:37 -0500 Date: Mon, 19 Dec 2016 12:17:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_00,MISSING_DATE, MISSING_FROM,MISSING_HEADERS,MISSING_SUBJECT,NULL_IN_BODY,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJ1Z7-0000yc-Dd; Mon, 19 Dec 2016 12:17:33 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1773 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cJ1Z6-0005Tl-MM; Mon, 19 Dec 2016 12:17:33 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] Message-ID: X-Received-From: 2001:4830:134:3::e From: eliz@gnu.org X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: 25178 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.4 (----) þÿDate: Mon, 19 Dec 2016 19:17:02 +0200 þÿMessage-Id: <83r3534z5d.fsf@gnu.org> þÿFrom: Eli Zaretskii <eliz@gnu.org> þÿTo: Elias Martenson <elias.martenson@murex.com> þÿCC: 25178@debbugs.gnu.org þÿIn-reply-to: <yxd837hkocrb.fsf@murex.com> (message from Elias Martenson on þÿ Mon, 19 Dec 2016 10:48:08 +0800) þÿSubject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode þÿReply-to: Eli Zaretskii <eliz@gnu.org> þÿReferences: <yxd8twa9g41u.fsf@murex.com> <83bmwhccib.fsf@gnu.org> þÿ <yxd8wpf4msrn.fsf@murex.com> <838trjbrcq.fsf@gnu.org> þÿ <yxd8oa0fmckn.fsf@murex.com> <83eg167j31.fsf@gnu.org> <yxd837hkocrb.fsf@murex.com> þÿ þÿ> From: Elias Martenson <elias.martenson@murex.com> þÿ> CC: <25178@debbugs.gnu.org> þÿ> Date: Mon, 19 Dec 2016 10:48:08 +0800 þÿ> þÿ> > Eli Zaretskii <eliz@gnu.org> writes: þÿ> > þÿ> > > From: Elias Martenson <elias.martenson@murex.com> þÿ> > > CC: <25178@debbugs.gnu.org> þÿ> > > Date: Wed, 14 Dec 2016 11:09:12 +0800 þÿ> > > þÿ> > > Calling pthread_mutex_unlock() twice has to be undefined behaviour. In þÿ> > > fact, it can never work. Imagine what would happen if a different thread þÿ> > > called pthread_mutex_lock() on the mutex between two the two unlock þÿ> > > calls. In that case, you'd be unlocking a mutex help by a different þÿ> > > thread which is obviously very dangerous. þÿ> > þÿ> > Can you try the patch below and see if it stops the crashes? With þÿ> > this patch, I no longer see two calls to pthread_mutex_unlock in a þÿ> > row. þÿ> þÿ> I've tried it, and I am now unable to reproduce the problem. Thanks a þÿ> lot! þÿ þÿThanks, pushed. Please test. þÿ þÿ> > Would people who know about signals and threads please eyeball this þÿ> > patch and comment on whether it is correct, safe, etc.? TIA. þÿ> þÿ> I'm quite well-versed on the topic of threading, but not so much in the þÿ> internals of Emacs, but I'm looking at it now. þÿ þÿThanks. þÿ þÿ> I do have a non-technical comment though, about the function þÿ> unblock_interrupt_signal(). As far as I can tell, it doesn't do what the þÿ> function name suggests it does. I'd rather name it set_signal_mask(), þÿ> since that's what it does. þÿ þÿI renamed it to restore_signal_mask. þÿ þÿP.S. your mailer does something weird: it appends a disclaimer þÿencoded in UTF-16, which marks your entire mail as encoded in UTF-16, þÿand that makes the body unreadable gibberish. I needed some juggling þÿto restore the payload. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 18:38:35 2017 Received: (at 25178) by debbugs.gnu.org; 5 Jan 2017 23:38:35 +0000 Received: from localhost ([127.0.0.1]:44105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPHcB-0005bh-6s for submit@debbugs.gnu.org; Thu, 05 Jan 2017 18:38:35 -0500 Received: from mail-io0-f181.google.com ([209.85.223.181]:36406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPHc8-0005bN-Ln; Thu, 05 Jan 2017 18:38:33 -0500 Received: by mail-io0-f181.google.com with SMTP id p127so45341348iop.3; Thu, 05 Jan 2017 15:38:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=COr36UkXuKcKaC4PgquK1h70Z+dEnZJ08VnYhyjSWgY=; b=I+ANVTf+tcYQUeRE2gszpNH01saC8t7EzFJBvaUpACuqPGIIEbVXkwJ5Yi5hRg7Nfh oUNMH2+FodORcq+QDR4uCvvlqyqHLaYUk+F8e9FBZh09jzhcWMad93Irs04m7tEGg9MM GbIiIDw3jEe/LvPvB7eLdzC9r+HQhFPwEm6aRN/c8t8dfN7qfcTCXk3dLytwZ9/DGyH7 mRKgLOOJM87fb+SIAngHWKI0b+/Lsez1P48FvCOhP9EOTgyNsi779EmUa+1S3qqjQ/eM xmGrz+P+KoOHkSEvC41SpoBR1ngh6YNQjQWtKwGLuMbYeotzUiK2FRNyJhlXJletq1oc Dg1Q== 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:references:date :in-reply-to:message-id:user-agent:mime-version; bh=COr36UkXuKcKaC4PgquK1h70Z+dEnZJ08VnYhyjSWgY=; b=uR/Br884DU7siLHC0pTszFG6WvrjmG+iNrjym5kXvR+V8Bj158XPqzcMjNJwuf51qn impTA/vhXHiNHACkki/bHvugwe0ODGBMv/M8IJgcP2rr/h5byvJhTLUlbeWHMZ1TQ8N5 /9M9UoqDvuDzNITMblfH4ULNvDhI5e+qpjjd/OfJUVtIry5NmKy1pUrgYc8QShIUpWme 9PVYasOL+AbBznDhoo874QQZX27J9Lscd2HKeM+rnrB8wFUjL1alPbLjNwjLMZBpQtwZ 2IPHs6U9nvRsbXL4KoCwaJNIZ+QrKrfHruznPAVSU3m8kLXkR+wI5hvt4QFn7aHN+Qho jNHg== X-Gm-Message-State: AIkVDXLA1xAKCuSCQJgvXCowMtOaSqZ3OJZKQR2guLaWk1afWK+D4VxjBSz2i2wmJPdGfg== X-Received: by 10.107.201.71 with SMTP id z68mr46980196iof.220.1483659506985; Thu, 05 Jan 2017 15:38:26 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 63sm38209961iof.42.2017.01.05.15.38.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jan 2017 15:38:26 -0800 (PST) From: npostavs@users.sourceforge.net To: 25178@debbugs.gnu.org Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: Date: Thu, 05 Jan 2017 18:39:28 -0500 In-Reply-To: (eliz@gnu.org's message of "Mon, 19 Dec 2016 12:17:37 -0500") Message-ID: <87shox3wlr.fsf_-_@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 25178 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.6 (/) tags 25178 fixed close 25178 quit > Date: Mon, 19 Dec 2016 19:17:02 +0200 > From: Eli Zaretskii > > > From: Elias Martenson > > CC: <25178@debbugs.gnu.org> > > Date: Mon, 19 Dec 2016 10:48:08 +0800 > > > > > Eli Zaretskii writes: > > > > > > > From: Elias Martenson > > > > CC: <25178@debbugs.gnu.org> > > > > Date: Wed, 14 Dec 2016 11:09:12 +0800 > > > > > > > > > > Can you try the patch below and see if it stops the crashes? With > > > this patch, I no longer see two calls to pthread_mutex_unlock in a > > > row. > > > > I've tried it, and I am now unable to reproduce the problem. Thanks a > > lot! > > Thanks, pushed. Please test. I presume this can be considered fixed now. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 06 02:47:39 2017 Received: (at 25178-done) by debbugs.gnu.org; 6 Jan 2017 07:47:39 +0000 Received: from localhost ([127.0.0.1]:44397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPPFT-0007LF-EZ for submit@debbugs.gnu.org; Fri, 06 Jan 2017 02:47:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPPFS-0007L3-Fm for 25178-done@debbugs.gnu.org; Fri, 06 Jan 2017 02:47:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPPFK-0005Vu-An for 25178-done@debbugs.gnu.org; Fri, 06 Jan 2017 02:47:33 -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.4 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPPFK-0005Vq-79; Fri, 06 Jan 2017 02:47:30 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4191 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cPPFJ-0000VZ-5O; Fri, 06 Jan 2017 02:47:29 -0500 Date: Fri, 06 Jan 2017 09:47:48 +0200 Message-Id: <83r34gd3yz.fsf@gnu.org> From: Eli Zaretskii To: npostavs@users.sourceforge.net In-reply-to: <87shox3wlr.fsf_-_@users.sourceforge.net> (npostavs@users.sourceforge.net) Subject: Re: bug#25178: 26.0.50; Crash when pressing C-g in TTY mode References: <87shox3wlr.fsf_-_@users.sourceforge.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.2 (--------) X-Debbugs-Envelope-To: 25178-done Cc: 25178-done@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.2 (--------) > From: npostavs@users.sourceforge.net > Date: Thu, 05 Jan 2017 18:39:28 -0500 > > I presume this can be considered fixed now. Yes, thanks. From unknown Fri Jun 20 19:45:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 03 Feb 2017 12:24:04 +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