Bug#253806: xvfb: Xvfb fails to start: could not open default font 'fixed'

2004-06-30 Thread Branden Robinson
retitle 253806 xfree86: [FAQ] add more troubleshooting advice for the 'could 
not open default font' question
reassign 253806 xfree86
tag 235806 =
thanks

On Wed, Jun 30, 2004 at 09:28:41AM +0200, Floris Kraak wrote:
> Branden Robinson wrote:
> >1) What does "dpkg -s xfonts-base" say?
> 
> Not sure since we fixed this particular problem since then (see 2)
> However, it was a) installed, b) not broken, and c) the same version as 
> what was current in the repository at the time. I know this for sure.

Okay.

> >2) If you reinstall xfonts-base, does the problem go away?
> 
> Yes. Though a normal reinstall wasn't enough, but purging it and 
> re-installing it then did work.

That suggests to me that a conffile was involved.
/etc/X11/fonts/misc/xfonts-base.alias, for example, is a conffile.

If something stomped on that file such that the "fixed" line went
missing...

$ grep '\' /etc/X11/fonts/misc/xfonts-base.alias | head -n 1
fixed-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1

...then that would definitely cause your problem.

> >3) Are any other packages shipping files in
> >   /usr/X11R6/lib/X11/fonts/misc?
> > dpkg -S usr/X11R6/lib/X11/fonts/misc
> 
> [EMAIL PROTECTED]:~# dpkg -S usr/X11R6/lib/X11/fonts/misc | cut -d : -f 1 | 
> sort -u
> xfonts-base
> xfonts-base, xfonts-bolkhov-cp1251-misc
> 
> Not sure what those bolkhov fonts are doing there. We sure as hell don't 
> need them ..

Might want to make sure xfonts-bolkhov*'s maintainer scripts aren't
doing anything evil...

> >4) Is anything other than an official Debian package putting stuff in
> >   /usr/X11R6/lib/X11/fonts/misc?
> 
> No.
> 
> This one took us some time to figure out and debug, especially since xvfb 
> was not really helpful in telling us what was going wrong and why. Since 
> reinstalling xfonts-base did help (but it needed a purge!) maybe it's a 
> good idea to put the purge-and-reinstall option in the documentation or 
> something..

I apologize for the difficulty you experienced.

Looks like I need to expand the answer to the following FAQ entry:

http://necrotic.deadbeast.net/xsf/XFree86/trunk/debian/local/FAQ.xhtml#fixedfont

I am therefore re-purposing this bug to that end, since your problem is
resolved.

-- 
G. Branden Robinson|If you make people think they're
Debian GNU/Linux   |thinking, they'll love you; but if
[EMAIL PROTECTED] |you really make them think, they'll
http://people.debian.org/~branden/ |hate you.-- Don Marquis


signature.asc
Description: Digital signature


Processed: Re: Bug#253806: xvfb: Xvfb fails to start: could not open default font 'fixed'

2004-06-30 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> retitle 253806 xfree86: [FAQ] add more troubleshooting advice for the 'could 
> not open default font' question
Bug#253806: xvfb: Xvfb fails to start: could not open default font 'fixed'
Changed Bug title.

> reassign 253806 xfree86
Bug#253806: xfree86: [FAQ] add more troubleshooting advice for the 'could not 
open default font' question
Bug reassigned from package `xvfb' to `xfree86'.

> tag 235806 =
Bug#235806: RFP: apt-best -- finding the most popular debian packages
There were no tags set.
Tags set to: 

> thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)



Bug#253806: xvfb: Xvfb fails to start: could not open default font 'fixed'

2004-06-30 Thread Floris Kraak

Branden Robinson wrote:



open("/usr/X11R6/lib/X11/fonts/misc/fonts.alias", O_RDONLY) = -1 ENOENT (No 
such file or directory)



There's your problem.

I suspect xfonts-base failed to configure; another package which
dumps fonts into /usr/X11R6/lib/X11/fonts/misc failed to configure; or
another package which dumps fonts into /usr/X11R6/lib/X11/fonts/misc is
horrendously broken.

I have a few questions that may help track the problem down:

1) What does "dpkg -s xfonts-base" say?


Not sure since we fixed this particular problem since then (see 2)
However, it was a) installed, b) not broken, and c) the same version as what was 
current in the repository at the time. I know this for sure.



2) If you reinstall xfonts-base, does the problem go away?


Yes. Though a normal reinstall wasn't enough, but purging it and re-installing 
it then did work.



3) Are any other packages shipping files in
   /usr/X11R6/lib/X11/fonts/misc?
 dpkg -S usr/X11R6/lib/X11/fonts/misc


[EMAIL PROTECTED]:~# dpkg -S usr/X11R6/lib/X11/fonts/misc | cut -d : -f 1 | 
sort -u
xfonts-base
xfonts-base, xfonts-bolkhov-cp1251-misc

Not sure what those bolkhov fonts are doing there. We sure as hell don't need 
them ..



4) Is anything other than an official Debian package putting stuff in
   /usr/X11R6/lib/X11/fonts/misc?


No.

This one took us some time to figure out and debug, especially since xvfb was 
not really helpful in telling us what was going wrong and why. Since 
reinstalling xfonts-base did help (but it needed a purge!) maybe it's a good 
idea to put the purge-and-reinstall option in the documentation or something..


Regards,
Floris Kraak
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
   - Brian W. Kernighan





