From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#9006: 24.0.50; Abort in unshow_buffer/kill-buffer Date: Sun, 10 Jul 2011 22:31:38 +0200 Message-ID: <87zkklx4gl.fsf@escher.fritz.box> References: <877h7wxqjv.fsf@escher.fritz.box> <4E1429F3.1010305@gmx.at> <87oc17xlmu.fsf@escher.fritz.box> <4E156D17.8020804@gmx.at> <871uy2qvv6.fsf@escher.fritz.box> <4E15D520.4030809@gmx.at> <87mxgobcj6.fsf@escher.fritz.box> <4E1814F7.4060002@gmx.at> <87r55zekei.fsf@escher.fritz.box> <4E18510F.7070506@gmx.at> <87wrfrmnbv.fsf@escher.fritz.box> <87sjqfmm2n.fsf@escher.fritz.box> <4E1969EE.7040201@gmx.at> <87d3hiqvos.fsf@escher.fritz.box> <4E19A979.3070805@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310331222 10811 80.91.229.12 (10 Jul 2011 20:53:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2011 20:53:42 +0000 (UTC) Cc: 9006@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 22:53:35 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg10Q-00028M-HS for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2011 22:53:34 +0200 Original-Received: from localhost ([::1]:41841 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg10P-0003Kc-3w for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2011 16:53:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:32934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg0ff-00069V-RV for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2011 16:32:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qg0fb-0007ql-O3 for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2011 16:32:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg0fb-0007qh-Dy for bug-gnu-emacs@gnu.org; Sun, 10 Jul 2011 16:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qg0fZ-0005f5-U6; Sun, 10 Jul 2011 16:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2011 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9006-submit@debbugs.gnu.org id=B9006.131032991221745 (code B ref 9006); Sun, 10 Jul 2011 20:32:01 +0000 Original-Received: (at 9006) by debbugs.gnu.org; 10 Jul 2011 20:31:52 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg0fP-0005eg-7G for submit@debbugs.gnu.org; Sun, 10 Jul 2011 16:31:51 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Qg0fL-0005eS-LY for 9006@debbugs.gnu.org; Sun, 10 Jul 2011 16:31:50 -0400 Original-Received: (qmail invoked by alias); 10 Jul 2011 20:31:40 -0000 Original-Received: from i59F57976.versanet.de (EHLO escher.home) [89.245.121.118] by mail.gmx.net (mp045) with SMTP; 10 Jul 2011 22:31:40 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/b1U5t+xLb8S0iDpw/aqXCkqFucoh4lPngTce3td fDoNVsSXFXSbBn Original-Received: by escher.home (Postfix, from userid 1000) id B6AA95F8D7; Sun, 10 Jul 2011 22:31:38 +0200 (CEST) In-Reply-To: <4E19A979.3070805@gmx.at> (martin rudalics's message of "Sun, 10 Jul 2011 15:30:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 10 Jul 2011 16:32:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:48507 Archived-At: On Sun, 10 Jul 2011 15:30:33 +0200 martin rudalics wrote: >> Is window-point set to 1 as a side effect of making the temporary >> buffer? > > No. It happens because I used BEG instead of the buffer's point. > >>> Rather _you_ did set the old >>> buffer's window point to 1 and it stays put there when you set w->buffer >>> to old_buffer upon exiting `vertical-motion'. >> >> Do you have a suggestion how to reset point? > > I attached I patch. It compiles but is hardly trustworthy. For > example, old_buffer might have got killed in the meantime. I applied the patch and rebuilt Emacs, then started with my initializations under gdb. Emacs came up fine, then I type C-h C-a and it aborted in unshow_buffer; the backtrace is almost identical to the one I posted previously. Then I started Emacs again, started Gnus, as with your first suggested patch with set_marker_both (w->buffer, BEG, BEGV) the display was unstable (unselected window at first blank, then blank fringe), then tried `h' and it worked a few times but the response was slow, and then (after `h' not C-g) Emacs aborted in unshow_buffer; backtrace below. Just out of curiosity (since I don't understand the code), I rebuilt again with the following call (old_buffer instead of w->buffer): set_marker_both (w->pointm, old_buffer, BUF_PT (current_buffer), BUF_PT_BYTE (current_buf= fer)); This did not cause an abort with C-h C-a nor with h in Gnus, but it showed the same problem of point in the non-selected window jumping to point-min, despite not passing BEG and BEGV. Steve Berman #0 abort () at /data/steve/bzr/emacs/quickfixes/src/emacs.c:379 No locals. #1 0x080a71a7 in unshow_buffer (w=3D0xa881840) at /data/steve/bzr/emacs/quickfixes/src/window.c:1801 buf =3D 175435581 b =3D 0xa74ef38 #2 0x080ae5a5 in delete_all_subwindows (window=3D176691269) at /data/steve/bzr/emacs/quickfixes/src/window.c:5750 w =3D 0xa881840 #3 0x080af93f in Fdelete_other_windows_internal (window=3D141161989, root= =3D 175703581) at /data/steve/bzr/emacs/quickfixes/src/window.c:2753 w =3D 0x869f600 r =3D 0xa790618 s =3D f =3D 0x86e2b00 sibling =3D pwindow =3D swindow =3D delta =3D startpos =3D 1 top =3D 0 new_top =3D resize_failed =3D #4 0x081ab1d8 in Ffuncall (nargs=3D3, args=3D0xbfffe070) at /data/steve/bzr/emacs/quickfixes/src/eval.c:3012 fun =3D original_fun =3D funcar =3D numargs =3D 2 lisp_numargs =3D val =3D backtrace =3D { next =3D 0xbfffe1a4,=20 function =3D 0xbfffe070,=20 args =3D 0xbfffe074,=20 nargs =3D 2,=20 debug_on_exit =3D 0 ---Type to continue, or q to quit--- } internal_args =3D 0xbfffe074 i =3D #5 0x081e2c26 in exec_byte_code (bytestr=3D, vector=3D 136775173, maxdepth=3D20, args_template=3D138576074, nargs=3D0,=20 args=3D) at /data/steve/bzr/emacs/quickfixes/src/bytecode.c:785 op =3D vectorp =3D stack =3D { pc =3D 0x83bd4a7 "\210\324\016\027!\210\325\016\027!\210=D0=87",= =20 byte_string =3D 136775145,=20 byte_string_start =3D 0x83bd449 "\b\204T",=20 constants =3D 136775173,=20 next =3D 0xbfffe33c } top =3D 0xbfffe070 result =3D #6 0x081e3888 in Fbyte_code (bytestr=3D136775145, vector=3D136775173, maxd= epth=3D20) at /data/steve/bzr/emacs/quickfixes/src/bytecode.c:423 No locals. #7 0x081aa61c in eval_sub (form=3D136775134) at /data/steve/bzr/emacs/quickfixes/src/eval.c:2363 numargs =3D args_left =3D 138576074 i =3D 3 maxargs =3D 3 argvals =3D {136775145, 136775173, 20, 144317952, 17, 0, 175461590,= 0} fun =3D val =3D original_fun =3D original_args =3D 136775142 funcar =3D backtrace =3D { next =3D 0xbfffe41c,=20 function =3D 0xbfffe1bc,=20 args =3D 0xbfffe184,=20 ---Type to continue, or q to quit--- nargs =3D 3,=20 debug_on_exit =3D 0 } #8 0x081a94e1 in internal_catch (tag=3D138866114, func=3D0x81aa180 , arg=3D 136775134) at /data/steve/bzr/emacs/quickfixes/src/eval.c:1247 c =3D { tag =3D 138866114,=20 val =3D 138576074,=20 next =3D 0xbfffea84,=20 gcpro =3D 0x0,=20 jmp =3D {{ __jmpbuf =3D {-1073749280, 136775032, 51, -1073749304, 609379= 2,=20 -894025585},=20 __mask_was_saved =3D 0,=20 __saved_mask =3D { __val =3D {138576074, 1, 0, 139051442, 138576074, 322121786= 4,=20 139051466, 2, 1073741824, 3221217992, 135966707, 141161989, 139051442,= =20 3221218228, 3221218356, 3221219972, 0, 2, 147359232, 2, 3221218004,=20 145845888, 136764096, 1, 3221218020, 139051464, 138992122, 3221218000,= =20 3221218004, 138576074, 3221218332, 3221218016} } }},=20 backlist =3D 0xbfffe41c,=20 handlerlist =3D 0xbfffeb4c,=20 lisp_eval_depth =3D 4,=20 pdlcount =3D 16,=20 poll_suppress_count =3D 1,=20 interrupt_input_blocked =3D 0,=20 byte_stack =3D 0xbfffe33c } #9 0x081e23e4 in exec_byte_code (bytestr=3D, vector=3D 136775037, maxdepth=3D16, args_template=3D138576074, nargs=3D0,=20 args=3D) at /data/steve/bzr/emacs/quickfixes/src/bytecode.c:966 v1 =3D op =3D vectorp =3D ---Type to continue, or q to quit--- stack =3D { pc =3D 0x83bd506 "-\207",=20 byte_string =3D 136775017,=20 byte_string_start =3D 0x83bd4b5 "\b\211\030\203\063",=20 constants =3D 136775037,=20 next =3D 0xbfffe4bc } top =3D 0xbfffe2e0 result =3D #10 0x081aabf8 in funcall_lambda (fun=3D136774989, nargs=3D0, arg_vector=3D= 0xbfffe464) at /data/steve/bzr/emacs/quickfixes/src/eval.c:3240 val =3D syms_left =3D 138576074 next =3D lexenv =3D 138576074 count =3D i =3D optional =3D rest =3D #11 0x081aaff3 in Ffuncall (nargs=3D1, args=3D0xbfffe460) at /data/steve/bzr/emacs/quickfixes/src/eval.c:3070 fun =3D original_fun =3D 138968194 funcar =3D numargs =3D 0 lisp_numargs =3D val =3D backtrace =3D { next =3D 0xbfffe59c,=20 function =3D 0xbfffe460,=20 args =3D 0xbfffe464,=20 nargs =3D 0,=20 debug_on_exit =3D 0 } internal_args =3D i =3D #12 0x081e2c26 in exec_byte_code (bytestr=3D, vector=3D ---Type to continue, or q to quit--- 171336941, maxdepth=3D16, args_template=3D138576074, nargs=3D0,=20 args=3D) at /data/steve/bzr/emacs/quickfixes/src/bytecode.c:785 op =3D vectorp =3D stack =3D { pc =3D 0x8c98721 "\210\202\202",=20 byte_string =3D 146497641,=20 byte_string_start =3D 0x8c986b0 "\306\b!\203\n",=20 constants =3D 171336941,=20 next =3D 0xbfffe63c } top =3D 0xbfffe460 result =3D #13 0x081aabf8 in funcall_lambda (fun=3D143981725, nargs=3D2, arg_vector=3D= 0xbfffe5e4) at /data/steve/bzr/emacs/quickfixes/src/eval.c:3240 val =3D syms_left =3D 138576074 next =3D lexenv =3D 138576074 count =3D i =3D optional =3D rest =3D #14 0x081aaff3 in Ffuncall (nargs=3D3, args=3D0xbfffe5e0) at /data/steve/bzr/emacs/quickfixes/src/eval.c:3070 fun =3D original_fun =3D 146011586 funcar =3D numargs =3D 2 lisp_numargs =3D val =3D backtrace =3D { next =3D 0xbfffe71c,=20 function =3D 0xbfffe5e0,=20 args =3D 0xbfffe5e4,=20 nargs =3D 2,=20 ---Type to continue, or q to quit--- debug_on_exit =3D 0 } internal_args =3D i =3D #15 0x081e2c26 in exec_byte_code (bytestr=3D, vector=3D 172883509, maxdepth=3D16, args_template=3D138576074, nargs=3D0,=20 args=3D) at /data/steve/bzr/emacs/quickfixes/src/bytecode.c:785 op =3D vectorp =3D stack =3D { pc =3D 0xa483820 "\210\315\307\b!!\207",=20 byte_string =3D 172756425,=20 byte_string_start =3D 0xa4837f8 "\b\211\031\205\v",=20 constants =3D 172883509,=20 next =3D 0x0 } top =3D 0xbfffe5e0 result =3D #16 0x081aabf8 in funcall_lambda (fun=3D172883685, nargs=3D0, arg_vector=3D= 0xbfffe784) at /data/steve/bzr/emacs/quickfixes/src/eval.c:3240 val =3D syms_left =3D 138576074 next =3D lexenv =3D 138576074 count =3D i =3D optional =3D rest =3D #17 0x081aaff3 in Ffuncall (nargs=3D1, args=3D0xbfffe780) at /data/steve/bzr/emacs/quickfixes/src/eval.c:3070 fun =3D original_fun =3D 171201106 funcar =3D numargs =3D 0 lisp_numargs =3D val =3D ---Type to continue, or q to quit--- backtrace =3D { next =3D 0xbfffe8ec,=20 function =3D 0xbfffe780,=20 args =3D 0xbfffe784,=20 nargs =3D 0,=20 debug_on_exit =3D 0 } internal_args =3D i =3D #18 0x081ab5d3 in apply1 (fn=3D171201106, arg=3D138576074) at /data/steve/bzr/emacs/quickfixes/src/eval.c:2745 ret_ungc_val =3D 195149784 #19 0x081a706d in Fcall_interactively (function=3D171201106, record_flag=3D 138576074, keys=3D138604237) at /data/steve/bzr/emacs/quickfixes/src/callint.c:379 input =3D funval =3D events =3D args =3D visargs =3D specs =3D 138576074 filter_specs =3D teml =3D up_event =3D 138576074 enable =3D 138576074 speccount =3D next_event =3D prefix_arg =3D 138576074 string =3D 0x0 tem =3D varies =3D i =3D nargs =3D foo =3D prompt1 =3D "\000\000\000\000\000 ", '\000' tem1 =3D arg_from_tty =3D 0 ---Type to continue, or q to quit--- key_count =3D 1 record_then_fail =3D 0 save_this_command =3D 171201106 save_last_command =3D 139533058 save_this_original_command =3D 171201106 save_real_this_command =3D 171201106 #20 0x081ab1c1 in Ffuncall (nargs=3D4, args=3D0xbfffe930) at /data/steve/bzr/emacs/quickfixes/src/eval.c:3016 fun =3D original_fun =3D funcar =3D numargs =3D 3 lisp_numargs =3D val =3D backtrace =3D { next =3D 0x0,=20 function =3D 0xbfffe930,=20 args =3D 0xbfffe934,=20 nargs =3D 3,=20 debug_on_exit =3D 0 } internal_args =3D 0xbfffe934 i =3D #21 0x081ab471 in call3 (fn=3D138698938, arg1=3D171201106, arg2=3D138576074= , arg3=3D 138576074) at /data/steve/bzr/emacs/quickfixes/src/eval.c:2809 ret_ungc_val =3D 195149784 args =3D {138698938, 171201106, 138576074, 138576074} #22 0x0813c00f in Fcommand_execute (cmd=3D171201106, record_flag=3D13857607= 4, keys=3D 138576074, special=3D138576074) at /data/steve/bzr/emacs/quickfixes/src/keyboard.c:10274 final =3D tem =3D prefixarg =3D 138576074 #23 0x08149980 in command_loop_1 () at /data/steve/bzr/emacs/quickfixes/src/keyboard.c:1572 scount =3D 2 cmd =3D ---Type to continue, or q to quit--- keybuf =3D {416, 135527171, 176532358, 138576098, -1073747426, 1395= 33058,=20 138689802, 138576074, -1073747416, -1073747426, 138576074, 138576074,=20 -1073747352, 135527446, 176532358, -1073747426, 138576074, 138689800, 0= , 0,=20 -1232775064, 2, 139002824, 139002840, -1073747384, 135973625, 2, 138828= 926,=20 23, 0} i =3D prev_modiff =3D 122 prev_buffer =3D 0xa7e2828 #24 0x081a95b1 in internal_condition_case (bfun=3D0x8149660 ,=20 handlers=3D138607114, hfun=3D0x813fb60 ) at /data/steve/bzr/emacs/quickfixes/src/eval.c:1493 val =3D c =3D { tag =3D 138576074,=20 val =3D 138576074,=20 next =3D 0xbfffeba8,=20 gcpro =3D 0x0,=20 jmp =3D {{ __jmpbuf =3D {0, 139002824, 139002840, -1073747096, 4971488,= =20 -894052209},=20 __mask_was_saved =3D 0,=20 __saved_mask =3D { __val =3D {1, 3087005952, 7, 142299368, 45, 142299368, 3086= 910040,=20 3065788385, 134551036, 7, 0, 3221220192, 3221220136, 0, 3087005952,=20 134550029, 3067970904, 3067183092, 3066786931, 7, 3221220432, 322122012= 8,=20 3221220432, 135614420, 2, 3221220292, 3221220128, 3065744920, 306797090= 4, 0,=20 4294967295, 3087003636} } }},=20 backlist =3D 0x0,=20 handlerlist =3D 0x0,=20 lisp_eval_depth =3D 0,=20 pdlcount =3D 2,=20 poll_suppress_count =3D 1,=20 interrupt_input_blocked =3D 0,=20 byte_stack =3D 0x0 } ---Type to continue, or q to quit--- h =3D { handler =3D 138607114,=20 var =3D 138576074,=20 chosen_clause =3D 138576098,=20 tag =3D 0xbfffea84,=20 next =3D 0x0 } #25 0x0813eae5 in command_loop_2 (ignore=3D138576074) at /data/steve/bzr/emacs/quickfixes/src/keyboard.c:1156 val =3D 195149784 #26 0x081a94e1 in internal_catch (tag=3D138605090, func=3D 0x813eac0 , arg=3D138576074) at /data/steve/bzr/emacs/quickfixes/src/eval.c:1247 c =3D { tag =3D 138605090,=20 val =3D 138576074,=20 next =3D 0x0,=20 gcpro =3D 0x0,=20 jmp =3D {{ __jmpbuf =3D {0, 139002824, 139002840, -1073746824, 4725728,= =20 -894025585},=20 __mask_was_saved =3D 0,=20 __saved_mask =3D { __val =3D {0, 0, 0, 0, 0, 0, 0, 0, 3066169116, 0, 0, 0,=20 3066169116, 0, 0, 0, 64, 3221220408, 135893371, 138253360, 64, 14,=20 138741954, 138741952, 138576074, 3221220472, 135973238, 138741954,=20 138576074, 138576074, 1, 3221220520} } }},=20 backlist =3D 0x0,=20 handlerlist =3D 0x0,=20 lisp_eval_depth =3D 0,=20 pdlcount =3D 2,=20 poll_suppress_count =3D 1,=20 interrupt_input_blocked =3D 0,=20 byte_stack =3D 0x0 } ---Type to continue, or q to quit--- #27 0x0813f686 in command_loop () at /data/steve/bzr/emacs/quickfixes/src/keyboard.c:1135 No locals. #28 recursive_edit_1 () at /data/steve/bzr/emacs/quickfixes/src/keyboard.c:= 756 count =3D 1 val =3D 0 #29 0x0813f982 in Frecursive_edit () at /data/steve/bzr/emacs/quickfixes/src/keyboard.c:820 count =3D buffer =3D 138576074 #30 0x0813aa1c in main (argc=3D2, argv=3D0xbffff084) at /data/steve/bzr/emacs/quickfixes/src/emacs.c:1702 dummy =3D 1 stack_bottom_variable =3D 8 '\b' do_initial_setlocale =3D skip_args =3D 0 rlim =3D { rlim_cur =3D 8388608,=20 rlim_max =3D 18446744073709551615 } no_loadup =3D 0 junk =3D 0x0 dname_arg =3D 0x0 ch_to_dir =3D 0x0 Lisp Backtrace: "delete-other-windows-internal" (0xbfffe074) "byte-code" (0xbfffe184) "delete-other-windows" (0xbfffe464) "gnus-configure-windows" (0xbfffe5e4) "gnus-summary-select-article-buffer" (0xbfffe784) "call-interactively" (0xbfffe934)