LINUX.ORG.RU
ФорумAdmin

Segmentation Fault при выполнении date, perl и др.


0

0

RedHat 9. Недавно работала нормально. Поставил туда apache, mysql. Теперь при выполнении команды date выдает Segmentation Fault. Пробовал два ядра. Переставлял винт в другую машину - тоже самое. В чем может быть проблема?

anonymous

strace date и смотри

ivlad ★★★★★
()

имхо файловая система побилась. Рпмом все контрольные суммы проверь и при надобности переустанови.

bugmaker ★★★★☆
()

rpm тоже выдает Segmentation Fault... Кстати, в однопользовательском режиме (linux init=/bin/bash) date отрабатывает нормально. Где грабли? В чем принципиальное отличие однопользовательского и многопользовательского режимов в данном контексте?

anonymous
()

посмотрел strace date. и чего?

[root@111]# strace date execve("/bin/date", ["date"], [/* 25 vars */]) = 0 uname({sys="Linux", node="unlim.unilans.ru", ...}) = 0 brk(0) = 0x8051388 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=36015, ...}) = 0 old_mmap(NULL, 36015, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40017000 close(4) = 0 open("/lib/tls/libpthread.so.0", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320>\0"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0755, st_size=79744, ...}) = 0 old_mmap(NULL, 50040, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40020000 old_mmap(0x4002a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xa000) = 0x4002a000 old_mmap(0x4002b000, 4984, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4002b000 close(4) = 0 open("/lib/librt.so.1", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\33"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0755, st_size=37552, ...}) = 0 old_mmap(NULL, 73720, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4002d000 old_mmap(0x40033000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x5000) = 0x40033000 old_mmap(0x40035000, 40952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40035000 close(4) = 0 open("/lib/tls/libc.so.6", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`V\1B4\0"..., 512) = 512 fstat64(4, {st_mode=S_IFREG|0755, st_size=1531064, ...}) = 0 old_mmap(0x42000000, 1257224, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x42000000 old_mmap(0x4212e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x12e000) = 0x4212e000 old_mmap(0x42131000, 7944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x42131000 close(4) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4003f000 set_thread_area({entry_number:-1 -> 6, base_addr:0x4003f280, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0x40017000, 36015) = 0 set_tid_address(0x4003f2c8 <unfinished ...> +++ killed by SIGSEGV +++

anonymous
()

хм, в локали например. Попробуй "LC_ALL=POSIX date". Возможно у тебя как раз iconv побился.

bugmaker ★★★★☆
()

