| View previous topic :: View next topic |
| Author |
Message |
Hoek n00b


Joined: 16 Apr 2003 Posts: 30 Location: Bayreuth, Germany
|
Posted: Tue Jan 29, 2008 1:48 pm Post subject: ldconfig segfaults [SOLVED] |
|
|
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 8:31 am; edited 1 time in total |
|
| Back to top |
|
 |
Hoek n00b


Joined: 16 Apr 2003 Posts: 30 Location: Bayreuth, Germany
|
Posted: Fri Feb 22, 2008 8:30 am Post subject: |
|
|
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 |
|
 |
|
|
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
|
|