arm/149288: mail/dovecot causes panic during configure on Sheevaplug (ARM)

Kristof Provost kristof at sigsegv.be
Sun May 20 20:00:32 UTC 2012


The following reply was made to PR arm/149288; it has been noted by GNATS.

From: Kristof Provost <kristof at sigsegv.be>
To: bug-followup at FreeBSD.org, root at cooltrainer.org
Cc:  
Subject: arm/149288: mail/dovecot causes panic during configure on Sheevaplug
 (ARM)
Date: Sun, 20 May 2012 21:54:12 +0200

 Hi,
 
 I can reproduce this problem on an OpenRD (Marvell Kirkwood, just like
 the Sheevaplug) on version r235647.
 
 The problem appears to be triggered by the test for shared mmaps:
 
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/mman.h>
 
 int main() {
         /* return 0 if we're signed */
         int f = open("conftest.mmap", O_RDWR|O_CREAT|O_TRUNC, 0600);
         void *mem;
         if (f == -1) {
                 perror("open()");
                 return 1;
         }
         unlink("conftest.mmap");
 
         write(f, "1", 2);
         mem = mmap(NULL, 2, PROT_READ|PROT_WRITE, MAP_SHARED, f, 0);
         if (mem == MAP_FAILED) {
                 perror("mmap()");
                 return 1;
         }
         strcpy(mem, "2");
         msync(mem, 2, MS_SYNC);
         lseek(f, 0, SEEK_SET);
         write(f, "3", 2);
 
         return strcmp(mem, "3") == 0 ? 0 : 1;
 }
 
 Regards,
 Kristof
 


More information about the freebsd-arm mailing list