On Mon, 27 Nov 2006 21:11:38 +0100 Jan Djärv <[EMAIL PROTECTED]> wrote:
> Stephen Berman skrev: >> I've been using the GTK build of the first pretest tarball for almost >> three weeks without any serious problems. But as of today it >> immediately segfaults when I start it under X. The only change to my >> system (SUSE 10.1) between today and the last time I started this >> build of Emacs is that I installed the following software packages: >> >> qamix-0.0.7e-165 >> audacity-1.3.2-0.pm.beta >> wxGTK-2.6.2.1-20 >> kstreamripper-0.3.4-1.pm.1 >> streamripper-1.61.18-1 >> apache2-doc-2.2.0-21 >> streamtuner-0.99.99-23 >> libmspack-0.0.20040308alpha-16 >> >> Could wxGTK be the culprit? (There's no problem when I start this >> Emacs with -nw, nor with a Lucid build of the same pretest tarbell >> under X.) Below are the gdb and lisp backtraces. Please let me know >> if I should provide more information. > > This is so deep into Gtk/Pango so I think it is a bug there. The > last call in Emacs code is in frame 42, which calls > gtk_widget_size_request. > > Then Gtk tries to figure out the sizes of the widgets, apparently it > tries to find a font in the final frames, (FcPatternBuild), but this > fails. You could recompile pango with debugging enabled (if not > already) and see what arguments are passed to strcmp, one is > probably a NULL pointer. Maybe there is a font it doesn't find. I don't have the pango sources at hand, so recompiling isn't a straightforward option for me. > Have you tried removing ~/.fonts.cache-1? I don't have this file, only ~/.fonts.cache-2. This file contains /usr/local/share/fonts/ and that directory does have a file fonts.cache-1, which is empty. > You can also try to rerun fc-cache. I tried this with -v and this is the output: fc-cache: "/usr/share/fonts": skipping, no such directory fc-cache: "/usr/X11R6/lib/X11/fonts": skipping, 0 fonts, 11 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": skipping, 398 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": skipping, 398 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/truetype": skipping, 436 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": skipping, 29 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/misc": skipping, 132 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/CID": skipping, 0 fonts, 0 dirs fc-cache: "/usr/share/ghostscript/fonts": skipping, 43 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": skipping, 0 fonts, 1 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": skipping, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/local": skipping, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/util": skipping, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/uni": skipping, 2 fonts, 0 dirs fc-cache: "/opt/kde3/share/fonts": skipping, 1 fonts, 1 dirs fc-cache: "/opt/kde3/share/fonts/override": skipping, 0 fonts, 0 dirs fc-cache: "/usr/local/share/fonts": caching, 0 fonts, 0 dirs Caches are currently saved to "/var/cache/fontconfig" Can't save cache for "/usr/local/share/fonts" fc-cache: "/home/steve/.fonts": caching, 0 fonts, 0 dirs fc-cache: "/home/steve/.fonts/kde-override": skipping, no such directory fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/truetype": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/misc": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/CID": skipping, looped directory detected fc-cache: "/usr/share/ghostscript/fonts": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/local": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/util": skipping, looped directory detected fc-cache: "/usr/X11R6/lib/X11/fonts/uni": skipping, looped directory detected fc-cache: "/opt/kde3/share/fonts/override": skipping, looped directory detected fc-cache: "/usr/lib/ooo-2.0/share/fonts": skipping, 0 fonts, 1 dirs fc-cache: "/usr/lib/ooo-2.0/share/fonts/truetype": skipping, 1 fonts, 0 dirs fc-cache: "/usr/lib/ooo-2.0/share/fonts/truetype": skipping, looped directory detected fc-cache: "/usr/lib/jvm/java-1.5.0-sun-1.5.0_07/jre/lib/fonts": skipping, 8 fonts, 0 dirs fc-cache: "/usr/lib/jvm/java-1_4_2-sun-1.4.2.11/jre/lib/fonts": skipping, 12 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/Acrobat7/Resource/Font": skipping, 16 fonts, 1 dirs fc-cache: "/usr/X11R6/lib/Acrobat7/Resource/Font/PFM": skipping, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/Acrobat7/Resource/Font/PFM": skipping, looped directory detected fc-cache: failed > What version of fontconfig do you have? Mine (2.2.3 and 2.3.2 and 2.4.1) does > not have any FcObjectToPtr method. [EMAIL PROTECTED]:~> rpm -qi fontconfig Name : fontconfig Relocations: (not relocatable) Version : 2.3.94 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany Release : 18.4 Build Date: Sat 10 Jun 2006 01:52:44 AM CEST ... It turns out that the wxGTK package mentioned above was in fact responsible for Emacs segfaulting; after uninstalling the wxGTK rpm, the Emacs GTK build started under X with no problems, as before. Do you have any idea what the problem could be, or any suggestion how to try tracking it down (if it is necessary to recompile pango or wxGTK with debugging enabled, I probably cannot do it any time soon). Thanks for your help. Steve Berman _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
