From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#5856: 24.0.50; Crash in redisplay Date: Thu, 08 Apr 2010 08:16:13 +0200 Message-ID: <4BBD74AD.2080305@swipnet.se> References: <4BBCD8D1.1060400@swipnet.se> <83hbnn1000.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1270708450 14399 80.91.229.12 (8 Apr 2010 06:34:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Apr 2010 06:34:10 +0000 (UTC) Cc: 5856@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 08 08:34:07 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NzlJV-0003UR-81 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Apr 2010 08:34:05 +0200 Original-Received: from localhost ([127.0.0.1]:46758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzlJU-0005Ah-5N for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Apr 2010 02:34:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzlEj-0003ZS-F2 for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 02:29:10 -0400 Original-Received: from [140.186.70.92] (port=34463 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzlEX-0003UO-OH for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 02:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzlE8-00064S-Ox for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 02:28:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53014) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzlE8-00064O-Mu for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 02:28:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nzl30-0000S1-2C; Thu, 08 Apr 2010 02:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Apr 2010 06:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5856 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5856-submit@debbugs.gnu.org id=B5856.12707073821723 (code B ref 5856); Thu, 08 Apr 2010 06:17:02 +0000 Original-Received: (at 5856) by debbugs.gnu.org; 8 Apr 2010 06:16:22 +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 1Nzl2L-0000Rk-Ky for submit@debbugs.gnu.org; Thu, 08 Apr 2010 02:16:22 -0400 Original-Received: from smtprelay-h11.telenor.se ([62.127.194.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzl2J-0000Rf-01 for 5856@debbugs.gnu.org; Thu, 08 Apr 2010 02:16:20 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h11.telenor.se (Postfix) with ESMTP id 01788C348 for <5856@debbugs.gnu.org>; Thu, 8 Apr 2010 08:16:15 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmkyAH8RvUtV4S1uPGdsb2JhbACDEoRSk0cMAQEBATUtp0OQUIEsgm9uBA X-IronPort-AV: E=Sophos;i="4.52,168,1270418400"; d="scan'208";a="61072432" Original-Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 08 Apr 2010 08:16:14 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id D36347FA01A; Thu, 8 Apr 2010 08:16:13 +0200 (CEST) User-Agent: Thunderbird 2.0.0.24 (X11/20100317) In-Reply-To: <83hbnn1000.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 08 Apr 2010 02:17:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36040 Archived-At: Eli Zaretskii skrev: >> Date: Wed, 07 Apr 2010 21:11:13 +0200 >> From: Jan Dj=C3=A4rv >> Cc:=20 >> >> Sometimes I get a segmentation violation and emacs dies. >> I just managed to catch it in the debugger. Backtrace below (very lon= g, >> but instructions says to give bt full), >> Let me know if you need more info, I'll keep it in the debugger for a >> couple of days. This is from trunk, updated and built today (Apr 7, 2= 010). >> >> Program received signal SIGSEGV, Segmentation fault. >> 0x000000000044d2f1 in set_cursor_from_row (w=3D0x1378d60, row=3D0x1fbf= 550, >> matrix=3D0x18217a0, delta=3D0, delta_bytes=3D0, dy=3D0, dvpos=3D0= ) >> at /home/jhd/src/emacs/fixes/src/xdisp.c:12775 >> 12775 if (!(BUFFERP (glyph->object) && glyph->charpos =3D=3D pt_old) >=20 > Ouch! My bad, probably. >=20 > First, what caused the crash? I think it's BUFFERP, so please tell > what is glyph->object. >=20 (gdb) whatis glyph->object type =3D Lisp_Object (gdb) p glyph->object $4 =3D 8079492959817000301 (gdb) pp glyph->object # > Also, can you tell something about what were you doing at the moment > of the crash? It looks like you were typing in the minibuffer, is > that correct? It is correct, I did C-x b and typed an x in the minibuffer when the cras= h=20 occurred. The contents of the minibuffer is two lines. >=20 > Finally, what does the GDB command "pgrow" print? >=20 (gdb) pgrow TEXT: 80 glyphs 0 0: CHAR[S] pos=3D1 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 1 7: CHAR[w] pos=3D2 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 2 14: CHAR[i] pos=3D3 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 3 21: CHAR[t] pos=3D4 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 4 28: CHAR[c] pos=3D5 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 5 35: CHAR[h] pos=3D6 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 6 42: CHAR[ ] pos=3D7 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 7 49: CHAR[t] pos=3D8 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 8 56: CHAR[o] pos=3D9 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 9 63: CHAR[ ] pos=3D10 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 10 70: CHAR[b] pos=3D11 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 11 77: CHAR[u] pos=3D12 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 12 84: CHAR[f] pos=3D13 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 13 91: CHAR[f] pos=3D14 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 14 98: CHAR[e] pos=3D15 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 15 105: CHAR[r] pos=3D16 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 16 112: CHAR[ ] pos=3D17 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 17 119: CHAR[(] pos=3D18 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 18 126: CHAR[d] pos=3D19 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 19 133: CHAR[e] pos=3D20 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 20 140: CHAR[f] pos=3D21 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 21 147: CHAR[a] pos=3D22 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 22 154: CHAR[u] pos=3D23 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 23 161: CHAR[l] pos=3D24 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 24 168: CHAR[t] pos=3D25 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 25 175: CHAR[ ] pos=3D26 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 26 182: CHAR[x] pos=3D27 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 27 189: CHAR[s] pos=3D28 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 28 196: CHAR[e] pos=3D29 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 29 203: CHAR[t] pos=3D30 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 30 210: CHAR[t] pos=3D31 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 31 217: CHAR[i] pos=3D32 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 32 224: CHAR[n] pos=3D33 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 33 231: CHAR[g] pos=3D34 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 34 238: CHAR[s] pos=3D35 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 35 245: CHAR[.] pos=3D36 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 36 252: CHAR[h] pos=3D37 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 37 259: CHAR[)] pos=3D38 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 38 266: CHAR[:] pos=3D39 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 39 273: CHAR[ ] pos=3D40 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 face=3D= 27 MB 40 280: CHAR[x] pos=3D41 blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+3 MB 41 287: CHAR[{] str=3D175f681[0] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 42 294: CHAR[s] str=3D175f681[1] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 43 301: CHAR[e] str=3D175f681[2] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 44 308: CHAR[t] str=3D175f681[3] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 45 315: CHAR[t] str=3D175f681[4] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 46 322: CHAR[i] str=3D175f681[5] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 47 329: CHAR[n] str=3D175f681[6] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 48 336: CHAR[g] str=3D175f681[7] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 49 343: CHAR[s] str=3D175f681[8] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 50 350: CHAR[.] str=3D175f681[9] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11+= 3 MB 51 357: CHAR[c] str=3D175f681[10] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 52 364: CHAR[,] str=3D175f681[11] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 53 371: CHAR[l] str=3D175f681[12] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 54 378: CHAR[w] str=3D175f681[13] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 55 385: CHAR[m] str=3D175f681[14] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 56 392: CHAR[e] str=3D175f681[15] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 57 399: CHAR[n] str=3D175f681[16] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 58 406: CHAR[u] str=3D175f681[17] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 59 413: CHAR[.] str=3D175f681[18] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 60 420: CHAR[c] str=3D175f681[19] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 61 427: CHAR[,] str=3D175f681[20] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 62 434: CHAR[l] str=3D175f681[21] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 63 441: CHAR[w] str=3D175f681[22] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 64 448: CHAR[m] str=3D175f681[23] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 65 455: CHAR[e] str=3D175f681[24] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 66 462: CHAR[n] str=3D175f681[25] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 67 469: CHAR[u] str=3D175f681[26] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 68 476: CHAR[P] str=3D175f681[27] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 69 483: CHAR[.] str=3D175f681[28] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 70 490: CHAR[h] str=3D175f681[29] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 71 497: CHAR[,] str=3D175f681[30] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 72 504: CHAR[f] str=3D175f681[31] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 73 511: CHAR[n] str=3D175f681[32] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 74 518: CHAR[s] str=3D175f681[33] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 75 525: CHAR[.] str=3D175f681[34] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 76 532: CHAR[c] str=3D175f681[35] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 77 539: CHAR[,] str=3D175f681[36] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 78 546: CHAR[t] str=3D175f681[37] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB 79 553: CHAR[e] str=3D175f681[38] blev=3D0,btyp=3DUNDEF w=3D7 a+d=3D11= +3 MB > Oh, btw: is this an optimized or an unoptimized build? Unoptimized. >=20 >> (gdb) p *glyph >> $3 =3D { >> charpos =3D 7589819289523352181, >> object =3D 8079492959817000301, >> pixel_width =3D 26991, >> ascent =3D 29806, >> descent =3D 29285, >> voffset =3D 26463, >> type =3D 2, >> multibyte_p =3D 0, >> left_box_line_p =3D 0, >> right_box_line_p =3D 1, >> overlaps_vertically_p =3D 1, >> padding_p =3D 1, >> glyph_not_available_p =3D 0, >> avoid_cursor_p =3D 1, >> resolved_level =3D 16, >> bidi_type =3D 1, >=20 > Hmm?.. looks like a garbled glyph structure... Indeed. Jan D.