mc и segmentation falut
Тут собрал свежую систему, но после того как всё поставил заметил, что не работает mc под root'ом. Т.е. когда запускаю его из рута то получаю segmentation falut. Сделав strace, увидел такое:
waitpid(23735, [{WIFEXITED(s) && WEXITSTATUS(s) == 3}], 0) = 23735
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbff50538) = -1 ENOTTY (Inappropriate ioctl for device)
open("/usr/lib/charset.alias", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/gconv/KOI8-R.so", 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\0p\3\0\0004\0\0\0"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=9404, ...}) = 0
mmap2(NULL, 12316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7a1c000
mmap2(0xb7a1e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1) = 0xb7a1e000
close(4) = 0
mprotect(0xb7a1e000, 4096, PROT_READ) = 0
write(2, "Cannot get terminal settings: \356\305"..., 76Cannot get terminal settings: Неприменимый к данному устройству ioctl (25)
) = 76
rt_sigaction(SIGCHLD, {0x8076008, [], SA_RESTART}, NULL, 8) = 0
stat64("/root/.mc", {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0
rt_sigaction(SIGTSTP, NULL, {SIG_DFL}, 8) = 0
access("/root/.mc/ini", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/mc/mc.ini", R_OK) = -1 ENOENT (No such file or directory)
open("/root/.mc/ini", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/mc/mc.charsets", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=213, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7a64000
read(4, "ASCII\t\t7-bit ASCII\nISO-8859-1\tIS"..., 4096) = 213
read(4, "", 4096) = 0
_llseek(4, 0, [0], SEEK_SET) = 0
read(4, "ASCII\t\t7-bit ASCII\nISO-8859-1\tIS"..., 4096) = 213
read(4, "", 4096) = 0
close(4) = 0
munmap(0xb7a64000, 4096) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbff4f408) = -1 ENOTTY (Inappropriate ioctl for device)
stat64("/root/.terminfo", 0xbff4f3e4) = -1 ENOENT (No such file or directory)
stat64("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=216, ...}) = 0
access("/etc/terminfo/x/xterm", R_OK) = 0
open("/etc/terminfo/x/xterm", O_RDONLY|O_LARGEFILE) = 4
read(4, "\32\0010\0&\0\17\0\235\1F\5xterm|xterm terminal"..., 4097) = 2522
close(4) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbff4f408) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbff4f3c8) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbff503e8) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbff503e8) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbff50438) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, SNDCTL_TMR_STOP or TCSETSW, {B0 -opost isig -icanon -echo ...}) = -1 ENOTTY (Inappropriate ioctl for device)
rt_sigaction(SIGTSTP, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTSTP, {0xb7e0f560, [], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0xb7e0f450, [], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0xb7e0f450, [], SA_RESTART}, NULL, 8) = 0
rt_sigaction(SIGWINCH, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGWINCH, {0xb7e0f420, [], 0}, NULL, 8) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbff504d8) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(2, SNDCTL_TMR_STOP or TCSETSW, {B0 -opost -isig -icanon -echo ...}) = -1 ENOTTY (Inappropriate ioctl for device)
write(1, "\33[?1049h\33[1;24r\33(B\33[m\33[4l\33[?7h\33["..., 37[?1049h[1;24r(B[m[4l[?7h[?1h=) = 37
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Если запускать из под обычного пользователя, то всё пучком.
Обычный вопрос, что делать?!
Заранее спасибо!!!
- Для комментирования войдите или зарегистрируйтесь
Очистить /root/.mc/
Очистить /root/.mc/ пробовал?
Да пробывал,
Да пробывал, кстати сейчас и под обычным пользователем такая же дрянь, под ним то же удалял .mc.
Вот ещё в dmesg
# dmesg | tail
....
mc[29499]: segfault at 4d5b1b ip b7db5c85 sp bf90454c error 4 in libc-2.8.so[b7d39000+163000]
mc[29510]: segfault at 4d5b2b ip b7cd3d12 sp bfc78340 error 4 in libc-2.8.so[b7cad000+163000]
Хм, ща создал нового юзера, под ним mc работает....интересно до каких пор будет работать....