Subject: Re: X 4.3.0 + xlockmore -> machine check
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: David Hopper <dhop@nwlink.com>
List: port-alpha
Date: 03/13/2003 09:28:54
I'm beginning to feel like a lone wolf in my experiences with the XFree86 code.

Manuel Bouyer wrote:
> On Thu, Mar 13, 2003 at 10:46:56AM +0100, Manuel Bouyer wrote:
> 
>>[...]
>>Now I need to find why the box crashes hard when I start xlock ...

I tested xlock-- newly compiled-- on my PWS 600au and AS255/233 running the 
in-tree code + xsrc/20560.  Both are running -current, to March 7.

I've tried xlock, xlock -mode atlantis, xlock -mode atunnels, and exec xlock 
-mode blank +enablesaver -resetsaver.

There is no machine check on either machine.  I *know* that there is no font 
issue in the in-tree code with either Speedo or Type1 fonts, because I'm 
running stably with them.  One machine (ev56) was installed by running 'make 
install' on top of a previous installation of Mel's 4.2.1 code.  The other 
(ev4) was installed to a clean directory.

What I *suspect* this issue is all about is a dirty font cache in either of 
those two directories, or an errant font that other folks have that I don't.

Because the font interface changed so drastically with 4.3.0, you have to make 
certain that fc-cache -fv, mkfontdirs and mkfontscale run to completion on all 
the font directories.  You might even try deleting all font.cache and 
font.cache-1 files before doing this.  (Or, more drastically, install to a 
clean directory -- not good if you've invested a lot of ev4 time into your 
X11R6/bin!)

Another difference would be 1.6.1_RC2 versus -current.  You might try getting 
up to -current (it's quite stable, at least today).  :)

> I worked around this by a few changes to XF86Config, I don't
> know which ones are relevant: I commented out Speedo and Type1 fonts,
> commented out the "omit xfree86-dga" for extmod, and added the GL module.
> 
> Section "Files"
>         RgbPath      "/usr/X11R6/lib/X11/rgb"
>         FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
> #       FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
> #       FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
>         FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
>         FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
>         FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
> EndSection
> 
> Section "Module"
>     Load        "dbe"   # Double buffer extension
>     Load        "extmod"   # Double buffer extension
> #    SubSection  "extmod"
> #      Option    "omit xfree86-dga"   # don't initialise the DGA extension
> #    EndSubSection
> #    Load        "type1"
> #    Load        "speedo"
>     Load        "freetype"
>     Load        "glx"
>     Load        "GL"
> EndSection

Here's mine, running quite stably on both the PWS and AS255.  It's unchanged 
from when I sent it last:

Section "Module"

     Load        "dbe"
     SubSection  "extmod"
       Option    "omit xfree86-dga"
     EndSubSection
     Load        "type1"
     Load        "freetype"
     Load        "glx"

EndSection

Section "Files"

     RgbPath    "/usr/X11R6/lib/X11/rgb"
     FontPath   "/usr/X11R6/lib/X11/fonts/local/"
     FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
     FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
     FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
     FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
     FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
     FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
     FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
     FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
     FontPath   "/usr/X11R6/lib/X11/fonts/TrueType/"
     FontPath   "/usr/X11R6/lib/X11/fonts/util/"
     FontPath   "/usr/X11R6/lib/X11/fonts/jmk/"
     FontPath   "/usr/X11R6/lib/X11/fonts/freefont/"
     FontPath   "/usr/X11R6/lib/X11/fonts/bitstream/"

EndSection

> --
> Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
>      NetBSD: 24 ans d'experience feront toujours la difference
> --

Thanks,
Dave