Skip to content
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

[Bug]: exec format error: /libx32/libc.so.6 #269

Closed
4 of 6 tasks
chiragkrishna opened this issue Feb 15, 2024 · 3 comments
Closed
4 of 6 tasks

[Bug]: exec format error: /libx32/libc.so.6 #269

chiragkrishna opened this issue Feb 15, 2024 · 3 comments
Labels
bug Confirmed report of something that isn't working

Comments

@chiragkrishna
Copy link

chiragkrishna commented Feb 15, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

while installing in clean build and when it is checking for glibc version, i get the

/libx32/libc.so.6: cannot execute binary file: Exec format error
glibc version is 
expr: missing operand
Try 'expr --help' for more information.

error is here

LIBC_LIB="$(PATH=/usr/sbin:$PATH ldconfig -p | grep -P "libc.so.6" | head -n 1)"
LIBC_INFO=$(echo ${LIBC_LIB} | awk '{print $NF}')
LIBC_VER=$(echo $(${LIBC_INFO} | awk 'NR==1 {print $NF}') | grep -oP '\d+\.\d+')
echo "glibc version is $LIBC_VER"

changing it to the following works

LIBC_VER=$(ldd --version | awk '/ldd/{print $NF}')
echo "glibc version is $LIBC_VER"

Steps to reproduce the problem

  1. git clone repo
  2. run webui.sh

What should have happened?

should not display the error

/libx32/libc.so.6: cannot execute binary file: Exec format error
glibc version is 
expr: missing operand
Try 'expr --help' for more information.

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

sysinfo-2024-02-15-13-06.json

Console logs

./webui.sh: line 245: /libx32/libc.so.6: cannot execute binary file: Exec format error
glibc version is 
expr: missing operand
Try 'expr --help' for more information.
Check TCMalloc: libtcmalloc_minimal.so.4
(standard_in) 1: syntax error
./webui.sh: line 261: [: -eq: unary operator expected
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4


### Additional information

_No response_
@catboxanon
Copy link
Collaborator

catboxanon commented Feb 15, 2024

Issue should be reported and resolved upstream. Looks to have been caused by the code as part of AUTOMATIC1111/stable-diffusion-webui#14883.

@catboxanon catboxanon added bug Confirmed report of something that isn't working upstream labels Feb 15, 2024
@analysisjp
Copy link
Contributor

Sorry, I've fixed this now, please wait for the merge
-->
AUTOMATIC1111/stable-diffusion-webui#14910

@catboxanon
Copy link
Collaborator

Upstream has been merged with this repo now, so this should be fixed, closing. Feel free to re-open if it still occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed report of something that isn't working
Projects
None yet
Development

No branches or pull requests

3 participants