Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ldconfig segfaults [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Hoek
n00b
n00b


Joined: 17 Apr 2003
Posts: 35
Location: Bayreuth, Germany

PostPosted: Tue Jan 29, 2008 6:48 pm    Post subject: ldconfig segfaults [SOLVED] Reply with quote

Hey everyone,

recently, my ldconfig started segfaulting.

When i run ldconfig --version, i get this:
Code:

root / | ldconfig --version
ldconfig (GNU libc) 2.6.1
Copyright (C) 2007 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.
Written by Andreas Jaeger.


But when an emerge process ends and tries to invoke "ldconfig -r /", i get
Code:

>>> Regenerating /etc/ld.so.cache...
sh: line 1: 25578 Segmentation fault  /sbin/ldconfig -r '/'


This is my strace -f ldconfig output:

Code:

execve("/sbin/ldconfig", ["ldconfig"], [/* 99 vars */]) = 0
uname({sys="Linux", node="localhost", ...}) = 0
brk(0)                                  = 0x80e2000
brk(0x80e2cb0)                          = 0x80e2cb0
set_thread_area({entry_number:-1 -> 6, base_addr:0x80e2830, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
brk(0x8103cb0)                          = 0x8103cb0
brk(0x8104000)                          = 0x8104000
open("/usr/share/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f95000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f95000, 4096)                = 0
open("/usr/share/locale/de_DE.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de_DE/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/de/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.conf", O_RDONLY)       = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=608, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f95000
read(3, "# ld.so.conf autogenerated by en"..., 4096) = 608
stat64("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=88, ...}) = 0
stat64("//usr//lib/opengl/xorg-x11/lib", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
stat64("/usr/i686-pc-linux-gnu/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib/gcc/i686-pc-linux-gnu/4.1.1", 0xbfefaf94) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/gcc/i686-pc-linux-gnu/4.2.2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib/gcc/i686-pc-linux-gnu/4.2.0", 0xbfefaf94) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/nspr", {st_mode=S_IFDIR|0755, st_size=96, ...}) = 0
stat64("/usr/lib/nss", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib/lesstif-2.1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/opt/blackdown-jdk-1.4.2.03/jre/lib/i686", 0xbfefaf94) = -1 ENOENT (No such file or directory)
stat64("/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/native_threads", 0xbfefaf94) = -1 ENOENT (No such file or directory)
stat64("/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/client", 0xbfefaf94) = -1 ENOENT (No such file or directory)
stat64("/opt/blackdown-jdk-1.4.2.03/jre/lib/i686/server", 0xbfefaf94) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/qt4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/kde/3.5/lib", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
stat64("/usr/qt/3/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/games/lib", 0xbfefaf94)    = -1 ENOENT (No such file or directory)
stat64("/usr/lib/libstdc++-v3", {st_mode=S_IFDIR|0755, st_size=16, ...}) = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7f95000, 4096)                = 0
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=40960, ...}) = 0
open("/var/cache/ldconfig/aux-cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0600, st_size=55309, ...}) = 0
mmap2(NULL, 55309, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f88000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


I already tried to reemerge binutils and glibc, but nothing helped.
My CFLAGS="-march=pentium-m -pipe"
I have no LDFLAGS set (i've had them in the past but disabled them, still it doesn't work)

Any ideas?


Last edited by Hoek on Fri Feb 22, 2008 1:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hoek
n00b
n00b


Joined: 17 Apr 2003
Posts: 35
Location: Bayreuth, Germany

PostPosted: Fri Feb 22, 2008 1:30 pm    Post subject: Reply with quote

Ok. As "renihs" in the #gentoo irc chat room pointed out, i had to remove my
Code:

/var/cache/ldconfig/aux-cache


The file was corrupted due to a system crash.
After removing it and running ldconfig, which didn't segfault this time, the file was rebuilt.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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