[Scribus] segfault with ghostscript fonts
Franz Schmid
Franz.Schmid
Sun Oct 12 22:14:17 CEST 2003
Koblinger Egmont wrote:
> Hi,
>
> scribus 1.1.1 segfaults for me at startup (splash screen phase 2:
> Searching for Fonts) if fonts of the gnu-gs-fonts-other-6.0
> package (ftp://ftp.gnu.org/gnu/ghostscript/) are installed under the
> standard font search path. 1.1.0 and earlier versions didn't segfault.
>
> The end of strace is this:
> close(9) = 0
> munmap(0x43b69000, 47083) = 0
> open("/usr/share/fonts/URW/d050000l.pfb", O_RDONLY) = 9
> fcntl64(9, F_SETFD, FD_CLOEXEC) = 0
> fstat64(9, {st_mode=S_IFREG|0644, st_size=45955, ...}) = 0
> old_mmap(NULL, 45955, PROT_READ, MAP_PRIVATE, 9, 0) = 0x43b69000
> close(9) = 0
> munmap(0x43b69000, 45955) = 0
> open("/usr/share/fonts/URW/hrger.pfa", O_RDONLY) = 9
> fcntl64(9, F_SETFD, FD_CLOEXEC) = 0
> fstat64(9, {st_mode=S_IFREG|0644, st_size=58276, ...}) = 0
> old_mmap(NULL, 58276, PROT_READ, MAP_PRIVATE, 9, 0) = 0x43b69000
> close(9) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
>
> (/usr/share/fonts/URW is a symlink to the location of the ghostscript
> fonts.)
>
> An "xset fp- /usr/share/fonts/URW" solves the segfault problem, but
> removing fonts.cache-1 instead doesn't solve the segfault. Interesting
> though, the string "hrger" (name of the last file scribus opens) isn't
> mentioned in any of the fonts.{dir,scale,cache-1} files.
The name "hrger.pfa" is the name of the fontfile itself, it's an very old
font converted from the Hershy Set. On my System it doesn't segfault, but
that font is very ugly on Screen and fairly unuseable.
This might be the reason that it isn't listed in fonts.dir or fonts.scale.
Scribus doesn't use fonts.dir or fonts.scale it searches in every directory
in the fontpath for files with the extension .pfa .ttf .pfb or .otf and treats
them as Fonts. So it might be the easiest solution to simply delete that hrger.pfa
file, since it isn't used by anybody.
Best Regards
Franz Schmid
More information about the scribus
mailing list