[Fontconfig] Re: [patch]: mmapping FontConfig data structures

James Cloos cloos at jhcloos.com
Fri Jun 10 19:57:11 EST 2005


I've grabbed the (two) new versions and will try them.

But with the original version fc-mmap unlink(2)s the mmap file after
generating it.  I upgraaded fc via gentoo's emerge, so the binaries
are strip(1)ed, preventing real debugging for now, but this is the
end of a trace:

close(3)                                = 0
open("/tmp/fontconfig-mmap-Linux-i686-cloos-:0.0", O_RDWR) = 3
lseek(3, 0, SEEK_SET)                   = 0
read(3, "xV4\22\0 \0\0\0\200\0\0\245\23\0\0\0\0\0\0\0\300\1\0L`"..., 136) = 136
mmap2(NULL, 450589, PROT_READ, MAP_SHARED, 3, 0x550) = 0xb78d9000
mmap2(0xb78d9000, 450589, PROT_READ, MAP_SHARED|MAP_FIXED, 3, 0x550) = 0xb78d9000
mmap2(NULL, 80480, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0x2f0) = 0xb7f47000
mmap2(NULL, 2003328, PROT_READ, MAP_SHARED, 3, 0x304) = 0xb72a6000
mmap2(NULL, 250416, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0x4ee) = 0xb789b000
mmap2(NULL, 125208, PROT_READ, MAP_SHARED, 3, 0x52c) = 0xb787c000
mmap2(NULL, 0, PROT_READ, MAP_SHARED, 3, 0x54c) = -1 EINVAL (Invalid argument)
unlink("/tmp/fontconfig-mmap-Linux-i686-cloos-:0.0") = 0
close(3)                                = 0
exit_group(0)                           = ?

Better info to follow soon.

-JimC



More information about the Fontconfig mailing list