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#17269: 24.3.90; assertion failure at buf_charpos_to_bytepos (marker.c) Date: Tue, 15 Apr 2014 18:11:59 +0200 Message-ID: <534D5A4F.8050000@yahoo.fr> References: <87eh0y3bvz.fsf@geodiff-mac3.ulb.ac.be> <83r44yk2rt.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1397578342 8187 80.91.229.3 (15 Apr 2014 16:12:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2014 16:12:22 +0000 (UTC) Cc: 17269@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 15 18:12:16 2014 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 1Wa5y3-0001b0-Jk for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Apr 2014 18:12:15 +0200 Original-Received: from localhost ([::1]:50163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa5y3-0007Gb-31 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Apr 2014 12:12:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa5xv-00078I-N2 for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 12:12:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wa5xr-0000aM-A9 for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 12:12:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa5xr-0000aH-7D for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 12:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wa5xq-0003cq-EF for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 12:12: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: Tue, 15 Apr 2014 16:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17269 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17269-submit@debbugs.gnu.org id=B17269.139757829213891 (code B ref 17269); Tue, 15 Apr 2014 16:12:02 +0000 Original-Received: (at 17269) by debbugs.gnu.org; 15 Apr 2014 16:11:32 +0000 Original-Received: from localhost ([127.0.0.1]:49045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wa5xL-0003by-OQ for submit@debbugs.gnu.org; Tue, 15 Apr 2014 12:11:32 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:9272) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wa5xI-0003bo-Q0 for 17269@debbugs.gnu.org; Tue, 15 Apr 2014 12:11:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBADNZTVOkD4Xx/2dsb2JhbAANS4NBxACBOIMZAQEBAwEyAUUBBQsLFAEMFg8JAwIBAgFFBg0BBQIBAYdjAQMJFag5gUeaWgGHOheHX4Rrgg4LB4Q4AQOWeoFogTaFB4QoghGJAg Original-Received: from mathsrv4.ulb.ac.be (HELO [172.19.79.241]) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 15 Apr 2014 18:11:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <83r44yk2rt.fsf@gnu.org> X-TagToolbar-Keys: D20140415181159298 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:88033 Archived-At: Le 15/04/2014 17:53, Eli Zaretskii a écrit : >> From: Nicolas Richard >> Date: Tue, 15 Apr 2014 16:28:32 +0200 >> >> I got this today (I was running without --enable-checking until today). >> >> I still have that session open in case you want more info. >> >> Also, as a side note, in the current buffer (in which I'm reporting the >> bug), I see problems like going five to 5 to 10 lines below >> current position. Apparently, it happens after I use C-k (kill-line). It >> goes way when setting (setq cache-long-line-scans nil). I guess the >> crash and this problem are related ? > > It's related, but can you reproduce this in "emacs -Q"? Not yet, but it seems to be triggered by the bug report because it just happened again. I'll look at it later. I have to run now. > >> I'm running emacs-24 branch at commit >> ef5b917 * savannah/emacs-24 Fix relative links to parent directories in shr >> *but* I also have applied Paul Eggert's patch mentionned in bug#17172 > > Not sure what this means, Paul made several commits during the last 2 > days. Can you be more specific (or even state the bzr revision > number)? >From the comment you left there, I guess you found it. I'm referring to http://permalink.gmane.org/gmane.emacs.bugs/88024. >> Breakpoint 1, terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:351 >> 351 signal (sig, SIG_DFL); >> #0 terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:351 >> #1 0x081f581f in die (msg=0x83079dc "BUF_BEG (b) <= charpos && charpos <= BUF_Z (b)", file=0x83079d0 "marker.c", line=145) at alloc.c:6826 >> #2 0x081bc08d in buf_charpos_to_bytepos (b=0x9b42080, charpos=14233) at marker.c:145 >> #3 0x081d7c59 in find_newline (start=14230, start_byte=14230, end=14231, end_byte=14231, count=1, shortage=0xbfffdcd4, bytepos=0x0, allow_quit=true) at search.c:780 >> #4 0x081d845f in find_before_next_newline (from=14224, to=0, cnt=1, bytepos=0x0) at search.c:1006 >> #5 0x082019e6 in Fline_end_position (n=4) at editfns.c:813 >> #6 0x081ceff0 in Fend_of_line (n=4) at cmds.c:199 > > What is the value of BUF_Z(b) in frame #2? (gdb) f 2 #2 0x081bc08d in buf_charpos_to_bytepos (b=0x9b42080, charpos=14233) at marker.c:145 145 eassert (BUF_BEG (b) <= charpos && charpos <= BUF_Z (b)); (gdb) p BUF_Z(b) $1 = 14231 (gdb) xpr Lisp_Float Cannot access memory at address 0x3790 Perhaps I'm using the wrong command ? > Also, what is the major mode in the buffer in question? Could you tell me how to find out with gdb ? -- Nicolas.