Bug#253806: xvfb: Xvfb fails to start: could not open default font 'fixed'

2004-06-29 Thread Branden Robinson
tag 253806 + moreinfo
thanks

On Fri, Jun 11, 2004 at 10:16:04AM +0200, Floris Kraak wrote:
> Package: xvfb
> Version: 4.3.0.dfsg.1-4
> Severity: important
> 
> Xvfb fails to start, complaining about the 'fixed' font. The recommendations
> made in /usr/share/doc/xfree86-common/FAQ.gz have been followed as suggested
> by the package, (including checking font dirs in /etc/XF86Config and 
> reinstalling xfonts-base) but to no avail. Using strace yields the 
> information 
> that Xvfb _is_ reading the fonts.dir where the 'fixed' font is supposed to be 
> living but somehow still fails to find the actual font.
[...]
> open("/usr/X11R6/lib/X11/fonts/misc/fonts.alias", O_RDONLY) = -1 ENOENT (No 
> such file or directory)

There's your problem.

I suspect xfonts-base failed to configure; another package which
dumps fonts into /usr/X11R6/lib/X11/fonts/misc failed to configure; or
another package which dumps fonts into /usr/X11R6/lib/X11/fonts/misc is
horrendously broken.

I have a few questions that may help track the problem down:

1) What does "dpkg -s xfonts-base" say?
2) If you reinstall xfonts-base, does the problem go away?
3) Are any other packages shipping files in
   /usr/X11R6/lib/X11/fonts/misc?
 dpkg -S usr/X11R6/lib/X11/fonts/misc
4) Is anything other than an official Debian package putting stuff in
   /usr/X11R6/lib/X11/fonts/misc?

-- 
G. Branden Robinson|
Debian GNU/Linux   |Yeah, that's what Jesus would do.
[EMAIL PROTECTED] |Jesus would bomb Afghanistan. Yeah.
http://people.debian.org/~branden/ |


signature.asc
Description: Digital signature


Processed: Re: Bug#253806: xvfb: Xvfb fails to start: could not open default font 'fixed'

2004-06-29 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> tag 253806 + moreinfo
Bug#253806: xvfb: Xvfb fails to start: could not open default font 'fixed'
There were no tags set.
Tags added: moreinfo

> thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)



Bug#253806: xvfb: Xvfb fails to start: could not open default font 'fixed'

2004-06-11 Thread Floris Kraak
Package: xvfb
Version: 4.3.0.dfsg.1-4
Severity: important

Xvfb fails to start, complaining about the 'fixed' font. The recommendations
made in /usr/share/doc/xfree86-common/FAQ.gz have been followed as suggested
by the package, (including checking font dirs in /etc/XF86Config and 
reinstalling xfonts-base) but to no avail. Using strace yields the information 
that Xvfb _is_ reading the fonts.dir where the 'fixed' font is supposed to be 
living but somehow still fails to find the actual font.

Installed versions of relevant packages
xserver-common: 4.3.0.dfsg.1-4
xfonts-base: 4.3.0.dfsg.1-4
xutils: 4.3.0.dfsg.1-4

I have appended the strace information to the end of this report.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.4
Locale: LANG=C, LC_CTYPE=C

Versions of packages xvfb depends on:
ii  libc6   2.3.2.ds1-12 GNU C Library: Shared libraries an
ii  libfreetype62.1.7-2  FreeType 2 font engine, shared lib
ii  zlib1g  1:1.2.1.1-3  compression library - runtime

-- no debconf information

Strace information:
(obtained with: strace Xvfb :99 -screen 0 640x480x8 -nolisten tcp > 
xvfb_strace.log 2>&1)

execve("/usr/X11R6/bin/Xvfb", ["Xvfb", ":99", "-screen", "0", "640x480x8", 
"-nolisten", "tcp"], [/* 22 vars */]) = 0
uname({sys="Linux", node="hq", ...})= 0
brk(0)  = 0x840a000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40017000
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=46036, ...}) = 0
old_mmap(NULL, 46036, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/usr/lib/libfreetype.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\345"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=447212, ...}) = 0
old_mmap(NULL, 446176, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40024000
old_mmap(0x4008a000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x66000) = 0x4008a000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/usr/lib/libz.so.1", O_RDONLY)= 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\27\0\000"..., 512) = 
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=67304, ...}) = 0
old_mmap(NULL, 66268, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40091000
old_mmap(0x400a1000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x1) = 0x400a1000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/lib/tls/libm.so.6", O_RDONLY)= 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0006\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=141312, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x400a2000
old_mmap(NULL, 139712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400a3000
old_mmap(0x400c5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x22000) = 0x400c5000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)= 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340X\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1279012, ...}) = 0
old_mmap(NULL, 1289324, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400c6000
old_mmap(0x401f6000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0x12f000) = 0x401f6000
old_mmap(0x401ff000, 7276, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401ff000
close(3)= 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40201000
set_thread_area({entry_number:-1 -> 6, base_addr:0x400a2ba0, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0
munmap(0x40018000, 46036)   = 0
geteuid32() = 1006
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
brk(0)  = 0x840a000
brk(0x842b000)  = 0x842b000
brk(0)  = 0x842b000
close(0)= 0
close(1)= 0
write(2, "", 0) = 0
getpgrp()   = 21455
open("/tmp/.tX99-lock", O_WRONLY|O_CREAT|O_EXCL, 0644) = 0
getpid()= 21456
write(0, " 21456\