bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#773: 23.0.60; Segfault when opening a file


From: Chong Yidong
Subject: bug#773: 23.0.60; Segfault when opening a file
Date: Mon, 29 Sep 2008 13:43:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Christian Faulhammer <opfer@gentoo.org> writes:

>> The backtrace you provided looks like it has symbols stripped.  Could
>> you recompile with CFLAGS="-g", generate a new backtrace, and post it?
>
>  Here it is.  As my failing system is offline and I seldomly sync the
> Emacs sources, I can only provide one for a relatively old check-out
> from 14 Sep 2008.

Does the following patch stop the segfault?

*** trunk/src/fontset.c.~1.145.~        2008-08-29 11:16:15.000000000 -0400
--- trunk/src/fontset.c 2008-09-29 13:41:32.000000000 -0400
***************
*** 517,525 ****
  {
    Lisp_Object elt, vec, font_group;
    int i;
!   FRAME_PTR f = XFRAME (FONTSET_FRAME (fontset));
    int charset_matched = -1;
  
    font_group = fontset_get_font_group (fontset, fallback ? -1 : c);
    if (! CONSP (font_group))
      return Qnil;
--- 517,530 ----
  {
    Lisp_Object elt, vec, font_group;
    int i;
!   FRAME_PTR f;
    int charset_matched = -1;
  
+   if (NILP (FONTSET_FRAME (fontset)))
+     f = XFRAME (selected_frame);
+   else
+     f = XFRAME (FONTSET_FRAME (fontset));
+ 
    font_group = fontset_get_font_group (fontset, fallback ? -1 : c);
    if (! CONSP (font_group))
      return Qnil;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]