[AC] Segentation fault - ldconfig

Michał Wiśniewski mwisniew w wst-e.edu.pl
Pon, 23 Lut 2004, 00:50:49 CET


Użytkownik Adam Gołębiowski napisał:

>On Thu, Feb 19, 2004 at 02:38:20AM +0100, Michał Wiśniewski wrote:
>  
>
>>Jakies wskazowki, dobre rady?
>>    
>>
>
>Może strace ?
>
>  
>
Witam,

W sumie Segmentation fault juz nie wystepuje.  Zapomnialem o czyms 
podstawowym. Chyba o glibc-u. Jednak dalej nie wiem co sie dzieje z 
ldconfig. Jezeli zrobie tak:

#ldconfig -n  /usr/lib

Wszystko przechodzi bez problemow. Ale jezeli ma korzystac z  ld.so.conf 
mam komunikat:

Can't open configuration file /etc/ld.so.conf: Invalid Argument.

Log ze strace:

execve("/sbin/ldconfig", ["ldconfig"], [/* 17 vars */]) = 0
uname({sys="Linux", node="pldmachine", ...}) = 0
brk(0)                                  = 0x80c8118
brk(0x80e9118)                          = 0x80e9118
brk(0x80ea000)                          = 0x80ea000
brk(0x80e9000)                          = 0x80e9000
write(2, "ldconfig: ", 10)              = 10
write(2, "Can\'t open configuration file /e"..., 45) = 45
write(2, ": Invalid argument", 18)      = 18
write(2, "\n", 1)                       = 1
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=32768, ...}) = 0
open("/lib", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 100 entries */, 4096)  = 3728
lstat64("/lib/ld-2.3.3.so", {st_mode=S_IFREG|0755, st_size=91058, ...}) = 0
open("/lib/ld-2.3.3.so", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=91058, ...}) = 0
mmap2(NULL, 91058, PROT_READ, MAP_SHARED, 4, 0) = 0x46c51000
munmap(0x46c51000, 91058)               = 0
close(4)                                = 0
lstat64("/lib/librpm-4.3.so", {st_mode=S_IFREG|0755, st_size=314544, 
...}) = 0
open("/lib/librpm-4.3.so", O_RDONLY)    = 4
fstat64(4, {st_mode=S_IFREG|0755, st_size=314544, ...}) = 0
mmap2(NULL, 314544, PROT_READ, MAP_SHARED, 4, 0) = 0x46c51000
munmap(0x46c51000, 314544)              = 0
close(4)      

[CIACH]  przetwarza wszystkie biblioteki z /lib i /usr/lib ...

stat64("/usr/lib/libcrack.so.2.7", {st_mode=S_IFREG|0755, st_size=27480, 
...}) = 0
stat64("/usr/lib/libglib-1.2.so.0", {st_mode=S_IFREG|0755, 
st_size=142768, ...}) = 0
stat64("/usr/lib/libglib-1.2.so.0.0.10", {st_mode=S_IFREG|0755, 
st_size=142768, ...}) = 0
unlink("/etc/ld.so.cache~")             = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache~", O_WRONLY|O_CREAT|O_TRUNC|O_NOFOLLOW, 0644) = 3
write(3, "ld.so-1.7.0\0\326\1\0\0\3\0\0\0@,\0\0J,\0\0\3\0\0\0"..., 5656) 
= 5656
write(3, "", 0)                         = 0
write(3, "glibc-ld.so.cache1.1\326\1\0\0\300L\0\0\0\0\0\0"..., 11328) = 
11328
write(3, "libz.so.1\0/lib/libz.so.1\0libz.so"..., 19648) = 19648
close(3)                                = 0
chmod("/etc/ld.so.cache~", 0644)        = 0
rename("/etc/ld.so.cache~", "/etc/ld.so.cache") = 0
exit_group(0)                           = ?


ld.so.conf bez zmian:

/usr/X11R6/lib
/usr/local/lib


Moze widzisz gdzie jest blad?

Pozdrawiam,

Michal



Więcej informacji o liście dyskusyjnej pld-users-pl