From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#11417: 24.0.96; infinite looping in xdisp.c Date: Tue, 08 May 2012 00:17:14 +0800 Message-ID: References: <83havt4716.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1336407505 19624 80.91.229.3 (7 May 2012 16:18:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 May 2012 16:18:25 +0000 (UTC) Cc: 11417@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 07 18:18:24 2012 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 1SRQdb-0007W7-Ta for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 May 2012 18:18:16 +0200 Original-Received: from localhost ([::1]:52937 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRQdb-00034j-3j for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 May 2012 12:18:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRQdT-00033P-JH for bug-gnu-emacs@gnu.org; Mon, 07 May 2012 12:18:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRQdN-0007p4-O5 for bug-gnu-emacs@gnu.org; Mon, 07 May 2012 12:18:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRQdN-0007oo-IW for bug-gnu-emacs@gnu.org; Mon, 07 May 2012 12:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SRQfK-0005BE-GR for bug-gnu-emacs@gnu.org; Mon, 07 May 2012 12:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 May 2012 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11417 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11417-submit@debbugs.gnu.org id=B11417.133640758719884 (code B ref 11417); Mon, 07 May 2012 16:20:02 +0000 Original-Received: (at 11417) by debbugs.gnu.org; 7 May 2012 16:19:47 +0000 Original-Received: from localhost ([127.0.0.1]:39695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRQf4-0005Ae-LK for submit@debbugs.gnu.org; Mon, 07 May 2012 12:19:47 -0400 Original-Received: from mail-pb0-f44.google.com ([209.85.160.44]:38193) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRQf1-0005AO-GP for 11417@debbugs.gnu.org; Mon, 07 May 2012 12:19:45 -0400 Original-Received: by pbcwy7 with SMTP id wy7so5967127pbc.3 for <11417@debbugs.gnu.org>; Mon, 07 May 2012 09:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=E6Tuw+s6FU7p7wbig0ZxOmeRKECV8Agr6xkRTt7Dq6k=; b=wMhrsed86g+vWaPDVbYGx+CI3x5Pg2wTJbTMXyJ4z0K/tR9fAhwbbUdhSYEKz0uGgL X3BQL739AnaSU06UaoMNPizHCLz6Yq/LOUvLD8B2RjaTGzzSDb/UYCY02SCs1pt47jAe vhqKYKpgi2gsOBLzT9wVlJQA6F3M20wGfYI1eJToYbwtoYDkiFPrvQc0aPteB9bKJtdZ JNEtYVS8BZdmuepESfDaSIEkTcKW4mqxh2mN7Xn5AxeYDx0GtMEpKNB64633qkiEn0os 2H8Kg87NHGxPwG34alV/nC9zP7/f8u7trKt2sVWzrgxEf917Qz1nadlYuO+eUzXaO224 8+SA== Original-Received: by 10.68.203.66 with SMTP id ko2mr47794760pbc.84.1336407456084; Mon, 07 May 2012 09:17:36 -0700 (PDT) Original-Received: from localhost ([123.114.33.41]) by mx.google.com with ESMTPS id tx9sm12555299pbc.10.2012.05.07.09.17.30 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 May 2012 09:17:34 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAGFBMVEUzRVhbQj4eZqO6SjnT eWpxnMetm5b6/PmidmqrAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1F B9cBBwMLBfKABCMAAAFoSURBVCjPtZI9a8MwEIaFoc7aYDdelQMna0Em3tsSr0XUeE2Q6a22a+v+ fk8fSSBkbDUI6dHpfe9OEvRgiD+ApqKPJgJeB6iUUXWESjUe/ig38AJrhqqvaU2nTIXbNvOQ40fe qdry4kyGoVWsfCQalXpHnJGM01wjWdYbMlXNFdsZDO69m9aqNqxEJqTEgbM5OF7wlEfIoll1Ked4 LbM5X2EdILLokEdmI8z7g5cKED0cuTC930TYhy7ZDekkXVGw/L60TguJePPxcJF48lpsSUWEA/Ju jGFNgJOXc4Hz7TmAdBeu5Ve4AEjOi2/2jfd3cAJZ+IbNrvdjgBZY01b+HTuG3cLws6BJZqVOj/pp T0OqVwx3rFq+QmJwx3loK5JSLEhDIt62+mtC2C+SrAUxEbV6C6v2BRbd6pILBKFpepKZJHgGgrKF sptSUUoczpwg2pQ7ZH1tgs0ou/917mzz6Cs2//C978cv5l07L02orIEAAAAASUVORK5CYII= In-Reply-To: <83havt4716.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 06 May 2012 19:18:45 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (Mac OS X 10.6.8) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59839 Archived-At: --=-=-= Content-Type: text/plain On 2012-05-07 00:18 +0800, Eli Zaretskii wrote: > First, please provide the entire backtrace from here to main, and also > the Lisp backtrace (from the "xbacktrace" command). You will need to > make sure GDB reads the src/.gdbinit file for "xbacktrace" to work, > and also for several other commands below. I built it from emacs-24 branch. I run gdb in emacs/src and attach to the process that is hanging. Then source .gdbinit and I got: DISPLAY = /tmp/launch-VtT4mU/org.x:0 TERM = xterm-color [0] cancel [1] all Non-debugging symbols: [2] -[CIContext abort] [3] -[CIContextImpl abort] [4] abort > Argument required (one or more choice numbers). Breakpoint 1 at 0x100156fcf: file sysdep.c, line 859. So commands such as xbt, xtype and pgrowx not working properly. The rest is as attached. The portion of the line from it2.current should show: from distutils.core import setup, Extension --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=debug.log Content-Description: debug.log (gdb) bt #0 move_it_vertically_backward (it=0x7fff5fbfce20, dy=0) at xdisp.c:8804 #1 0x00000001000409ad in move_it_by_lines (it=0x7fff5fbfce20, dvpos=0) at xdisp.c:8985 #2 0x00000001001a0ce7 in Fvertical_motion (lines=0, window=4305481917) at indent.c:2087 #3 0x000000010009ddb8 in window_scroll_line_based (window=4305481917, n=43, whole=1, noerror=0) at window.c:4667 #4 0x000000010009c251 in window_scroll (window=4305481917, n=1, whole=1, noerror=0) at window.c:4204 #5 0x000000010009e138 in scroll_command (n=4320145466, direction=1) at window.c:4758 #6 0x000000010009e1ff in Fscroll_up (arg=4320145466) at window.c:4779 #7 0x0000000100204987 in Ffuncall (nargs=2, args=0x7fff5fbfde90) at eval.c:3002 #8 0x0000000100272e01 in exec_byte_code (bytestr=4299304921, vector=4299304957, maxdepth=12, args_template=4320145466, nargs=0, args=0x0) at bytecode.c:785 #9 0x0000000100205868 in funcall_lambda (fun=4299304861, nargs=1, arg_vector=0x7fff5fbfe528) at eval.c:3233 #10 0x0000000100204d89 in Ffuncall (nargs=2, args=0x7fff5fbfe520) at eval.c:3051 #11 0x00000001001fc548 in Fcall_interactively (function=4320366570, record_flag=4320145466, keys=4305468733) at callint.c:852 #12 0x0000000100204a0b in Ffuncall (nargs=4, args=0x7fff5fbfead8) at eval.c:3009 #13 0x0000000100203e39 in call3 (fn=4320271882, arg1=4320366570, arg2=4320145466, arg3=4320145466) at eval.c:2802 #14 0x00000001001433a9 in Fcommand_execute (cmd=4320366570, record_flag=4320145466, keys=4320145466, special=4320145466) at keyboard.c:10451 #15 0x000000010012adf5 in command_loop_1 () at keyboard.c:1620 #16 0x0000000100200155 in internal_condition_case (bfun=0x10012a300 , handlers=4320201674, hfun=0x100129800 ) at eval.c:1515 #17 0x0000000100129df8 in command_loop_2 (ignore=4320145466) at keyboard.c:1189 #18 0x00000001001ff985 in internal_catch (tag=4320197690, func=0x100129dc0 , arg=4320145466) at eval.c:1272 #19 0x0000000100129d77 in command_loop () at keyboard.c:1159 #20 0x0000000100129189 in recursive_edit_1 () at keyboard.c:766 #21 0x00000001001293d0 in Frecursive_edit () at keyboard.c:830 #22 0x0000000100126c78 in main (argc=3, argv=0x7fff5fbff638) at emacs.c:1739 (gdb) p start_pos $5 = 411 (gdb) p it2.vpos $6 = 0 (gdb) p it2.current $7 = { pos = { charpos = 411, bytepos = 411 }, overlay_string_index = 0, string_pos = { charpos = 1, bytepos = 1 }, dpvec_index = -1 } (gdb) p it2.string $8 = 4334846993 (gdb) xtype Undefined command: "xtype". Try "help". (gdb) p it2.method $9 = GET_FROM_STRING --=-=-= Content-Type: text/plain > Second, I need to see some of the variables involved in this: > > (gdb) p start_pos > (gdb) p it2.vpos > (gdb) p it2.current > (gdb) p it2.string > (gdb) xtype > (gdb) p it2.method > > Finally, can you describe what should be displayed on the portion of > the screen that is around the character position (shown by "p it2.current" > above) where Emacs loops? The following command should display > detailed information about the screen line that includes the above buffer > position: > > (gdb) pgrowx (it2.w->desired_matrix->rows+N) > > where N is the zero-based number of the screen line. If you cannot > easily figure out the value of N, try the above command for successive > values starting from zero, until you see the first screen line that is > not displayed. > > Thanks. Thanks. --=-=-=--