niku n00b
Joined: 23 Dec 2018 Posts: 38
|
Posted: Fri Jan 04, 2019 12:14 pm Post subject: "Segmentation Fault" on running ldconfig [Solved] |
|
|
On running Code: | /sbin/ldconfig -X -r '/' | (this happens at the end of every emerge) I got a "Segmentation Fault" error.
I looked through the strace, and found it failed right after reading a cache file: /var/cache/ldconfig/aux-cache. (No idea what it does.) I renamed the file, and ran the above command again, and it works fine now! (Also, the file aux-cache got recreated.)
strace extract:
Code: | execve("/sbin/ldconfig", ["/sbin/ldconfig", "-X", "-r", "/"], 0x7ffcb2710cc8 /* 35 vars */) = 0
...
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=69632, ...}) = 0
stat("/usr/lib64", {st_mode=S_IFDIR|0755, st_size=69632, ...}) = 0
stat("/usr/libx32", 0x7fff586ed340) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/cache/ldconfig/aux-cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0600, st_size=29556, ...}) = 0
mmap(NULL, 29556, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fa67595a000
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7fa69fb6154a} ---
+++ killed by SIGSEGV +++ |
Full strace: https://paste.pound-python.org/show/6YJoR4peq9JodN1wBTs5/ |
|