You are not logged in.

#1 2025-02-04 12:50:51

rellieberman
Member
Registered: 2018-11-19
Posts: 21

[SOLVED] ldconfig segfaulting after glibc update

ldconfig segfaults on every use after glibc update.
How can I go about fixing this?
Thanks in advance for any help!

Last edited by rellieberman (2025-02-04 13:58:05)

Offline

#2 2025-02-04 13:27:18

rellieberman
Member
Registered: 2018-11-19
Posts: 21

Re: [SOLVED] ldconfig segfaulting after glibc update

When running ldconfig -v I get:

ldconfig: Path `/usr/lib64' given more than once
(from <builtin>:0 and <builtin>:0)
ldconfig: Can't stat /usr/libx32: No such file or directory
/usr/lib/libfakeroot/fakechroot: (from /etc/ld.so.conf.d/fakechroot.conf:1)
    libfakechroot.so -> libfakechroot.so
/usr/lib/libfakeroot: (from /usr/lib/ld.so.conf.d/fakeroot.conf:1)
    libfakeroot-0.so -> libfakeroot.so
/usr/lib: (from <builtin>:0)
Segmentation fault (core dumped)

Last edited by rellieberman (2025-02-04 13:29:06)

Offline

#3 2025-02-04 13:29:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,364

Re: [SOLVED] ldconfig segfaulting after glibc update

Offline

#4 2025-02-04 13:38:39

rellieberman
Member
Registered: 2018-11-19
Posts: 21

Re: [SOLVED] ldconfig segfaulting after glibc update

(gdb) bt
#0  process_elf64_file (
    file_name=file_name@entry=0x5555685882b0 "/usr/lib/libgo.so.23",
    lib=<optimized out>, flag=flag@entry=0x7fff8cb177e0,
    isa_level=0x7fff8cb177e4, soname=<optimized out>,
    file_contents=<optimized out>, file_length=8388608)
    at ../elf/readelflib.c:129
#1  0x0000739baa90bee4 in process_elf_file (
    file_name=file_name@entry=0x5555685882b0 "/usr/lib/libgo.so.23",
    lib=lib@entry=0x555568572e2b "libgo.so.23",
    flag=flag@entry=0x7fff8cb177e0, isa_level=isa_level@entry=0x7fff8cb177e4,
    soname=soname@entry=0x7fff8cb177f8,
    file_contents=file_contents@entry=0x739ba9e00000, file_length=8388608)
    at ../sysdeps/x86/readelflib.c:58
#2  0x0000739baa90c3bd in process_file (
    real_file_name=real_file_name@entry=0x5555685882d0 "/usr/lib/libgo.so.23",
    file_name=0x5555685882b0 "/usr/lib/libgo.so.23",
    lib=lib@entry=0x555568572e2b "libgo.so.23",
    flag=flag@entry=0x7fff8cb177e0, isa_level=isa_level@entry=0x7fff8cb177e4,
    soname=soname@entry=0x7fff8cb177f8, is_link=1, stat_buf=0x7fff8cb17800)
    at readlib.c:159
#3  0x0000739baa908630 in search_dir (entry=entry@entry=0x555568552e60)
    at ldconfig.c:837
#4  0x0000739baa906668 in search_dirs () at ldconfig.c:1008

Offline

#5 2025-02-04 13:49:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,364

Re: [SOLVED] ldconfig segfaulting after glibc update

So it appears to be happening when trying to read libgo. It shouldn't segfault no matter what, but there's no problem here and no other reports of this, I wonder if your lib is corrupt somehow? Reinstall gcc-libs (making sure it's up to date, of course).

Offline

#6 2025-02-04 13:57:17

rellieberman
Member
Registered: 2018-11-19
Posts: 21

Re: [SOLVED] ldconfig segfaulting after glibc update

Thank you very much,
Indeed had some corrupt packages,
did some reinstalling and now everything seems to work
smile

Offline

Board footer

Powered by FluxBB