Menu

#562 Dosemu crash without any message

fixed_in_git
open
nobody
None
5
2020-01-10
2020-01-10
No

I have opensuse tumbleweed, after last upgrade with "zypper dup" the dosemu stop to work
first time i get:
LOWRAM mmap: Argumento inválido

This message disappear when i do:
echo 0 > /proc/sys/vm/mmap_min_addr (as root of course)

After that
Dosemu exit without any answer and without any message on /var/log/messages.
inside of ~/.dosemu/boot.log the file say exit called (of course i never call the leavedos)

Compiled with GCC version 9.2.1 -m64
WARN: vm86plus service not available in your kernel
WARN: using CPU emulation for vm86()
CONF: reserving 640Kb at 0x00000 for 'd' (Base DOS memory (first 640K))
CONF: reserving 48Kb at 0xF4000 for 'r' (Dosemu reserved area)
CONF: reserving 128Kb at 0xA0000 for 'v' (Video memory)
leavedos(47|0x2f) called - shutting down

When i activate all debugs flags i get some data:

dosemu -D +#CEMQSWZcehjmpruwADIPRTXadgiknqsvx

MAPPING: map success, cap= HMA, addr=0xffffffffffffffff
HMA: Mapping HMA to HMAAREA 0x100000 unsuccessful: Invalid Argument
leavedos(47|0x2f) called - shutting down

I have one clue, but i dont know how fix that, any help will be greatly appreciated
I post originally on opensuse forum and they suggest submit a bug.

The invalid argument say some mistake on hma.c

  42   ipc_return = mmap_mapping(MAPPING_HMA, (void *)HMAAREA, HMASIZE,
   43     PROT_READ | PROT_WRITE | PROT_EXEC, src);
   44   if (ipc_return == MAP_FAILED) {
   45     x_printf("HMA: Mapping HMA to HMAAREA %#x unsuccessful: %s\n",
   46            HMAAREA, strerror(errno));
   47     leavedos(47);
   48   }
   49   x_printf("HMA: mapped to %p\n", ipc_return);
   50 }
   51

Discussion


Log in to post a comment.