From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#20734: 25.0.50; "Args out of range" with help-window-select t Date: Thu, 04 Jun 2015 21:47:08 +0200 Message-ID: <86vbf3tfwj.fsf@members.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1433447336 21818 80.91.229.3 (4 Jun 2015 19:48:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2015 19:48:56 +0000 (UTC) To: 20734@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 04 21:48:44 2015 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 1Z0b7s-0001NO-Hw for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jun 2015 21:48:28 +0200 Original-Received: from localhost ([::1]:43783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0b7m-0001ox-Dh for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jun 2015 15:48:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0b7W-0001Qz-5t for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 15:48:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0b7S-0001Gu-VY for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 15:48:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0b7S-0001Gq-TK for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 15:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z0b7S-0001pg-NU for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 15:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jun 2015 19:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20734 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14334472476157 (code B ref -1); Thu, 04 Jun 2015 19:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Jun 2015 19:47:27 +0000 Original-Received: from localhost ([127.0.0.1]:40816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0b6s-0001ai-Jv for submit@debbugs.gnu.org; Thu, 04 Jun 2015 15:47:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51408) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0b6q-0001WF-0H for submit@debbugs.gnu.org; Thu, 04 Jun 2015 15:47:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0b6j-000156-Rb for submit@debbugs.gnu.org; Thu, 04 Jun 2015 15:47:18 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:32926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0b6j-00014y-Nj for submit@debbugs.gnu.org; Thu, 04 Jun 2015 15:47:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0b6f-0008PY-Ko for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 15:47:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0b6c-00010F-EM for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 15:47:13 -0400 Original-Received: from mailrelay102.isp.belgacom.be ([195.238.20.129]:60964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0b6c-0000zi-4P for bug-gnu-emacs@gnu.org; Thu, 04 Jun 2015 15:47:10 -0400 X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=d6O4W030xngO5QkzyDOul/vmjwC4sFqcTOV5kZr+d1k= c=1 sm=2 a=a4K5GIyuExAA:10 a=mDV3o1hIAAAA:8 a=a-1JarA0xvu1VgBRLj4A:9 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AlCQBRqnBV/7KQsltbgxCBMqw+BQYFAQV/mg9NAQEBAQEBgQuEfzskNAEEJTeIMQGoGrQfhhmOZAWaKZtlJIFHAQuCJjwxgkcBAQE Original-Received: from 178.144-178-91.adsl-dyn.isp.belgacom.be (HELO Aurora) ([91.178.144.178]) by relay.skynet.be with ESMTP; 04 Jun 2015 21:47:08 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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-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:103575 Archived-At: From ./emacs -Q Eval: (progn (setq help-window-select t debug-on-error t) (split-window) (switch-to-buffer "*Messages*") (message (make-string 9999 ?x))) Hit: C-h f if RET I get: Debugger entered--Lisp error: (args-out-of-range 20077) (no backtrace is shown). We can however get a gdb backtrace (I put a breakpoint in Fsignal, but it breaks more often than needed, so I say "continue" a few times in order to get the following) : #2 0x081ec7fe in xsignal1 (error_symbol=4392, arg=40270) at eval.c:1596 No locals. #3 0x0824bd80 in get_char_property_and_overlay (position=40270, prop=8640, object=140654805, overlay=0xbfffeec0) at textprop.c:636 noverlays = 22 overlay_vec = 0x20 obuf = 0x853b698 sa_avail = 22 sa_count = -1073746264 sa_must_free = 8 w = 0x8696cd0 #4 0x08163623 in adjust_point_for_property (last_pt=22, modified=true) at keyboard.c:1704 beg = 139541880 end = -1073746216 val = 135666171 overlay = 0 tmp = -1073746216 check_composition = false check_display = true check_invisible = true orig_pt = 10067 #5 0x081633b4 in command_loop_1 () at keyboard.c:1636 cmd = 1695712 keybuf = {34, 410, 0, 139555992, 0, 1, -1073745932, 143526584, 139555992, 0, 0, 0, -1073746040, 136237958, 2, 141273859, 3, 59, -1220163913, 141710811, 0, 2, 135640074, 141710811, -1073746008, 135668881, 141710811, 0, 0, -1073746008} i = 2 prev_modiff = 10542 prev_buffer = 0x853b698 already_adjusted = false #6 0x081ebfe8 in internal_condition_case (bfun=0x8162727 , handlers=9288, hfun=0x8161f3d ) at eval.c:1348 val = -1073745960 c = 0x88f54f0 #7 0x08162449 in command_loop_2 (ignore=0) at keyboard.c:1139 val = 0 #8 0x081eb8f2 in internal_catch (tag=23016, func=0x816241e , arg=0) at eval.c:1108 val = 23016 c = 0x88e0ac0 #9 0x081623e3 in command_loop () at keyboard.c:1118 No locals. #10 0x08161b9c in recursive_edit_1 () at keyboard.c:728 count = 1 val = 136247918 #11 0x08161d0e in Frecursive_edit () at keyboard.c:799 count = 0 buffer = 0 #12 0x0815fcfa in main (argc=10, argv=0xbffff1f4) at emacs.c:1626 dummy = -1073745664 stack_bottom_variable = 8 '\b' do_initial_setlocale = true dumping = false skip_args = 0 rlim = {rlim_cur = 8388608, rlim_max = 18446744073709551615} no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x0 original_pwd = 0x0 Looking at recent history shows that adjust_point_for_property was touched recently : Commit 18338b1dff981b17426048dfa20a4c6e6e12c5aa Author: Eli Zaretskii AuthorDate: Tue May 19 18:39:25 2015 +0300 Commit: Eli Zaretskii CommitDate: Tue May 19 18:39:25 2015 +0300 Fix display of overlapping window-specific overlays * src/keyboard.c (adjust_point_for_property): When adjusting point due to display strings, ignore overlays that are specific to windows other than the currently selected one. * src/xdisp.c (handle_single_display_spec): If the display property comes from an overlay, arrange for buffer iteration to resume only after the end of that overlay. (Bug#20607) I understand that get_char_property_and_overlay (make_number (PT), Qdisplay, selected_window, &overlay)) should not refer to PT but to "PT in selected_window", but I don't know how to do that. -- Nico.