From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15844: 24.3.50; Segfault in redisplay_internal Date: Sun, 10 Nov 2013 21:53:42 +0200 Message-ID: <83siv42fuh.fsf@gnu.org> References: <87li0x1b9e.fsf@nbtrap.com> <838uww53ag.fsf@gnu.org> <871u2ofrmx.fsf@nbtrap.com> <83wqkg2jdh.fsf@gnu.org> <87ob5sulgl.fsf@nbtrap.com> <83txfk2hkx.fsf@gnu.org> <874n7kukrm.fsf@nbtrap.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1384113313 32722 80.91.229.3 (10 Nov 2013 19:55:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Nov 2013 19:55:13 +0000 (UTC) Cc: 15844@debbugs.gnu.org To: Nathan Trapuzzano Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 10 20:55:17 2013 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 1Vfb6L-0003yq-GK for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Nov 2013 20:55:17 +0100 Original-Received: from localhost ([::1]:33562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vfb6L-0004V8-2h for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Nov 2013 14:55:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vfb6C-0004T5-Ps for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2013 14:55:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vfb67-0007Ca-FX for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2013 14:55:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vfb67-0007Bt-Cq for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2013 14:55:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vfb66-00064v-J2 for bug-gnu-emacs@gnu.org; Sun, 10 Nov 2013 14:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Nov 2013 19:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15844 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15844-submit@debbugs.gnu.org id=B15844.138411324223288 (code B ref 15844); Sun, 10 Nov 2013 19:55:02 +0000 Original-Received: (at 15844) by debbugs.gnu.org; 10 Nov 2013 19:54:02 +0000 Original-Received: from localhost ([127.0.0.1]:45906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vfb56-00063Q-QE for submit@debbugs.gnu.org; Sun, 10 Nov 2013 14:54:01 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:59743) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vfb52-000638-9H for 15844@debbugs.gnu.org; Sun, 10 Nov 2013 14:53:57 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MW200M00CFN1Q00@a-mtaout20.012.net.il> for 15844@debbugs.gnu.org; Sun, 10 Nov 2013 21:53:49 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MW200LJFCLPNRC0@a-mtaout20.012.net.il>; Sun, 10 Nov 2013 21:53:49 +0200 (IST) In-reply-to: <874n7kukrm.fsf@nbtrap.com> X-012-Sender: halo1@inter.net.il 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:80237 Archived-At: > From: Nathan Trapuzzano > Cc: 15844@debbugs.gnu.org > Date: Sun, 10 Nov 2013 14:19:57 -0500 > > Eli Zaretskii writes: > > It happens when I click the "C source code" button in the *Help* buffer, "Click", as in "with a mouse"? What kind of mouse do you have there -- GPM, xterm, something else? Also, was the 'button' or 'link' face customized in any way? > so it could be text that it's trying to display in the buffer that it > creates for displaying the C source. Looking closer at the backtrace you presented: #1 0x00000000004a7ffd in tty_write_glyphs (f=0xb67300, string=0x7fa8c53db5e0, len=169) at term.c:755 face_id = 24 conversion_buffer = 0x12e5070 "function is a special form in `efinition", '-' , ' ' , "-------" coding = 0x11a3c90 n = 13 stringlen = 138 tty = 0x12c3dc0 and comparing this with the code in tty_write_glyphs, we can see that at this point, Emacs already wrote out 169 - 138 = 31 characters, which brings us to the "C source code" part of the line. Also, n = 13 is consistent with "C source code" part, whose characters all have the same 'button' face. So I'm not sure Emacs is trying to display the C source, I think it was trying to redisplay the "function is a special form in ..." line. But to be sure, please show the contents of the 2nd argument to tty_write_glyphs, 'string', which is an array of 'struct glyph'. Each element of the array has the character to display in the u.ch member. Note that 'stringlen' has the value of 138, so 31 characters were already written by the time the segfault strikes. Also note that this is the first line of the frame: #3 0x000000000040e6da in update_frame_line (f=0xb67300, vpos=0) at dispnew.c:4777 ^^^^^^ (and I'm guessing that you had the menu bar turned off in that frame, right?).