Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2012 20:00:11 GMT
From:      Kristof Provost <kristof@sigsegv.be>
To:        freebsd-arm@FreeBSD.org
Subject:   arm/149288: mail/dovecot causes panic during configure on Sheevaplug (ARM)
Message-ID:  <201205202000.q4KK0BCA066508@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR arm/149288; it has been noted by GNATS.

From: Kristof Provost <kristof@sigsegv.be>
To: bug-followup@FreeBSD.org, root@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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205202000.q4KK0BCA066508>