default mmap_min_addr breaks dosemu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dosemu (Ubuntu) |
Fix Released
|
Medium
|
Pablo Castellano | ||
Intrepid |
Fix Released
|
Medium
|
Pablo Castellano | ||
procps (Ubuntu) |
Won't Fix
|
Undecided
|
Kees Cook | ||
Intrepid |
Won't Fix
|
Undecided
|
Kees Cook |
Bug Description
Default value of mmap_min_addr is set to 64kb, which breaks many different userland applications, including dosemu, wine and hardware virtualisation.
Should be set to zero, as recommended by LKML when feature was introduced.
As originally reported by pivo:
"""
When I start dosemu, I get the following, only:
$ dosemu
LOWRAM mmap: Invalid argument
Segmentation fault (core dumped)
I use latest hardy on 3 different machines (both ix32 and amd64), tried the console as well as X11, with the same result. The last time I'm certain it worked was 2008-03-26. Some dependency must have borked dosemu. Google didn't help.
"""
***WORKAROUND*
To fix it temporarily run from console (needed everytime you reboot):
$ sudo sysctl vm.mmap_min_addr=0
To fix it permanently:
As root ("sudo -s"), add this line to /etc/sysctl.
vm.mmap_
and then run: invoke-rc.d procps start
***END WORKAROUND*********
A (temporary ?) workaround is to be found at http:// marc.info/ ?l=linux- msdos&m= 120802271919730 &w=2