-
-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relocation type "0x2a" error running bash. Unable to run bash in nixOS #968
Comments
Yeshey
changed the title
Relocation type "0x2a" error in newer bash. Unable to run bash in nixOS
Relocation type "0x2a" error running bash. Unable to run bash in nixOS
Jun 10, 2024
> BOX86_DLSYM_ERROR=1 BOX86_LOG=1 BOX86_PREFER_EMULATED=1 BOX86_DYNAREC=0 BOX86_SHOWSEGV=1 BOX86_SHOWBT=1 box86 /nix/store/9cf3kcqal0v4sj78kmfkdkplpifs1piv-bash-5.1-p16/bin/sh /nix/store/p2fman5q3b9xdy13yy829p5pmggdiflg-steam/bin/steam
Debug level is 1
Dynarec is off
Shows details of dlopen / dlsym /dlclose : Yes
Show Segfault signal even if a signal handler is present
Show Backtrace for signals
Running on Neoverse-N1 with 4 Cores
Box86 with Dynarec v0.3.6 nogit built on Jan 1 1980 00:00:00
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
BOX86: Prefer Emulated libs
Counted 108 Env var
Looking for /nix/store/9cf3kcqal0v4sj78kmfkdkplpifs1piv-bash-5.1-p16/bin/sh
argv[1]="/nix/store/p2fman5q3b9xdy13yy829p5pmggdiflg-steam/bin/steam"
Rename process to "bash"
Redirecting overridden malloc function for /nix/store/9cf3kcqal0v4sj78kmfkdkplpifs1piv-bash-5.1-p16/bin/bash
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using emulated /nix/store/0wr8hawrkjxp9bygcdisdg4kj2irqqyb-glibc-2.35-163/lib/ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libbsd.so.0
Warning, don't know of to handle rel #145 type: 0x2a (unknown) (0x60036b18) for
malloc: subst.c:4744: assertion botched
free: called with unallocated block argument
Aborting...[1] 3350035 abort (core dumped) BOX86_DLSYM_ERROR=1 BOX86_LOG=1 BOX86_PREFER_EMULATED=1 BOX86_DYNAREC=0 =1 =1 without BOX86_DLSYM_ERROR=1 BOX86_LOG=1 BOX86_DYNAREC=0 BOX86_SHOWSEGV=1 BOX86_SHOWBT=1 box86 /nix/store/9cf3kcqal0v4sj78kmfkdkplpifs1piv-bash-5.1-p16/bin/sh /nix/store/p2fman5q3b9xdy13yy829p5pmggdiflg-steam/bin/steam
Debug level is 1
Dynarec is off
Shows details of dlopen / dlsym /dlclose : Yes
Show Segfault signal even if a signal handler is present
Show Backtrace for signals
Running on Neoverse-N1 with 4 Cores
Box86 with Dynarec v0.3.6 nogit built on Jan 1 1980 00:00:00
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/:i686/
Using default BOX86_PATH: ./:bin/
Counted 108 Env var
Looking for /nix/store/9cf3kcqal0v4sj78kmfkdkplpifs1piv-bash-5.1-p16/bin/sh
argv[1]="/nix/store/p2fman5q3b9xdy13yy829p5pmggdiflg-steam/bin/steam"
Rename process to "bash"
Redirecting overridden malloc function for /nix/store/9cf3kcqal0v4sj78kmfkdkplpifs1piv-bash-5.1-p16/bin/bash
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libbsd.so.0
malloc: subst.c:4744: assertion botched
free: called with unallocated block argument
Aborting...[1] 3350342 abort (core dumped) BOX86_DLSYM_ERROR=1 BOX86_LOG=1 BOX86_DYNAREC=0 BOX86_SHOWSEGV=1 BOX86_SHOWBT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to test the box86 package for nixOS.
I have a
aarch64
machine and ax86_64
PC. I'm using myx86_64
PC to build binaries and sending them to theaarch64
serverUsing the debug commands from this issue I'm getting the following:
I verified that the version of bash included in the box86 repo is
GNU bash, version 5.1.16(1)-release (i686-pc-linux-gnu) Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
With the help of this site to view nix package versions, I tried to run with that bash version as well, but the result seems to be comparable:
also tried different versions of the bash required libraries
ncurses
andglibc
, using a glibc version older than2.39-5
gives me segmentation fault, and older than2.38
tells me `GLIBC_2.38' is missing, it might be that I'm missing some library for bash as well..? As I'm in a aarch64 system and am not using a chrootThe text was updated successfully, but these errors were encountered: