Jörg Sonnenberger just committed the attached patch to pkgsrc, which fixes the problem for me as well, with the commit message: "Use correct mmap permissions for later PROT_WRITE mprotect." Thomas