Hi, The attached patch (designed to be added to debian/patches) adds a check to the dosemu shell script. If /proc/sys/vm/mmap_min_addr exists and has contents greater than 0, dosemu will print an explanation and quit before running the dosemu binary.
Regards, Stephen
Check whether /proc/sys/vm/mmap_min_addr will prevent dosemu from running, before actually running dosemu. --- dosemu-1.4.0+svn.1828.orig/dist/dosemu +++ dosemu-1.4.0+svn.1828/dist/dosemu @@ -16,6 +16,20 @@ exit 1 } +if [ -r /proc/sys/vm/mmap_min_addr -a $(cat /proc/sys/vm/mmap_min_addr) -gt 0 ] +then + echo " +Your system settings are incompatible with dosemu. To run dosemu you will need +to run the following command as root (or using sudo): + echo 0 > /proc/sys/vm/mmap_min_addr +Be aware that this will expose your system to any null pointer dereferencing +bugs in your kernel, so you should restore the original value as soon as you +finish running dosemu: + echo $(cat /proc/sys/vm/mmap_min_addr) > /proc/sys/vm/mmap_min_addr +" + exit 1 +fi + THISDIR=$PWD ARG0="$0"

