indigo-dc / udocker

A basic user tool to execute simple docker containers in batch or interactive systems without root privileges.
https://indigo-dc.github.io/udocker/
Apache License 2.0
1.35k stars 132 forks source link

`GLIBC_2.33' not found .required by ***/libfakechroot-Debian-11-x86_64.so #384

Open RadFromOrange opened 1 year ago

RadFromOrange commented 1 year ago

After solving glibc issue by adding lib.c.so to libpath , i get segmentation fault issue .After some research ,even if i saw that you've made an improved fakechroot with some elfpatcher and env settings ,found that this is a limitation of fakechroot itself :

https://github.com/dex4er/fakechroot/blob/master/man/fakechroot.pod#limitations

https://github.com/dex4er/fakechroot/issues/22

may be i am missing something...

Thx,

RadFromOrange commented 1 year ago

Hi,

I am runing udocker in a ubuntu container in a codespace environment using Fakechroot mode.

i am trying to run debian container but i have a glibc compatibility issue :

GLIBC_2.33' not found (required by /home/codespace/.udocker/lib/libfakechroot-Debian-11-x86_64.so)

Is this a non sense to try to make work or this is possible with some elfpatcher and LD_LIBRARY settings ?

Thanx,

@RadFromOrange ➜ ~/.udocker $ udocker run debian

Info: using config file: /home/codespace/.udocker/udocker.conf

##############################################################################

           STARTING 069ab32e-b44e-3f8a-b8cf-824a274f7e48              

############################################################################## executing: bash /home/codespace/.udocker/containers/069ab32e-b44e-3f8a-b8cf-824a274f7e48/ROOT//bin/bash: /home/codespace/.udocker/containers/069ab32e-b44e-3f8a-b8cf-824a274f7e48/ROOT//lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/codespace/.udocker/lib/libfakechroot-Debian-11-x86_64.so)

@RadFromOrange ➜ ~/.udocker $ /lib/x86_64-linux-gnu/libc.so.6

GNU C Library (Ubuntu GLIBC 2.31-0ubuntu9.9) stable release version 2.31. Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 9.4.0. libc ABIs: UNIQUE IFUNC ABSOLUTE For bug reporting instructions, please see: https://bugs.launchpad.net/ubuntu/+source/glibc/+bugs.

jorge-lip commented 7 months ago

udocker uses a modified libfakechroot library. The library must be compiled against the libc of the container. Possibly the version of udocker used here didn't had the right version of the libfakechroot library. Since libfakechroot libraries for Fn modes have to be compiled for each release of a given distribution, the support for this execution mode is always behind and takes some time to to be included in udocker. Also notice that only a few distributions are supported. Recent versions of udocker should have the correct library for Debian 11. Also notice that depending on the application this may also happen when using modes other than F3 or F4.