Re: [patch]: mmapping FontConfig data structures

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

 



James Cloos wrote:
> 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:

Thanks for ths strace.  fc-mmap/fc-mmap unlinks in self-defense when it
gets an error code from a syscall, e.g. on your system, mmap() with a
requested length of 0 just fails.  I've wrapped that particular mmap in
a conditional in:

http://plam.csail.mit.edu/~plam/tmp/fontconfig-mmap-050610.diff

This version should work on your system.  Let me know what happens.

(I also made one other change, which prevents some unnecessary mmapping.
 Surprisingly, mmap can validly return 0x0 and it isn't a failure.)

pat

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux