Skip to content

Program runs inconsistently, gives error prompt saying it needs administrator permissions when run as root #1065

Description

@dmcdonald-603

First off I just want to say thanks for creating and maintaining this - it's really saving my bacon here! I'm trying to run an internally-developed program originally made for Windows on a Modberry (basically a Pi 4) running 32-bit Debian. Linux isn't really my forte, but I installed box86 and Wine using the instructions in your documentation and I've been able to get some Windows programs running, including the installer for this particular program (which I had opened the opcode issue for). However, when I try to run this one using sudo wine my-program.exe, one of two things happens:

  1. I get "failed to map segment from shared object" errors from libxrender, libxcomposite, and libxi and it hangs until I press ctrl+c (this happens probably 75-80% of the time)
  2. The program starts but immediately gives me an error prompt saying it needs administrator permissions

Note that this program does need to be run as root. In a Windows environment it needs to be run as administrator.

I've been able to run other programs through Wine/box86 as root using sudo, but for some reason it's not working with this one. Previously I had found an x86_64 Ubuntu machine and had gotten the program working using Wine with the same command as above so I know that should work. While that can work as a backup, I do need to get it working on the Modberry if at all possible. I should also note that the Modberry runs a lot slower than the Ubuntu computer I used, so it's possible one or both of those issues could be related to that.

I grabbed the level 1 logs for both cases, but let me know if I can provide any more info.

Case 1:

Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Cortex-A72 with 4 Cores
Params database has 32 entries
Box86 with Dynarec v0.3.9 39d3ed20 built on Aug 12 2026 16:52:05
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 44 Env var
Looking for sudo
argv[1]="wine"
argv[2]="my-program.exe"
Not an i386 ELF (40)
Error: reading elf header of /usr/bin/sudo, trying to launch natively instead
Box86 with Dynarec v0.3.9 39d3ed20 built on Aug 12 2026 16:52:05
Box86 with Dynarec v0.3.9 39d3ed20 built on Aug 12 2026 16:52:05
Error initializing native libXrender.so.1 (last dlerror is libXrender.so.1: failed to map segment from shared object)
Error initializing native libXcomposite.so.1 (last dlerror is libXcomposite.so.1: failed to map segment from shared object)
Error initializing native libXi.so.6 (last dlerror is libXi.so.6: failed to map segment from shared object)
^C014c:err:virtual:virtual_setup_exception nested exception on signal stack addr 0x400406ab stack 0x3ffef910

Case 2:

Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096 Running on Cortex-A72 with 4 Cores
Params database has 32 entries
Box86 with Dynarec v0.3.9 39d3ed20 built on Aug 12 2026 16:52:05
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 44 Env var
Looking for sudo
argv[1]="wine"
argv[2]="my-program.exe"
Not an i386 ELF (40)
Error: reading elf header of /usr/bin/sudo, trying to launch natively instead
Box86 with Dynarec v0.3.9 39d3ed20 built on Aug 12 2026 16:52:05
Box86 with Dynarec v0.3.9 39d3ed20 built on Aug 12 2026 16:52:05
0158:fixme:mscoree:parse_startup useLegacyV2RuntimeActivationPolicy=L"true" not implemented
0158:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.6.2" not implemented
0158:fixme:mscoree:parse_startup useLegacyV2RuntimeActivationPolicy=L"true" not implemented
0158:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.6.2" not implemented
0158:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions