doscmd under 8-stable, anyone?

2011-06-15 Thread Joerg Wunsch
When trying to use doscmd on 8-stable, all I get is: Error mapping HMA, HMA disabled: : Invalid argument Segmentation fault (core dumped) The segfault happens at the end of mem_init(), when the allocated DOS memory (which is located at virtual address 0) is attempted to be written to.

Re: doscmd under 8-stable, anyone?

2011-06-15 Thread Jeremy Chadwick
On Wed, Jun 15, 2011 at 03:57:05PM +0200, Joerg Wunsch wrote: When trying to use doscmd on 8-stable, all I get is: Error mapping HMA, HMA disabled: : Invalid argument Segmentation fault (core dumped) The segfault happens at the end of mem_init(), when the allocated DOS memory (which is

Re: doscmd under 8-stable, anyone?

2011-06-15 Thread Kostik Belousov
On Wed, Jun 15, 2011 at 03:57:05PM +0200, Joerg Wunsch wrote: When trying to use doscmd on 8-stable, all I get is: Error mapping HMA, HMA disabled: : Invalid argument Segmentation fault (core dumped) The segfault happens at the end of mem_init(), when the allocated DOS memory (which is

Re: doscmd under 8-stable, anyone?

2011-06-15 Thread Vlad Galu
Hi Joerg, Flip security.bsd**.map_at_zero to 1. On Wed, Jun 15, 2011 at 3:57 PM, Joerg Wunsch freebsd-sta...@uriah.heep.sax.de wrote: When trying to use doscmd on 8-stable, all I get is: Error mapping HMA, HMA disabled: : Invalid argument Segmentation fault (core dumped) The segfault

Re: doscmd under 8-stable, anyone?

2011-06-15 Thread Joerg Wunsch
As Kostik Belousov wrote: So does anyone have an idea why this mmap() call: ... yields an EINVAL now under 8-stable? Do sysctl security.bsd.map_at_zero=1 Ah, thanks! Now it works. Well, at least it doesn't crash anymore (I somehow have to fix my boot environment, hopefully I'll be

Re: doscmd under 8-stable, anyone?

2011-06-15 Thread Joerg Wunsch
As Kostik Belousov wrote: Do sysctl security.bsd.map_at_zero=1 Just for the record, this sysctl also makes my really really old utree binary work again. The binary dates back to 386BSD 0.0, and I'm only keeping it out of curiosity: j@uriah 66% ls -l /usr/local/bin/utree -rwxr-xr-x 1 bin bin

Re: doscmd under 8-stable, anyone?

2011-06-15 Thread nickolasbug
2011/6/15 Jeremy Chadwick free...@jdc.parodius.com: On Wed, Jun 15, 2011 at 03:57:05PM +0200, Joerg Wunsch wrote: When trying to use doscmd on 8-stable, all I get is: Error mapping HMA, HMA disabled: : Invalid argument Segmentation fault (core dumped) The segfault happens at the end of

Re: doscmd under 8-stable, anyone?

2011-06-15 Thread Kostik Belousov
On Wed, Jun 15, 2011 at 04:44:55PM +0200, Joerg Wunsch wrote: As Kostik Belousov wrote: Do sysctl security.bsd.map_at_zero=1 Just for the record, this sysctl also makes my really really old utree binary work again. The binary dates back to 386BSD 0.0, and I'm only keeping it out of