From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: zhaohs Newsgroups: gmane.emacs.devel Subject: Re: A very strange thing about Emacs working with flyspell! Date: Mon, 20 Nov 2006 11:04:01 +0800 Message-ID: <20061120030401.GB5498@localdomain> References: <20061114074507.GA26493@localdomain> <20061116113746.GA5373@localdomain> <20061118025413.GB25925@localdomain> <20061118032327.GA27684@localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163991810 25691 80.91.229.2 (20 Nov 2006 03:03:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2006 03:03:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 20 04:03:29 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GlzRN-0007G8-JI for ged-emacs-devel@m.gmane.org; Mon, 20 Nov 2006 04:03:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlzRN-0001Jb-0H for ged-emacs-devel@m.gmane.org; Sun, 19 Nov 2006 22:03:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GlzR7-0001IK-IB for emacs-devel@gnu.org; Sun, 19 Nov 2006 22:03:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GlzR6-0001Hj-EH for emacs-devel@gnu.org; Sun, 19 Nov 2006 22:03:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GlzR6-0001Hf-C3 for emacs-devel@gnu.org; Sun, 19 Nov 2006 22:03:08 -0500 Original-Received: from [68.142.206.240] (helo=smtp107.plus.mail.mud.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.52) id 1GlzR5-0000qa-PE for emacs-devel@gnu.org; Sun, 19 Nov 2006 22:03:08 -0500 Original-Received: (qmail 4921 invoked from network); 20 Nov 2006 03:03:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Received:X-YMail-OSG:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=CpSjJwe+sCQ8lLSBPQLQWANBNsK4ykiZVsJggUJTrvNO/iY+0QOK1XxQfBBOkN2VeuZY9f3p3xF8buZRVr+uoKfEo2XRONZ2Fu7TqSzeiECdd6w5JF73lucV8IxUkKuLZ/yCX+4AvsGwrvhtTYkktnl3Rj9dbieGGuXVq/7gzgs= ; Original-Received: from unknown (HELO ubuntu-edgy) (zhaohscas@159.226.135.215 with login) by smtp107.plus.mail.mud.yahoo.com with SMTP; 20 Nov 2006 03:03:06 -0000 X-YMail-OSG: X4kDSjYVM1mN0NtaT3qv9z0BdAj0wzYUf86jcphqxqcW9StZW2YgiwatQxOhkIlelMvK7e7hUu4eaxVK_ZogNjlXizxvUBW_b_64WkpGLEOYf327E7FEJw-- Original-To: Kenichi Handa Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.12-2006-07-14 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:62527 Archived-At: > Hmmm, then please start Emacs as this: > > % cd EMACS_BUILD_DIR/src > % gdb emacs > (gdb) br xfns.c:2120 > (gdb) run --enable-font-backend -fn "Dejavu Sans Mono-14" > > Emacs will stop at the break point as below. > > Breakpoint 3, xic_create_xfontset (f=0x89ecb10, > base_fontname=0x88186a8 "-etl-*-medium-r-normal-*-24-*-*-*-*-*-iso8859-1") > at xfns.c:2120 > 2120 if (!xfs) > (gdb) -- Below this line is the debug information. zhaohs@ubuntu-edgy:~/cvs-svn/emacs/src$ gdb emacs GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". DISPLAY = :0.0 TERM = xterm Breakpoint 1 at 0x81035b6: file emacs.c, line 464. Breakpoint 2 at 0x811c3c6: file sysdep.c, line 1385. (gdb) br xfns.c:2120 Breakpoint 3 at 0x80e2073: file xfns.c, line 2120. (gdb) run --enable-font-backend -fn "Dejavu Sans Mono-14" Starting program: /media/hdb6/MyHomeFiles/cvs-svn/emacs/src/emacs --enable-font-backend -fn "Dejavu Sans Mono-14" [Thread debugging using libthread_db enabled] [New Thread -1219627344 (LWP 5936)] [Switching to Thread -1219627344 (LWP 5936)] Breakpoint 4 at 0x80d6f16: file xterm.c, line 8047. -- The debug information ends here. As you can see, Emacs won't crash at all in my case according to your advice, so the (gdb) won't appear and I can't debug the following things you have posted to me. > > The value of base_fontname will be different in your case. > > Please type "n" (for next) and RET to execute the code one > line by line, and check each value of the second argument to > XCreateFontSet. Does it return non-NULL value to `xfs' at > some point? Don't you see any warning message from X > library? > > If XCreateFontSet alwasy return NULL, the next thing is to > invoke "run" command with no argument and check the second > argument to XCreateFontSet at the successful call as this. > > (gdb) set args > (gdb) run Best, Hongsheng. __________________________________________________ ¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä? http://cn.mail.yahoo.com