GNU bug report logs - #773
23.0.60; Segfault when opening a file

Previous Next

Package: emacs;

Reported by: "Christian Faulhammer" <gentoo <at> faulhammer.org>

Date: Mon, 25 Aug 2008 15:10:04 UTC

Severity: normal

Merged with 774

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #69 received at 773 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Christian Faulhammer <opfer <at> gentoo.org>
Cc: Kenichi Handa <handa <at> m17n.org>, 773 <at> debbugs.gnu.org
Subject: Re: 23.0.60; Segfault when opening a file
Date: Mon, 29 Sep 2008 13:43:12 -0400
Christian Faulhammer <opfer <at> 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;




This bug report was last modified 16 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.