From unknown Wed Jun 25 00:21:54 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#8472 <8472@debbugs.gnu.org> To: bug#8472 <8472@debbugs.gnu.org> Subject: Status: 24.0.50; weird emacs bugs causing data lossage Reply-To: bug#8472 <8472@debbugs.gnu.org> Date: Wed, 25 Jun 2025 07:21:54 +0000 retitle 8472 24.0.50; weird emacs bugs causing data lossage reassign 8472 emacs submitter 8472 joakim@chopper.i-did-not-set--mail-host-address--so-tickle-me severity 8472 normal tag 8472 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 10 20:44:47 2011 Received: (at submit) by debbugs.gnu.org; 11 Apr 2011 00:44:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q95FF-0006ac-Rq for submit@debbugs.gnu.org; Sun, 10 Apr 2011 20:44:47 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q90UW-0003dQ-4r for submit@debbugs.gnu.org; Sun, 10 Apr 2011 15:40:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q90UM-0006TR-LQ for submit@debbugs.gnu.org; Sun, 10 Apr 2011 15:40:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:36577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q90UM-0006TB-B3 for submit@debbugs.gnu.org; Sun, 10 Apr 2011 15:40:02 -0400 Received: from [140.186.70.92] (port=43695 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q90UJ-0008AW-VW for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2011 15:40:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q90UH-0006Qv-S4 for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2011 15:39:59 -0400 Received: from batman.blixtvik.net ([87.96.254.3]:41194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q90UH-0006Qi-7M for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2011 15:39:57 -0400 Received: from www.verona.se (10-208-96-87.cust.blixtvik.se [87.96.208.10]) by batman.blixtvik.net (Postfix) with ESMTP id 988C97F900F for ; Sun, 10 Apr 2011 21:39:56 +0200 (CEST) Received: from chopper (unknown [192.168.201.6]) by www.verona.se (Postfix) with ESMTP id 2F2E67011D7 for ; Sun, 10 Apr 2011 21:39:56 +0200 (CEST) From: joakim@chopper.i-did-not-set--mail-host-address--so-tickle-me To: bug-gnu-emacs@gnu.org Subject: 24.0.50; weird emacs bugs causing data lossage User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Date: Sun, 10 Apr 2011 21:39:55 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 10 Apr 2011 20:44:44 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) * weird emacs bugs causing data lossage <2011-04-10 Sun> the journal.organisation file gets cropped to only these two characters; ** it happens when I do an org capture and org narrows the buffer. the croping happens on disk for some reason which emacs detects. Maybe autosave didnt understand the buffer narrowing. Emacs ask if I really want to edit the buffer and I say no. Then Emacs redisplay seems to hang. This happened several times. Most times I had to kill emacs and loose my work. This time I tried more debugging. Lately I run Emacs in a debugger. Weirdly gdb refused to break itho a prompt. ctrl z and fg woke up gdb. Then I tried strace and noticed emacs was polling a select repetadly which is maybe normal. The broken emacs was still stuck at the minibuffer prompt. it occured to me that maybe Emacs wasnt totaly hung maybe just redisplay. So I tested emacs client and I could recover data like this: emacsclient -e "(let ((b (set-buffer \"journal.org\")) (text (buffer-string))) (set-text-properties 0 (length text) nil text)text)" There are two weird things here: - the file was truncated. Maybe this is due to a combination of narrowing and automatic save. - redisplay hangs in minibuffer input. I have no idea about why this happens. So. Probably several strange bugs conspiring together. In GNU Emacs 24.0.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-04-09 on chopper Windowing system distributor `Fedora Project', version 11.0.10905000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Org Minor modes in effect: predictive-which-dict-mode: t auto-completion-mode: t shell-dirtrack-mode: t erc-truncate-mode: t erc-track-mode: t erc-spelling-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-netsplit-mode: t erc-log-mode: t erc-button-mode: t erc-fill-mode: t erc-autojoin-mode: t erc-autoaway-mode: t ido-everywhere: t erc-stamp-mode: t erc-match-mode: t delete-selection-mode: t show-paren-mode: t erc-smiley-mode: t erc-irccontrols-mode: t recentf-mode: t which-function-mode: t grab-and-drag-mode: t yas/global-mode: t tooltip-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 line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-x C-x C-s M a y b e SPC a u t o s a v e SPC d i d n t SPC u n d e r s t a h h h t SPC t h e SPC b u f f e r SPC n a r r o w i n g . C-x C-s s C-x C-s e C-a C-x C-s C-SPC M-w S o . SPC P r o b a b l y SPC s e v e r a l SPC s t r a n g e SPC b u g s SPC c o s n s p i r i n g SPC t o g e t h . C-x C-s C-SPC M-w C-x C-s r e p o r SPC e m SPC SPC Recent messages: byte-code: End of buffer [3 times] Saving file /home/joakim/Plans/Emacs.org... Wrote /home/joakim/Plans/Emacs.org Mark set Auto-saving... Saving file /home/joakim/Plans/Emacs.org... Wrote /home/joakim/Plans/Emacs.org Mark set Saving file /home/joakim/Plans/Emacs.org... Wrote /home/joakim/Plans/Emacs.org Load-path shadows: /home/joakim/.elisp/cedet/semantic/wisent/wisent-javascript-jv-wy hides /home/joakim/.elisp/wisentjs/wisent-javascript-jv-wy /home/joakim/.elisp/javascript-mode hides /home/joakim/.elisp/mdee/javascript-mode /home/joakim/.elisp/tuareg-mode-1.45.0/camldebug hides /home/joakim/.elisp/caml/camldebug /home/joakim/.elisp/confluence-el/xml-rpc hides /home/joakim/.emacs.d/elpa/xml-rpc-1.6.7/xml-rpc /home/joakim/.elisp/cedet/common/ezimage hides /usr/local/share/emacs/24.0.50/lisp/ezimage /home/joakim/.elisp/cedet/speedbar/sb-image hides /usr/local/share/emacs/24.0.50/lisp/sb-image /home/joakim/.elisp/cedet/speedbar/speedbar hides /usr/local/share/emacs/24.0.50/lisp/speedbar /home/joakim/.elisp/cedet/speedbar/dframe hides /usr/local/share/emacs/24.0.50/lisp/dframe /home/joakim/.elisp/sclang/tree-widget hides /usr/local/share/emacs/24.0.50/lisp/tree-widget /home/joakim/.emacs.d/elpa/json-1.2/json hides /usr/local/share/emacs/24.0.50/lisp/json /home/joakim/.elisp/emacs-planner/remember/remember hides /usr/local/share/emacs/24.0.50/lisp/textmodes/remember ~/.emacs.d/predictive/avl-tree hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/avl-tree /home/joakim/.elisp/cedet/eieio/eieio-speedbar hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/eieio-speedbar /home/joakim/.elisp/cedet/eieio/eieio-custom hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/eieio-custom /home/joakim/.elisp/cedet/eieio/eieio-opt hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/eieio-opt /home/joakim/.elisp/cedet/eieio/chart hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/chart /home/joakim/.elisp/cedet/eieio/eieio-base hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/eieio-base /home/joakim/.elisp/cedet/eieio/eieio hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/eieio /home/joakim/.emacs.d/elpa/emms-3.0/tq hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/tq /home/joakim/.emacs.d/elpa/ert-0.1/ert hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/ert /home/joakim/.elisp/cedet/eieio/eieio-datadebug hides /usr/local/share/emacs/24.0.50/lisp/emacs-lisp/eieio-datadebug /home/joakim/.elisp/cedet/common/cedet-idutils hides /usr/local/share/emacs/24.0.50/lisp/cedet/cedet-idutils /home/joakim/.elisp/cedet/common/inversion hides /usr/local/share/emacs/24.0.50/lisp/cedet/inversion /home/joakim/.elisp/cedet/ede/ede hides /usr/local/share/emacs/24.0.50/lisp/cedet/ede /home/joakim/.elisp/cedet/common/data-debug hides /usr/local/share/emacs/24.0.50/lisp/cedet/data-debug /home/joakim/.elisp/cedet/semantic/semantic hides /usr/local/share/emacs/24.0.50/lisp/cedet/semantic /home/joakim/.elisp/cedet/common/cedet hides /usr/local/share/emacs/24.0.50/lisp/cedet/cedet /home/joakim/.elisp/cedet/srecode/srecode hides /usr/local/share/emacs/24.0.50/lisp/cedet/srecode /home/joakim/.elisp/cedet/common/pulse hides /usr/local/share/emacs/24.0.50/lisp/cedet/pulse /home/joakim/.elisp/cedet/common/mode-local hides /usr/local/share/emacs/24.0.50/lisp/cedet/mode-local /home/joakim/.elisp/cedet/common/cedet-files hides /usr/local/share/emacs/24.0.50/lisp/cedet/cedet-files /home/joakim/.elisp/cedet/common/cedet-cscope hides /usr/local/share/emacs/24.0.50/lisp/cedet/cedet-cscope /home/joakim/.elisp/cedet/common/cedet-global hides /usr/local/share/emacs/24.0.50/lisp/cedet/cedet-global Features: (shadow gnus-cite mail-extr emacsbug newcomment mule-util cal-move cedet-edebug debug org-timer dabbrev predictive-html auto-overlay-flat predictive-texinfo predictive-latex predictive-auto-overlay-auto-dict auto-overlay-nested auto-overlay-self auto-overlay-line auto-overlay-word predictive timerfunctions auto-overlays auto-overlay-common dict-tree trie tNFA queue heap avl-tree completion-ui-sources completion-ui-menu pos-tip completion-ui-tooltip completion-ui-echo completion-ui-hotkeys completion-ui-dynamic completion-ui-popup-frame completion-ui quail org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus org-docview org-bibtex org-bbdb org ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-complete org-list org-faces org-compat org-entities org-macs semantic-tag-write semanticdb-typecache semantic-tag-file vc-git semanticdb-file semantic-edit filecache bookmark shell jka-compr multi-isearch apropos woman man help-mode ielm semantic-el semantic-bovine bovine-debug semantic-debug paredit zoom-frm frame-cmds frame-fns avoid emvkbd view boxquote rect grep-edit winner browse-kill-ring jv-timeclock ses unsafep timeclock-visualize auto-edit-substitute erc-truncate erc-track erc-spelling flyspell ispell erc-ring erc-pcomplete erc-netsplit erc-log erc-button erc-fill erc-join erc-autoaway zen-1-theme tsdh-dark-theme sha1 hex-util image-file fsdired hide-lines memory-usage my-eshell dired-x ido pager uniquify emms-jave emms-player-mymplayer emms-volume emms-volume-amixer emms-tag-editor emms-i18n emms-mark emms-history emms-bookmarks emms-last-played emms-stream-info emms-metaplaylist-mode emms-lastfm emms-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars emms-browser emms-playlist-sort emms-score emms-player-xine emms-player-mpd tq emms-playing-time emms-lyrics emms-streams emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-info later-do emms-playlist-mode emms-player-mplayer emms-player-simple emms-source-playlist emms-source-file emms-dbus emms-setup emms emms-compat erc-stamp erc-match erc-ezbounce ansi-color delsel paren pcomplete plannerinit muse-backlink remember-planner remember noutline outline planner-cyclic solar cal-dst cal-bahai holidays hol-loaddefs ede-linux ede-emacs ede-cpp-root planner-appt appt diary-lib diary-loaddefs planner-tasks-overview planner-erc erc-goodies erc erc-backend erc-compat pp planner-gnus gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap nnir gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win message sendmail mml mml-sec mailabbrev gmm-utils mailheader gnus gnus-ems nnheader mail-utils planner-multi crm planner-publish muse-xml muse-latex muse-wiki planner cal-menu calendar cal-loaddefs muse-html muse-xml-common muse-colors cus-edit cus-start cus-load muse-publish muse-project muse-protocols muse-regexps muse muse-nested-tags muse-mode windmove abook mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums vcard bbdb-autoloads bbdb timezone pastebin pk-total-recall w3m-load dired-details+ dired-details sort winring disp-table anything-config browse-url rx grep compile dired-aux dired ffap thingatpt anything recentf tree-widget semanticdb-java ede-proj-maven2 cedet-files cedet cedet-contrib-load contrib-loaddefs cogre-load cogre-loaddefs speedbar-load speedbar-loaddefs sb-info ede-load ede-loaddefs ede-speedbar ede-files ede ede-base data-debug ede-auto eieio-speedbar semantic-ia-sb semantic-analyze semantic-scope semantic-analyze-fcn semantic-sort semantic-sb speedbar sb-image dframe eieio-custom wid-edit ede-source srecode-load srecode srecode-loaddefs semantic-load semantic-decorate-include semanticdb-find semanticdb-ref semantic-find semantic-decorate-mode semantic-decorate pulse semantic-mru-bookmark semanticdb-mode semanticdb-el eieio-opt semanticdb semantic-lex-spp eieio-base semantic-idle eldoc senator which-func semantic-imenu imenu semantic-format ezimage semantic-ctxt semantic-util-modes semantic-util semantic semantic-lex semantic-tag-ls semantic-tag working fame semantic-fw semantic-loaddefs mode-local find-func derived eieio-load eieio-loaddefs cedet-load cedet-compat cedet-loaddefs inversion generic-x jvfetchmail mailcrypt rfc822 comint ring zen-mode tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp gnus-util time-date mm-util mail-prsvr password-cache format-spec tramp-loaddefs regexp-opt grab-and-drag easy-mmode warnings server timeclock battery secrets dbus xml anything-autoloads anything-complete-autoloads anything-config-autoloads anything-el-swank-fuzzy-autoloads anything-extension-autoloads anything-ipython-autoloads anything-match-plugin-autoloads c-eldoc-autoloads clojure-test-mode-autoloads color-theme-twilight-autoloads cssh-autoloads dired-isearch-autoloads ecb-autoloads emms-autoloads epresent-autoloads ert-autoloads facebook-autoloads gdb-shell-autoloads gist-autoloads gtk-look-autoloads ipython-autoloads json-autoloads lisppaste-autoloads magit-autoloads mediawiki-autoloads muse-autoloads mv-shell-autoloads nsis-mode-autoloads nterm-autoloads paredit-autoloads pastie-autoloads pov-mode-autoloads rainbow-mode-autoloads smart-tab-autoloads swank-clojure-autoloads clojure-mode-autoloads slime-repl-autoloads slime-autoloads w3-autoloads info wtf-autoloads xml-rpc-autoloads xtide-autoloads yaml-mode-autoloads yasnippet-bundle-autoloads yasnippet-bundle dropdown-list advice help-fns advice-preload yasnippet edmacro kmacro easymenu assoc cl zenburn-autoloads package tabulated-list tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 11 03:56:51 2011 Received: (at 8472) by debbugs.gnu.org; 11 Apr 2011 07:56:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9BzO-0007Yo-QR for submit@debbugs.gnu.org; Mon, 11 Apr 2011 03:56:51 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9BzM-0007Yc-Bf for 8472@debbugs.gnu.org; Mon, 11 Apr 2011 03:56:49 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q9BzG-00074o-MW; Mon, 11 Apr 2011 03:56:42 -0400 Date: Mon, 11 Apr 2011 03:56:42 -0400 Message-Id: From: Eli Zaretskii To: joakim@verona.se In-reply-to: (joakim@chopper.i-did-not-set--mail-host-address--so-tickle-me) Subject: Re: bug#8472: 24.0.50; weird emacs bugs causing data lossage References: X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 8472 Cc: 8472@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > From: joakim@chopper.i-did-not-set--mail-host-address--so-tickle-me you-did-not-set--mail-host-address--so-i'm-tickling-you > Date: Sun, 10 Apr 2011 21:39:55 +0200 > Cc: > > Emacs ask if I really want to edit the buffer and I say > no. Then Emacs redisplay seems to hang. > > This happened several times. Most times I had to kill emacs and loose > my work. This time I tried more debugging. Lately I run Emacs in a > debugger. Weirdly gdb refused to break itho a prompt. ctrl z and fg > woke up gdb. That might mean that Emacs was stuck in a system call. But the fact that it responded to emacsclient eliminates this possibility, I think. I would try delivering a fatal signal to Emacs ("kill -TERM", for example) from the shell prompt. Detaching the debugger under which you ran Emacs and attaching another instance of GDB is another thing to try. > it occured to me that maybe Emacs wasnt totaly hung maybe just > redisplay. I don't see how this can be true. If redisplay infloops, it will never return, and the rest of Emacs will never get to do anything, including the calls to `select' that you saw in strace. > So I tested emacs client and I could recover data like > this: > > emacsclient -e "(let ((b (set-buffer \"journal.org\")) (text (buffer-string))) (set-text-properties 0 (length text) nil text)text)" Now I don't understand how come you couldn't break into it from GDB. > There are two weird things here: > - the file was truncated. Maybe this is due to a combination of > narrowing and automatic save. Can't happen, auto-save forces temporary widening of the buffer (as you'd expect ;-). > - redisplay hangs in minibuffer input. I have no idea about why this > happens. Doesn't seem to be the case, see above. Best thing to try next time is somehow to stop Emacs, and then use the procedure described in etc/DEBUG under "If the symptom of the bug is that Emacs fails to respond". From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 11 05:25:35 2011 Received: (at 8472) by debbugs.gnu.org; 11 Apr 2011 09:25:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9DNH-00013Q-DT for submit@debbugs.gnu.org; Mon, 11 Apr 2011 05:25:35 -0400 Received: from batman.blixtvik.net ([87.96.254.3]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9DNE-00013C-MB for 8472@debbugs.gnu.org; Mon, 11 Apr 2011 05:25:33 -0400 Received: from www.verona.se (10-208-96-87.cust.blixtvik.se [87.96.208.10]) by batman.blixtvik.net (Postfix) with ESMTP id 09B7A7F8995; Mon, 11 Apr 2011 11:25:25 +0200 (CEST) Received: from chopper (unknown [192.168.201.6]) by www.verona.se (Postfix) with ESMTP id 38343A27A25; Mon, 11 Apr 2011 11:25:25 +0200 (CEST) From: joakim@verona.se To: Eli Zaretskii Subject: Re: bug#8472: 24.0.50; weird emacs bugs causing data lossage References: Date: Mon, 11 Apr 2011 11:25:23 +0200 In-Reply-To: (Eli Zaretskii's message of "Mon, 11 Apr 2011 03:56:42 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 8472 Cc: 8472@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) Eli Zaretskii writes: >> From: joakim@chopper.i-did-not-set--mail-host-address--so-tickle-me > > you-did-not-set--mail-host-address--so-i'm-tickling-you Thanks > >> Date: Sun, 10 Apr 2011 21:39:55 +0200 >> Cc: >> >> Emacs ask if I really want to edit the buffer and I say >> no. Then Emacs redisplay seems to hang. >> >> This happened several times. Most times I had to kill emacs and loose >> my work. This time I tried more debugging. Lately I run Emacs in a >> debugger. Weirdly gdb refused to break itho a prompt. ctrl z and fg >> woke up gdb. > > That might mean that Emacs was stuck in a system call. But the fact > that it responded to emacsclient eliminates this possibility, I think. I was unclear. I only tried emacsclient after I had get gdb working again. I got it working by suspending gdb and resuming it again. and sending signals to Emacs (I was a bit furious so this part is a bit hazy) > I would try delivering a fatal signal to Emacs ("kill -TERM", for > example) from the shell prompt. Detaching the debugger under which > you ran Emacs and attaching another instance of GDB is another thing > to try. see above. >> it occured to me that maybe Emacs wasnt totaly hung maybe just >> redisplay. > > I don't see how this can be true. If redisplay infloops, it will > never return, and the rest of Emacs will never get to do anything, > including the calls to `select' that you saw in strace. Ok. So the hang happens somewhere else. The symptom is that nothing happens on the display but emacsclient can communicate. Also, whenever I manage to break into the process with gdb the backtrace shows Emacs is in the select call. With strace I see that Emacs is not stuck there but loops. So I figure theres some poll loop running closely around the select. Or something. Maybe its my constant changing of network interfaces that invalidates sockets or something. >> So I tested emacs client and I could recover data like >> this: >> >> emacsclient -e "(let ((b (set-buffer \"journal.org\")) (text (buffer-string))) (set-text-properties 0 (length text) nil text)text)" > > Now I don't understand how come you couldn't break into it from GDB. See above. I only tried this after getting gdb to work again. >> There are two weird things here: >> - the file was truncated. Maybe this is due to a combination of >> narrowing and automatic save. > > Can't happen, auto-save forces temporary widening of the buffer (as > you'd expect ;-). Well. The funny thing is that the truncated content of the file is the exact same content I see in the narrowed buffer on screen. Org narrows in another window and buffer somehow. Could that interfere? I dont know the term for what it does yet. "indirect buffer" maybe? >> - redisplay hangs in minibuffer input. I have no idea about why this >> happens. > > Doesn't seem to be the case, see above. Ok. > Best thing to try next time is somehow to stop Emacs, and then use the > procedure described in etc/DEBUG under "If the symptom of the bug is > that Emacs fails to respond". Ok thanks. -- Joakim Verona From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 11 05:36:14 2011 Received: (at 8472) by debbugs.gnu.org; 11 Apr 2011 09:36:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9DXZ-0001Ha-Qu for submit@debbugs.gnu.org; Mon, 11 Apr 2011 05:36:14 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9DXY-0001HO-Lq for 8472@debbugs.gnu.org; Mon, 11 Apr 2011 05:36:13 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q9DXS-00087S-Qb; Mon, 11 Apr 2011 05:36:06 -0400 Date: Mon, 11 Apr 2011 05:36:06 -0400 Message-Id: From: Eli Zaretskii To: joakim@verona.se In-reply-to: (joakim@verona.se) Subject: Re: bug#8472: 24.0.50; weird emacs bugs causing data lossage References: X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 8472 Cc: 8472@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > From: joakim@verona.se > Cc: 8472@debbugs.gnu.org > Date: Mon, 11 Apr 2011 11:25:23 +0200 > > I got it working by suspending gdb and resuming it again. and sending > signals to Emacs (I was a bit furious so this part is a bit hazy) So from that point on, please use the procedure in etc/DEBUG to find out where it is looping. > Ok. So the hang happens somewhere else. The symptom is that nothing > happens on the display but emacsclient can communicate. Do you remember what was displayed in the minibuffer at that point, by any chance? Was it a single screen line or more than that? Or maybe only part of the text was visible, i.e. Emacs froze when it tried to enlarge (a.k.a. "resize") the echo area? > Also, whenever I manage to break into the process with gdb the backtrace > shows Emacs is in the select call. With strace I see that Emacs is not > stuck there but loops. This is normal, or at least it could be normal: Emacs usually checks for any arriving input from any possible sources, and that includes calls to `select'. Seeing a lot of calls to `select' is not in itself a sign of an infloop. Only the procedure in etc/DEBUG (or something similar) can give a definitive answer to that. > So I figure theres some poll loop running closely around the select. Emacs does that all the time, that's how it knows that input arrived from a subprocess or a socket, for example. It polls. > >> - the file was truncated. Maybe this is due to a combination of > >> narrowing and automatic save. > > > > Can't happen, auto-save forces temporary widening of the buffer (as > > you'd expect ;-). > > Well. The funny thing is that the truncated content of the file is the > exact same content I see in the narrowed buffer on screen. > > Org narrows in another window and buffer somehow. Could that interfere? > I dont know the term for what it does yet. "indirect buffer" maybe? Could be. IOW, if auto-save happened in a buffer whose contents was just the text you found in the auto-save file. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 09 18:15:05 2017 Received: (at control) by debbugs.gnu.org; 9 Jul 2017 22:15:05 +0000 Received: from localhost ([127.0.0.1]:59250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUKTo-0004Zc-UG for submit@debbugs.gnu.org; Sun, 09 Jul 2017 18:15:05 -0400 Received: from mail-it0-f42.google.com ([209.85.214.42]:36501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUKTn-0004Ys-65 for control@debbugs.gnu.org; Sun, 09 Jul 2017 18:15:03 -0400 Received: by mail-it0-f42.google.com with SMTP id m68so18452132ith.1 for ; Sun, 09 Jul 2017 15:15:03 -0700 (PDT) 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=l6pdG6KTecCDtW6hton75OhQ/hkGdSCzNBRmBv+Z83E=; b=luJaA5kVTBGpk2CbN1+IW+YFQQu76qdH3Ey04lLhoWeG8MhgnF8JtO7BNpfqG1oDSm AE0RTQsDGkSlNh4bRq1m8R04AF+4LZUhwQjJ2Hd9WxOeP67Pgn1myYn1+jnjOGLPOoy/ iLixdmwA967Wbu87yqFI8SEdiqTPPxNhJXm4ShDS0nj4mCQs1KYLQmQOIiPxOxUfmMHY Sdjr7ixUKc+Hn1DF1JFZgfOkztYvoNR7HhuN7cAH+bdOXpBAz9wSf43CmZBIbQv9SYqC wRMK1rBavxFPp5HL5dq387W+AIQrLlPgFA2Qm9fiej62DcDiflpkHsw+qZDNHBqnSJ4c hIgA== 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=l6pdG6KTecCDtW6hton75OhQ/hkGdSCzNBRmBv+Z83E=; b=JnLmh8JuNNaiveblPORVLWgsnlQ4RaFLkvzVO8P5jqhSYERf9N2C8r5aicFOH8DheD T4g3g+IAd7eF6lnT3eXg95vFOYN8Fw9WFI4vlntCIKUQ/N+X08TLQ1LR6iulJ38Lbr9N oTJUPeJHGuh2GtnAucPLEWWG5FlwmsV1zPXRVjS5MMqNIOFwoLjUIaHtssjU5uvjkOpi 7Kt4JxEfa+WfDLu2IZD51SkC9uHGDhCacU67IlF5r5rHrFjKtSMud6tQB1dKkn90bZ5T IYmqepBo9gqJjKUYuSoF9VYLap/YlkHOztidpbJKrsGvRsMKXpdrFNVevdO/hglkZSSD YT9A== X-Gm-Message-State: AIVw111O60avHb9u3QNOZnrGxyVtpD2vtbxUvrCdv3PR9rqSIzBFcvO/ IQIaoRSTeBfQlOf7 X-Received: by 10.36.79.13 with SMTP id c13mr3851122itb.26.1499638496563; Sun, 09 Jul 2017 15:14:56 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id c190sm3167687itc.24.2017.07.09.15.14.55 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Jul 2017 15:14:56 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #8472 Date: Sun, 09 Jul 2017 18:16:28 -0400 Message-ID: <87tw2lfe83.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.2 (/) 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.2 (/) tags 8472 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 08 19:33:49 2019 Received: (at control) by debbugs.gnu.org; 9 Jan 2019 00:33:49 +0000 Received: from localhost ([127.0.0.1]:50690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gh1ob-0003VI-5I for submit@debbugs.gnu.org; Tue, 08 Jan 2019 19:33:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gh1oa-0003V3-6u for control@debbugs.gnu.org; Tue, 08 Jan 2019 19:33:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gh1oS-0008U5-Ur for control@debbugs.gnu.org; Tue, 08 Jan 2019 19:33:42 -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]:48231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gh1oS-0008Tb-MA for control@debbugs.gnu.org; Tue, 08 Jan 2019 19:33:40 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gh1oS-0003sz-ID for control@debbugs.gnu.org; Tue, 08 Jan 2019 19:33:40 -0500 Subject: control message for bug 8472 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 08 Jan 2019 19:33:40 -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 8472 = wontfix close 8472 From unknown Wed Jun 25 00:21:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Feb 2019 12:24:15 +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