Re: Tracing errors



Le dim 13/06/2004 à 09:34, Russell Shaw a écrit :
> Jean Bréfort wrote:
> > Le dim 13/06/2004 à 07:07, Russell Shaw a écrit :
> > 
> >>Hi,
> >>I just compiled gtk and now when i run a gtk prog such as
> >>gnumeric, i get:
> >>
> >>   ** (gnumeric:9135): WARNING **: Cannot open font file for font Verdana 10
> >>
> >>   ** (gnome_segv:9136): WARNING **: Cannot open font file for font Verdana 10
> >>
> >>and the prog exits.
> >>
> >>
> >>How do i find the specific missing package without resorting to gdb?
> >>
> >>fc-list shows i have:
> >>
> >>   Verdana:style=Bold
> >>   Verdana:style=Bold Italic
> >>   Verdana:style=Italic
> >>   Verdana:style=Regular
> >>
> >>I have gtk/glib/pango/atk installed in /usr/local/lib.
> >>
> >>I ran ldconfig with:
> >>
> >>   /usr/X11R6/lib
> >>   /usr/local/lib
> >>
> >>in /etc/ld.so.conf
> >>
> >>(OS is debian)
> > 
> > 
> > Do you get these errors with all gtk apps? Which versions do you use?
> 
> Hi,
> I don't get the error with gtkfontsel, or gimp or abiword. I do get
> the error with gnumeric and devhelp (Gnome devhelp 0.8.1).
> 
> > Did you compile everything yourself?
> 
> Only gtk/glib/pango/atk.
> 
> strace devhelp:
> 
> ...
> access("/usr/local/lib/pango/1.4.0/modules/pango-basic-fc.so", F_OK) = 0
> open("/usr/local/lib/pango/1.4.0/modules/pango-basic-fc.so", O_RDONLY) = 32
> read(32, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\f\0\000"..., 512) = 512
> fstat64(32, {st_mode=S_IFREG|0755, st_size=70374, ...}) = 0
> old_mmap(NULL, 10236, PROT_READ|PROT_EXEC, MAP_PRIVATE, 32, 0) = 0x41006000
> old_mmap(0x41008000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 32, 
> 0x1000) = 0x41008000
> close(32)                               = 0
> getpid()                                = 11764
> write(2, "\n** (devhelp:11764): WARNING **:"..., 75
> ** (devhelp:11764): WARNING **: Cannot open font file for font Verdana 10
> ) = 75
> open("/usr/share/fonts/truetype/Verdana.ttf", O_RDONLY) = 32
> fcntl64(32, F_SETFD, FD_CLOEXEC)        = 0
> fstat64(32, {st_mode=S_IFREG|0644, st_size=139640, ...}) = 0
> old_mmap(NULL, 139640, PROT_READ, MAP_PRIVATE, 32, 0) = 0x418e3000
> close(32)                               = 0
> brk(0)                                  = 0x8432000
> brk(0x8453000)                          = 0x8453000
> brk(0)                                  = 0x8453000
> brk(0)                                  = 0x8453000
> brk(0x8451000)                          = 0x8451000
> brk(0)                                  = 0x8451000
> --- SIGSEGV (Segmentation fault) ---
> --- SIGSEGV (Segmentation fault) ---
> --- SIGSEGV (Segmentation fault) ---
> ...
> --- SIGSEGV (Segmentation fault) ---
> +++ killed by SIGSEGV +++
> 
> 
> 
> strace gnumeric:
> 
> ...
> open("/proc/meminfo", O_RDONLY)         = 15
> fstat64(15, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
> 0x4001c000
> read(15, "        total:    used:    free:"..., 4096) = 522
> close(15)                               = 0
> munmap(0x4001c000, 4096)                = 0
> getpid()                                = 11769
> write(2, "\n** (gnumeric:11769): WARNING **"..., 76
> ** (gnumeric:11769): WARNING **: Cannot open font file for font Verdana 10
> ) = 76
> brk(0)                                  = 0x8469000
> brk(0x848a000)                          = 0x848a000
> open("/usr/share/fonts/truetype/Verdana.ttf", O_RDONLY) = 15
> fcntl64(15, F_SETFD, FD_CLOEXEC)        = 0
> fstat64(15, {st_mode=S_IFREG|0644, st_size=139640, ...}) = 0
> old_mmap(NULL, 139640, PROT_READ, MAP_PRIVATE, 15, 0) = 0x411f1000
> close(15)                               = 0
> --- SIGSEGV (Segmentation fault) ---
> write(3, "\232\21\3\0\6\0\200\1,\0\0\0\33\1\2\0\0\0\0\0", 20) = 20
> write(3, " \21\2\0\0\0\0\0", 8)         = 8
> write(3, "+\21\1\0", 4)                 = 4
> read(3, "\1\0P\0\0\0\0\0\23\0\0\1P1)\0\0\0\0\0\1\0\0\0\37\0\0\0"..., 32) = 32
> fork()                                  = 11770
> waitpid(11770,
> ** (gnome_segv:11770): WARNING **: Cannot open font file for font Verdana 10
> [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], 0) = 11770
> --- SIGCHLD (Child exited) ---
> sigreturn()                             = ? (mask now [SEGV RTMIN])
> _exit(1)                                = ?
> 
> 
> ls -l /usr/share/fonts/truetype/Verdana.ttf
> 
>    -rw-r--r--    1 root     root       139640 Dec 12  1998
>                                /usr/share/fonts/truetype/Verdana.ttf
> 
> 
> I have fontconfig installed, and cat /etc/fonts/fonts.conf:
> 
>    ...
>    <dir>/usr/share/fonts</dir>
>    <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
>    <dir>/usr/local/share/fonts</dir>
>    <dir>~/.fonts</dir>
>    ...

Clearly the font file is found.
(open("/usr/share/fonts/truetype/Verdana.ttf", O_RDONLY) = 15).
Seems the the segfault occurs when closing the file. I have no idea
about what might cause this to occur.
Normally, glib-2.0 pango-1.0 and gtk+-2.0 should be binary compatible
for all versions. Nonetheless, I suggest you should compile devhelp or
gnumeric and see if it solves the problem.

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



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