all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Nathan Trapuzzano <nbtrap@nbtrap.com>
Cc: 15844@debbugs.gnu.org
Subject: bug#15844: 24.3.50; Segfault in redisplay_internal
Date: Sun, 10 Nov 2013 21:53:42 +0200	[thread overview]
Message-ID: <83siv42fuh.fsf@gnu.org> (raw)
In-Reply-To: <874n7kukrm.fsf@nbtrap.com>

> From: Nathan Trapuzzano <nbtrap@nbtrap.com>
> Cc: 15844@debbugs.gnu.org
> Date: Sun, 10 Nov 2013 14:19:57 -0500
> 
> Eli Zaretskii <eliz@gnu.org> 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", '-' <repeats 20 times>, ' ' <repeats 109 times>, "-------"
	  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?).





  reply	other threads:[~2013-11-10 19:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-09 22:05 bug#15844: 24.3.50; Segfault in redisplay_internal Nathan Trapuzzano
2013-11-10  3:44 ` Eli Zaretskii
2013-11-10 11:00   ` Nathan Trapuzzano
2013-11-10 11:46     ` Nathan Trapuzzano
2013-11-10 18:37     ` Eli Zaretskii
2013-11-10 19:04       ` Nathan Trapuzzano
2013-11-10 19:16         ` Eli Zaretskii
2013-11-10 19:19           ` Nathan Trapuzzano
2013-11-10 19:53             ` Eli Zaretskii [this message]
2013-11-10 21:02               ` Nathan Trapuzzano
2013-11-10 21:17                 ` Nathan Trapuzzano
2019-08-28 19:54                   ` Lars Ingebrigtsen
2019-10-14  8:20                     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83siv42fuh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=15844@debbugs.gnu.org \
    --cc=nbtrap@nbtrap.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.