set_tid_address: что это за функция? Я в своих либах такую не нашол :(. Ты наверное проги/либы после установки дистрибута какие-нибудь из левых источников устанавливал, так?

bugmaker ★★★★☆
()

Не надо было glibc раком ставить. Грузись с первого CD, и откатывай сделанные изменения.

no-dashi ★★★★★
()

на всякий случай, попробуй загрузиться в single-mode и написать ldconfig. Может, поможет чем...

no-dashi ★★★★★
()

Поставил другое ядро - 2.4.21. Вроде рассосалось все. Кстати, в выводе strace больше set_tid_address больше нет. Как такое может быть?

[root@111 ]# strace date execve("/bin/date", ["date"], [/* 23 vars */]) = 0 uname({sys="Linux", node="111.111.111", ...}) = 0 brk(0) = 0x8051388 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 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=36193, ...}) = 0 old_mmap(NULL, 36193, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000 close(3) = 0 open("/lib/libpthread.so.0", 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\300@\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=103104, ...}) = 0 old_mmap(NULL, 335428, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40020000 old_mmap(0x4002f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x4002f000 old_mmap(0x40032000, 261700, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40032000 close(3) = 0 open("/lib/librt.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\220\33"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=37552, ...}) = 0 old_mmap(NULL, 73720, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40072000 old_mmap(0x40078000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5000) = 0x40078000 old_mmap(0x4007a000, 40952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4007a000 close(3) = 0 open("/lib/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\320Y\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1549556, ...}) = 0 old_mmap(NULL, 1281764, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40084000 old_mmap(0x401b7000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x132000) = 0x401b7000 old_mmap(0x401bb000, 7908, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401bb000 close(3) = 0 munmap(0x40017000, 36193) = 0 getrlimit(0x3, 0xbffff72c) = 0 setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0 getpid() = 1079 rt_sigaction(SIGRTMIN, {0x40029050, [], SA_RESTORER, 0x400ac4f8}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x40028f20, [], SA_RESTORER, 0x400ac4f8}, NULL, 8) = 0 rt_sigaction(SIGRT_2, {0x400290f0, [], SA_RESTORER, 0x400ac4f8}, NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0 _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff77c, 3, (nil), 0}) = 0 brk(0) = 0x8051388 brk(0x8052388) = 0x8052388 brk(0) = 0x8052388 brk(0x8053000) = 0x8053000 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=30301680, ...}) = 0 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x401bd000 mmap2(NULL, 208896, PROT_READ, MAP_PRIVATE, 3, 0x139f) = 0x403bd000 [root@unlim root]# strace date execve("/bin/date", ["date"], [/* 23 vars */]) = 0 uname({sys="Linux", node="unlim.unilans.ru", ...}) = 0 brk(0) = 0x8051388 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000 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=36193, ...}) = 0 old_mmap(NULL, 36193, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000 close(3) = 0 open("/lib/libpthread.so.0", 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\300@\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=103104, ...}) = 0 old_mmap(NULL, 335428, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40020000 old_mmap(0x4002f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x4002f000 old_mmap(0x40032000, 261700, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40032000 close(3) = 0 open("/lib/librt.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\220\33"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=37552, ...}) = 0 old_mmap(NULL, 73720, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40072000 old_mmap(0x40078000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5000) = 0x40078000 old_mmap(0x4007a000, 40952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4007a000 close(3) = 0 open("/lib/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\320Y\1"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1549556, ...}) = 0 old_mmap(NULL, 1281764, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40084000 old_mmap(0x401b7000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x132000) = 0x401b7000 old_mmap(0x401bb000, 7908, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401bb000 close(3) = 0 munmap(0x40017000, 36193) = 0 getrlimit(0x3, 0xbffff72c) = 0 setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0 getpid() = 1085 rt_sigaction(SIGRTMIN, {0x40029050, [], SA_RESTORER, 0x400ac4f8}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x40028f20, [], SA_RESTORER, 0x400ac4f8}, NULL, 8) = 0 rt_sigaction(SIGRT_2, {0x400290f0, [], SA_RESTORER, 0x400ac4f8}, NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0 _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff77c, 3, (nil), 0}) = 0 brk(0) = 0x8051388 brk(0x8052388) = 0x8052388 brk(0) = 0x8052388 brk(0x8053000) = 0x8053000 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=30301680, ...}) = 0 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x401bd000 mmap2(NULL, 208896, PROT_READ, MAP_PRIVATE, 3, 0x139f) = 0x403bd000 close(3) = 0 open("/usr/share/locale/locale.alias", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 read(3, "# Locale name alias data base.\n#"..., 4096) = 2601 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40017000, 4096) = 0 open("/usr/share/locale/ru_RU.koi8r/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/ru_RU/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/ru.koi8r/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/ru/LC_MESSAGES/coreutils.mo", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=234270, ...}) = 0 old_mmap(NULL, 234270, PROT_READ, MAP_PRIVATE, 3, 0) = 0x403f0000 close(3) = 0 open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=21040, ...}) = 0 old_mmap(NULL, 21040, PROT_READ, MAP_SHARED, 3, 0) = 0x40017000 close(3) = 0 gettimeofday({1060168425, 313348}, NULL) = 0 open("/etc/localtime", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=815, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000 read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\f\0"..., 4096) = 815 close(3) = 0 munmap(0x4001d000, 4096) = 0 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000 write(1, "\363\322\304 \341\327\307 6 15:13:45 MSD 2003\n", 29Срд Авг 6 15:13:45 MSD 2003 ) = 29 munmap(0x4001d000, 4096) = 0 exit_group(0) = ?

anonymous
()

а хез, имхо это может быть связано с тем, что в РХ9 треды по другому сделаны, не так как в оригинальном ядре.

bugmaker ★★★★☆
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.