LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   grep, ln both segfault (https://www.linuxquestions.org/questions/linux-software-2/grep-ln-both-segfault-303793/)

TexasDex 03-20-2005 02:30 AM

grep, ln both segfault
 
RH8 server I can't explain what causes it. grep, ln, and possibly others exit immediately with a segfault, even with no arguments or the --help argument. I can't think of anything particular that I changed on the machine.


I already tried reinstalling grep from the RPM, and it worked for a few moments, then stopped working. gdb was no help, it didn't make any sense at all. I have no idea how to read an strace, but I included it here if it'll help.



[root@Meg shfs-0.35]# ln
Segmentation fault
[root@Meg shfs-0.35]# strace ln
execve("/bin/ln", ["ln"], [/* 23 vars */]) = 0
uname({sys="Linux", node="Meg", ...}) = 0
brk(0) = 0x804ddef
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=59849, ...}) = 0
old_mmap(NULL, 59849, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000
close(3) = 0
open("/lib/libacl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\24\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0644, st_size=301103, ...}) = 0
old_mmap(NULL, 20916, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40022000
mprotect(0x40027000, 436, PROT_NONE) = 0
old_mmap(0x40027000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5000) = 0x40027000
close(3) = 0
open("/lib/i686/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220Y\1"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1395734, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40028000
old_mmap(0x42000000, 1239844, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x42000000
mprotect(0x42126000, 35620, PROT_NONE) = 0
old_mmap(0x42126000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x126000) = 0x42126000
old_mmap(0x4212b000, 15140, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4212b000
close(3) = 0
open("/lib/libattr.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\n\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0644, st_size=31255, ...}) = 0
old_mmap(NULL, 9952, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40029000
mprotect(0x4002b000, 1760, PROT_NONE) = 0
old_mmap(0x4002b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x4002b000
close(3) = 0
munmap(0x40013000, 59849) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
[root@Meg shfs-0.35]#

jtshaw 03-20-2005 06:46 PM

Have you perhaps updated glibc sometime recently? Just so you know, grep typically links against linux-gate.so.1, libc.so.6, and /lib/ld-linux.so.2.


All times are GMT -5. The time now is 09:49 PM.