Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Segmentation Fault" on running ldconfig [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
niku
n00b
n00b


Joined: 23 Dec 2018
Posts: 38

PostPosted: Fri Jan 04, 2019 12:14 pm    Post subject: "Segmentation Fault" on running ldconfig [Solved] Reply with quote

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/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum