From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15893: 24.3.50; emacs_backtrace Date: Tue, 26 Nov 2013 19:19:28 +0200 Message-ID: <83r4a39j33.fsf@gnu.org> References: <83ppq3ylub.fsf@gnu.org> <83iovuzyg5.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1385486419 14365 80.91.229.3 (26 Nov 2013 17:20:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 17:20:19 +0000 (UTC) Cc: 15893@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 26 18:20:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VlMJB-0004VS-QD for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 18:20:22 +0100 Original-Received: from localhost ([::1]:60197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlMJB-0001jl-Df for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 12:20:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlMJ1-0001hU-7X for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:20:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlMIt-0005yq-U6 for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:20:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlMIt-0005xc-Q4 for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VlMIs-0003Cz-No for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 12:20:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2013 17:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15893 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 15893-submit@debbugs.gnu.org id=B15893.138548636112269 (code B ref 15893); Tue, 26 Nov 2013 17:20:02 +0000 Original-Received: (at 15893) by debbugs.gnu.org; 26 Nov 2013 17:19:21 +0000 Original-Received: from localhost ([127.0.0.1]:46216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VlMIC-0003Bm-D1 for submit@debbugs.gnu.org; Tue, 26 Nov 2013 12:19:20 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:40553) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VlMI9-0003BW-Qk for 15893@debbugs.gnu.org; Tue, 26 Nov 2013 12:19:18 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MWV00700S0HDT00@a-mtaout22.012.net.il> for 15893@debbugs.gnu.org; Tue, 26 Nov 2013 19:19:11 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWV007SFS3Y9A40@a-mtaout22.012.net.il>; Tue, 26 Nov 2013 19:19:11 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80999 Archived-At: > Date: Tue, 26 Nov 2013 14:57:52 +0100 > From: Dani Moncayo > > >> > If you can recall what were you doing when this happened, please tell. > >> > >> Reverting a buffer which was updated by another program. > > > > Thanks. > > FWIW: Today (with an Emacs build yesterday from trunk) I've got two > more crashes while reverting buffers. Thanks. However, without a recipe to reproduce or at least some supporting data, there's not much one can learn from this, except that the problem is not yet solved. If I modify a file outside Emacs and then try to insert a character, and when Emacs asks the question, tell it to revert its buffer, I see no crashes. > Finsert_file_contents at fileio.c:4019 > Ffuncall at eval.c:2821 > exec_byte_code at bytecode.c:919 > funcall_lambda at eval.c:2973 > Ffuncall at eval.c:2854 > exec_byte_code at bytecode.c:919 > funcall_lambda at eval.c:2973 > Ffuncall at eval.c:2854 > exec_byte_code at bytecode.c:919 > funcall_lambda at eval.c:2973 > Ffuncall at eval.c:2854 > exec_byte_code at bytecode.c:919 > funcall_lambda at eval.c:3039 > Ffuncall at eval.c:2854 > call1 at eval.c:2604 > lock_file at filelock.c:709 > prepare_to_modify_buffer_1 at insdel.c:1841 > prepare_to_modify_buffer at insdel.c:1876 > insert_1_both at insdel.c:797 > insert_and_inherit at insdel.c:593 > internal_self_insert at cmds.c:489 > Fself_insert_command at cmds.c:310 > Ffuncall at eval.c:2805 > Fcall_interactively at callint.c:836 What I see from this backtrace is that you typed a characters (self-insert-command), to which Emacs told you that the file was modified and asked what to do. You then replied with 'r', asking Emacs to revert the buffer. As result of the revert, some after-change-hook got run, which caused another (perhaps the same) after-change-hook to run: > Fline_beginning_position at editfns.c:772 > Ffuncall at eval.c:2805 > exec_byte_code at bytecode.c:919 > funcall_lambda at eval.c:3039 > Ffuncall at eval.c:2854 > funcall_nil at eval.c:2356 > run_hook_with_args at eval.c:2541 > Frun_hook_with_args at eval.c:2402 <<<<<<<<<<<<<<<<<<<<< > Ffuncall at eval.c:2786 > exec_byte_code at bytecode.c:919 > funcall_lambda at eval.c:2973 > Ffuncall at eval.c:2854 > funcall_nil at eval.c:2356 > run_hook_with_args at eval.c:2541 > Frun_hook_with_args at eval.c:2402 <<<<<<<<<<<<<<<<<<<<<<<< > signal_after_change at insdel.c:2081 > del_range_byte at insdel.c:1637 > Finsert_file_contents at fileio.c:4019 Any idea what could those hooks be? In general, if you want to help the investigation, run Emacs under GDB, and when this happens look around to find answers to these questions. TIA.