Menu

#549 EMU86: error 96 as user, but not as root

fixed_in_git
closed
nobody
None
5
2019-03-27
2014-11-19
David Rock
No

I have a program that will run successfully if run as root, but not as a normal user. DOSEMU loads, but when I actually run the program with

dosemu -f ~/.dosemurc_doors

I get the following error

======================= ENTER CPU-EMU ===============

  • Fault out of DOSEMU code, cs:eip=73:80f3536, cr2=565b, fault_cnt=1
    ERROR: EMU86: error 96
    leavedos(e_vm86|1210) called - shutting down
    ======================= LEAVE CPU-EMU ===============

I would obviously prefer not giving root access, but I can't tell what is being accessed that is causing the issue. What does EMU86: error 96 refer to?

boot.log

major = 136 minor = 0
CONF: config variable parser_version_3 set
CONF: config variable c_system set
CONF: Parsing built-in dosemu.conf file.
CONF: config variable version_3_style_used set
CONF: Parsing built-in global.conf file.
CONF: config variable version_3_style_used unset
CONF: config variable version_3_style_used set
CONF: opened include file /etc/dosemu/dosemu.conf
CONF: closed include file /etc/dosemu/dosemu.conf
CONF: opened include file /bbs/wwiv/.dosemurc_doors
CONF: closed include file /bbs/wwiv/.dosemurc_doors
CONF: config variable skip_dosrc set
CONF: mapping driver = 'auto'
debug flags: -a+cw
CONF: Disabling use of pentium timer
CONF: dosbanner on
CONF: timer freq=18, update=54925
CONF: CPU set to 586
CONF: JIT CPUEMU set to 0 for 586
CONF: 8192k bytes EMS memory
CONF: EMS-frame = 0xe400
CONF: DPMI-Server on (0x5000)
CONF: DPMI base addr = 0x10000000
CONF: PM DOS API Translator on
CONF: No DJGPP NULL deref checks: off
CONF: 8192k bytes XMS memory
CONF: dosemu not running on console
CONF: time mode = 'bios'
SER: directory /var/lock namestub LCK.. binary No
MOUSE: no device specified, type 0 using internaldriver: yes, emulate3buttons: no baudrate: 0
CONF: Keyboard-layout keyb-user
CONF: Keyboard-layout us
CONF: **** Warning: floppy /dev/fd0 not accessible, disabled
CONF: fastfloppy = 1
CONF: IPX support off
CONF(LPT0) f: (null)   c: lpr -l  t: 20  port: 0
CONF(LPT1) f: (null)   c: lpr -l -P lpt2  t: 20  port: 0
CONF: not allowing speaker port access
CONF: Packet Driver enabled.
device: /bbs/wwiv/.dosemu/drive_c_doors type 4 h: -1  s: -1   t: -1 drive C:
device: /bbs/wwiv/.dosemu/drives/d type 4 h: -1  s: -1   t: -1 drive D:
CONF: cdrom MSCD0001 on /dev/cdrom
CONF: config variable c_system unset
CONF: config variable c_comline set
Parsing commandline statements.
CONF: Parsing commandline file.
CONF: config variable c_comline unset
Linux kernel 3.12.13; CPU speed is 497448000 Hz
CPU-EMU speed is 497 MHz
CONF: mostly running as USER: uid=1001 (cached 1001) gid=1001 (cached 1001)
DBG_FD already set
DOSEMU-1.4.0.8 is coming up on Linux version 3.12.13-gentoo #2 SMP Fri May 23 23:16:58 CDT 2014 i686
Compiled with GCC version 4.7.3 -m32
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)
PKT: Cannot open raw sockets: No such file or directory
CONF: JIT CPUEMU set to 3 for 586
WARN: using non-zero memory base address 0x10f000.
WARN: You can use the better-tested zero based setup using
WARN: sysctl -w vm.mmap_min_addr=0
WARN: as root, or by changing the vm.mmap_min_addr setting in
WARN: /etc/sysctl.conf or a file in /etc/sysctl.d/ to 0.
CONF: reserving 8256Kb at 0x100000 for 'x' (Extended memory (HMA+XMS))
CONF: reserving 4Kb at 0xC0000 for 'V' (VGAEMU Video BIOS)
SERIAL $Id$
ERROR: SDL sound init failed: No available audio device
ERROR: PCM: "Sound Output: SDL device" failed to open
CONF: reserving 16Kb at 0xE4000 for 'E' (EMS page frame)
CONF: reserving 16Kb at 0xE8000 for 'E' (EMS page frame)
CONF: reserving 16Kb at 0xEC000 for 'E' (EMS page frame)
CONF: reserving 16Kb at 0xF0000 for 'E' (EMS page frame)
CONF: reserving 140Kb at 0xC1000 for 'U' (Upper Memory Block (UMB, XMS 3.0))
TIME: using 9154 usec for updating ALRM timer
======================= ENTER CPU-EMU ===============


*       Fault out of DOSEMU code, cs:eip=73:80f3536, cr2=565b, fault_cnt=1
ERROR: EMU86: error 96
leavedos(e_vm86|1210) called - shutting down
======================= LEAVE CPU-EMU ===============

dosemu.users

wwiv c_all

.dosemurc_doors

ifdef u_virtual
serial { virtual com 1 }
endif

$_cpu = "80586"
$_hogthreshold = (10)
$_dpmi_base = (0x10000000)
$_external_char_set = "cp437"
$_internal_char_set = "cp437"
$_layout = "us"
$_hdimage = "/bbs/wwiv/.dosemu/drive_c_doors drives/d"

Discussion

  • Stas Sergeev

    Stas Sergeev - 2014-11-19

    Your log says everything:

    WARN: using non-zero memory base address 0x10f000.
    WARN: You can use the better-tested zero based setup using
    WARN: sysctl -w vm.mmap_min_addr=0
    WARN: as root, or by changing the vm.mmap_min_addr setting in
    WARN: /etc/sysctl.conf or a file in /etc/sysctl.d/ to 0.

    Or, you can instead update dosemu from git.

     
  • Stas Sergeev

    Stas Sergeev - 2014-11-19
    • status: open --> closed
     
  • Marek Spychalski

    Hi
    I have the same problem,dosemu stops working, what to do?

     

Log in to post a comment.

MongoDB Logo MongoDB