From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Pohlack Subject: Strange hiccups when running in server Date: Mon, 06 Jul 2009 18:42:33 +0200 Message-ID: <4A522979.2090805@os.inf.tu-dresden.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060001030104070105020409" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNrHA-00056N-1g for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 12:42:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNrH6-00053z-2F for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 12:42:43 -0400 Received: from [199.232.76.173] (port=52459 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNrH4-00053u-8c for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 12:42:38 -0400 Received: from os.inf.tu-dresden.de ([141.76.48.99]:34190) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MNrH3-0002TS-It for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 12:42:38 -0400 Received: from [217.9.48.20] (helo=[165.204.15.153]) by os.inf.tu-dresden.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) id 1MNrH1-00011L-Fo for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 18:42:35 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------060001030104070105020409 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi all, I often edit org-mode files in my emacs server. After some time, org-mode behaves strangely and can only be brought back to normal by rebooting the emacs server. The symptom is that tree folding does not work anymore. Everything is expanded (also when loading new org files) and hitting tab, C-tab etc. on items results in no action but the message “FOLDED” in the minibuffer. I tried to debug this but didn't get too far. I'm using the following wrapper for (debug …) in order to capture all the leaf-nodes of the backtraces when single stepping with ‘d’: ---------------------------------------------------------------------- (defun debug-with-leaf-trace (&rest debugger-args) "Wrapper for debug which generates a backtrace for each step and captures the current leave node in the backtrace into a continous trace in another buffer." (interactive) (with-output-to-temp-buffer "_backtraces" (backtrace)) (save-excursion (set-buffer "_backtraces") (setq err1 (goto-line 4)) (setq start (point)) (setq err2 (beginning-of-line 2)) (setq end (point)) (if (and (eq err1 0) (eq err2 nil)) ; this does not really append sometimes but inserts somewhere ; in the middle ? (append-to-buffer "_backtraces2" start end) (debug-print "XXX\n")) (debug debugger-args))) ---------------------------------------------------------------------- I traced org-cycle with above's debug wrapper active on the following file: --debug_tab.org------------------------------------------------------- * a b ---------------------------------------------------------------------- By evaling this: (debug-on-entry 'org-cycle) (setq debugger 'debug-with-leaf-trace) then M-x show-all in the debug_tab.org buffer to trace the closing of a tree part. I single stepped through the first part but the diverse hooks took forever to step through, so I hit ‘c’ several times later on in the trace. After a first glance, the traces do not show a significant difference in the first part. I'm quiet sure, that debugging somehow interferes with the later part. Anyway, please find the traces attached. I'm not sure if this is a sensible approach to debugging this problem. How would you go about this? Cheers, Martin Pohlack --------------060001030104070105020409 Content-Type: text/plain; name="leaf-trace-bad.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="leaf-trace-bad.txt" ICBpbXBsZW1lbnQtZGVidWctb24tZW50cnkoKQoqIChvcmctbG9hZC1tb2R1bGVzLW1heWJl KQoqICh3aGVuIChvciBmb3JjZSAobm90IG9yZy1tb2R1bGVzLWxvYWRlZCkpIChtYXBjIChs YW1iZGEgLi4uIC4uLikgb3JnLW1vZHVsZXMpIChzZXRxIG9yZy1tb2R1bGVzLWxvYWRlZCB0 KSkKKiAjWyhjb25kICZyZXN0IGJvZHkpICJcMzAyCFwzMDMJQkVcMjA3IiBbY29uZCBib2R5 IGlm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sZXQqICguLi4gLi4uIC4uLiAuLi4gLi4uIC4uLikgKGlmIC4uLiAu Li4pIChjb25kIC4uLiAuLi4gLi4uIC4uLiAuLi4gLi4uIC4uLiAuLi4gLi4uIC4uLiAuLi4g Li4uIC4uLiAuLi4gLi4uKSkpCiogcnVuLWhvb2tzKGFjdGl2YXRlLW1lbnViYXItaG9vaykK KiAobm9ybWFsLXRvcC1sZXZlbCkKKiBtZXNzYWdlKCJCYWNrIHRvIHRvcCBsZXZlbC4iKQoq IG1lc3NhZ2UoIkJhY2sgdG8gdG9wIGxldmVsLiIpCiogbm9ybWFsLXRvcC1sZXZlbCgpCiog cnVuLWhvb2tzKGFjdGl2YXRlLW1lbnViYXItaG9vaykKKiAobm9ybWFsLXRvcC1sZXZlbCkK KiBtZXNzYWdlKCJCYWNrIHRvIHRvcCBsZXZlbC4iKQoqIG1lc3NhZ2UoIkJhY2sgdG8gdG9w IGxldmVsLiIpCiogbm9ybWFsLXRvcC1sZXZlbCgpCiogcnVuLWhvb2tzKGFjdGl2YXRlLW1l bnViYXItaG9vaykKKiAobm9ybWFsLXRvcC1sZXZlbCkKKiBub3JtYWwtdG9wLWxldmVsKCkK --------------060001030104070105020409 Content-Type: text/plain; name="leaf-trace-good.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="leaf-trace-good.txt" ICBpbXBsZW1lbnQtZGVidWctb24tZW50cnkoKQoqIChvcmctbG9hZC1tb2R1bGVzLW1heWJl KQoqICh3aGVuIChvciBmb3JjZSAobm90IG9yZy1tb2R1bGVzLWxvYWRlZCkpIChtYXBjIChs YW1iZGEgLi4uIC4uLikgb3JnLW1vZHVsZXMpIChzZXRxIG9yZy1tb2R1bGVzLWxvYWRlZCB0 KSkKKiAjWyhjb25kICZyZXN0IGJvZHkpICJcMzAyCFwzMDMJQkVcMjA3IiBbY29uZCBib2R5 IGlmIHByb2duXSA0IDIxNTE3ODhdKChvciBmb3JjZSAobm90IG9yZy1tb2R1bGVzLWxvYWRl ZCkp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uLi4gLi4uIC4uLiAuLi4gLi4uIC4uLiAuLi4gLi4uIC4uLiAuLi4g Li4uIC4uLiAuLi4gLi4uKSkpCiogcnVuLWhvb2tzKHBvc3QtY29tbWFuZC1ob29rKQoqIHJ1 bi1ob29rcyhwb3N0LWNvbW1hbmQtaG9vaykKKiBub3JtYWwtdG9wLWxldmVsKCkKKiBtZXNz YWdlKCJCYWNrIHRvIHRvcCBsZXZlbC4iKQoqIG1lc3NhZ2UoIkJhY2sgdG8gdG9wIGxldmVs LiIpCiogKG5vcm1hbC10b3AtbGV2ZWwpCiogcnVuLWhvb2tzKGFjdGl2YXRlLW1lbnViYXIt aG9vaykK --------------060001030104070105020409 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --------------060001030104070105020409--