This should fix the problem:
--- ../trunk/src/buffer.c 2014-05-29 15:51:11.632003900 +0200
+++ src/buffer.c 2014-05-29 15:50:54.192190300 +0200
@@ -4703,11 +4703,6 @@
static int mmap_fd;
-/* Temporary storage for mmap_set_vars, see there. */
-
-static struct mmap_region *mmap_regions_1;
-static int mmap_fd_1;
-
/* Page size on this system. */
static int mmap_page_size;
@@ -5282,6 +5277,9 @@
{
struct buffer *b;
+ mmap_regions = NULL;
+ mmap_fd = -1;
+
/* We cannot dump buffers with meaningful addresses that can be
used by the dumped Emacs. We map new memory for them here. */
FOR_EACH_BUFFER (b)
by initializing explicitly variables that need it. We can also remove
unsused variables.
Waiting for confirmation (or failure!).