This message was on the dosemu-devel list regarding this problem.  Looks
like it's an upstream fix.

----- Forwarded message from Reinhard Karcher <rkarc...@frey.de> -----

From: Reinhard Karcher <rkarc...@frey.de>
Date: Mon, 12 May 2008 15:27:54 +0200
Subject: Re: [Dosemu-devel] ubuntu update breaks mapping in dosemu 1.4
To: dosemu-de...@lists.sourceforge.net
User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509)

Eric Auer wrote:
> - dosemu always fails with "LOWRAM mmap: Invalid argument" and
>   a segmentation fault, no matter which maps style I use and no
>   matter whether I have /tmp exec,suid or noexec,nosuid
This problem was solved in the latest dosemu svn. I attach the diff, as 
it is small.

Reinhard

--- src/base/init/init.c    (Revision 1862)
+++ src/base/init/init.c    (Revision 1863)
@@ -262,10 +262,18 @@
 
   if (result != NULL)
     {
+      int err = errno;
       perror ("LOWRAM mmap");
-      config.exitearly = 1;
+      if (err == EINVAL) {
+    fprintf(stderr, "Cannot map low DOS memory (the first 640k).\n"
+        "You can most likely avoid this problem by running\n"
+        "sysctl -w vm.mmap_min_addr=0\n"
+        "as root, or by changing the vm.mmap_min_addr setting in\n"
+        "/etc/sysctl.conf to 0.\n");
     }
+      leavedos(99);
 }
+}
 
 /*
  * DANG_BEGIN_FUNCTION version_init


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Dosemu-devel mailing list
dosemu-de...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dosemu-devel


----- End forwarded message -----

-- 
Ryan C. Underwood, <neme...@icequake.net>

Attachment: signature.asc
Description: Digital signature

Reply via email to