box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Error allocating memory for elf

Open xiil34f opened this issue 3 years ago • 6 comments

xiil34f@localhost:~$ box64 bitwig-studio Box64 v0.1.7 90fe733 built on Mar 5 2022 09:37:09 Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/ Using default BOX64_PATH: ./:bin/ Counted 15 Env var Looking for bitwig-studio Error, memory map (@0x200000 0x158000/0x1000) for elf "/opt/bitwig-studio/bitwig-studio" allocated @0x7c2db65000 Error: allocating memory for elf /opt/bitwig-studio/bitwig-studio

I keep running into this error, has this been seen this before? I had a hard time looking for a solution.

xiil34f avatar Mar 05 '22 19:03 xiil34f

It seems box64 cannot alocate the main memory of the binare at the address it must be loaded. Seems 0x200000 is taken by something. Not much box64 can do here, it the mmap command fails.

ptitSeb avatar Mar 05 '22 19:03 ptitSeb

@ptitSeb ah, well it's still a big help to know the solution would be outside of box64 :)

xiil34f avatar Mar 05 '22 19:03 xiil34f

Check with cat /proc/self/maps what the allocated map looks like for cat... Maybe you'll see something.

ptitSeb avatar Mar 05 '22 19:03 ptitSeb

@ptitSeb You're right, 0x200000 is taken. I'm using Termux, so it's being used by proot I believe.

xiil34f@localhost:~$ cat /proc/self/maps 00200000-00201000 r--p 00000000 fd:0a 431237 /data/data/com.termux/files/usr/libexec/proot/loader

xiil34f avatar Mar 05 '22 19:03 xiil34f

Yep, so nothing box64 can do. And I don't know Termux or proot well enough to help, sorry.

ptitSeb avatar Mar 05 '22 20:03 ptitSeb