os programas ficam suspensos devido ao tempo limite de / etc / localtime

0

No meu servidor, de repente a maioria dos programas parou de funcionar (eles simplesmente param). Por exemplo, o comandante da meia-noite. Quando eu depurar mc com strace, vejo que trava stat("/etc/localtime")

Quando tento cat /etc/localtime , ele é interrompido indefinidamente. Alguém pode ajudar por favor?

A seguir, a saída de strace cat /etc/localtime

execve("/bin/cat", ["cat", "/etc/localtime"], [/* 29 vars */]) = 0
brk(0)                                  = 0x2530000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd02fe08000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=21338, ...}) = 0
mmap(NULL, 21338, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd02fe02000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
read(3, "7ELF
execve("/bin/cat", ["cat", "/etc/localtime"], [/* 29 vars */]) = 0
brk(0)                                  = 0x2530000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd02fe08000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=21338, ...}) = 0
mmap(NULL, 21338, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd02fe02000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
read(3, "7ELF%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%>%pre%%pre%%pre%%pre%07%pre%%pre%%pre%%pre%%pre%"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1595408, ...}) = 0
mmap(NULL, 3709016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd02f861000
mprotect(0x7fd02f9e1000, 2097152, PROT_NONE) = 0
mmap(0x7fd02fbe1000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x180000) = 0x7fd02fbe1000
mmap(0x7fd02fbe6000, 18520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd02fbe6000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd02fe01000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd02fe00000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd02fdff000
arch_prctl(ARCH_SET_FS, 0x7fd02fe00700) = 0
mprotect(0x7fd02fbe1000, 16384, PROT_READ) = 0
mprotect(0x60b000, 4096, PROT_READ)     = 0
mprotect(0x7fd02fe0a000, 4096, PROT_READ) = 0
munmap(0x7fd02fe02000, 21338)           = 0
brk(0)                                  = 0x2530000
brk(0x2551000)                          = 0x2551000
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1534672, ...}) = 0
mmap(NULL, 1534672, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd02fc88000
close(3)                                = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0
fadvise64(3, 0, 0, POSIX_FADV_SEQUENTIAL) = 0
read(3, "TZif2%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%"..., 32768) = 1892
write(1, "TZif2%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%"..., 1892
%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%>%pre%%pre%%pre%%pre%07%pre%%pre%%pre%%pre%%pre%"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1595408, ...}) = 0 mmap(NULL, 3709016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd02f861000 mprotect(0x7fd02f9e1000, 2097152, PROT_NONE) = 0 mmap(0x7fd02fbe1000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x180000) = 0x7fd02fbe1000 mmap(0x7fd02fbe6000, 18520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd02fbe6000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd02fe01000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd02fe00000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd02fdff000 arch_prctl(ARCH_SET_FS, 0x7fd02fe00700) = 0 mprotect(0x7fd02fbe1000, 16384, PROT_READ) = 0 mprotect(0x60b000, 4096, PROT_READ) = 0 mprotect(0x7fd02fe0a000, 4096, PROT_READ) = 0 munmap(0x7fd02fe02000, 21338) = 0 brk(0) = 0x2530000 brk(0x2551000) = 0x2551000 open("/usr/lib/locale/locale-archive", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=1534672, ...}) = 0 mmap(NULL, 1534672, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd02fc88000 close(3) = 0 fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0 open("/etc/localtime", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=1892, ...}) = 0 fadvise64(3, 0, 0, POSIX_FADV_SEQUENTIAL) = 0 read(3, "TZif2%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%"..., 32768) = 1892 write(1, "TZif2%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%"..., 1892
    
por user1968963 05.07.2013 / 12:48

1 resposta

1

Isso parece com corrupção de memória ou disco. Verifique os registros do sistema (por exemplo, /var/log/kern.log ) para ver se alguma corrupção de disco é mencionada.

Se você vir sinais de corrupção de disco ou não, execute uma verificação de memória. O Memtest86 + está incluído em muitas suítes de diagnósticos, ou você pode baixar uma imagem inicializável ; também é instalado por padrão no Ubuntu (selecione-o no menu de inicialização). Deixe correr pelo menos um passe completo - você pode deixá-lo durante a noite. Se encontrar um erro, substitua o módulo de RAM ruim imediatamente.

    
por 10.07.2013 / 15:42

Tags