pb avec thot

Frederic.Raimbault + iup.gis.labo (Frederic.Raimbault@iu-vannes.fr)
Wed, 14 Feb 1996 15:37:46 +0100

bonjour,
je viens d'installer thot-ELF sur mon systeme Linux.
Il plante des le debut ; voici ce que j'obtiens :
______________________________________________________________________________
[ideefix:~/tmp] > Thot 0.95 (c) INRIA-CNRS 1-18-96
*** Thot: Irrecoverable error ***modified documents, if any, will be saved on .S
AV files
------------------------------------------------------------------------------
alors pour essayer de comprendre ce qui se passe j'ai utilise la commande
strace -f -o trace thot
ca me donne ca
------------------------------------------------------------------------------
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x5000600
0
mprotect(0x8000000, 278172, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
getuid() = 501
geteuid() = 501
getgid() = 100
getegid() = 100
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=3298, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
mmap(0, 3298, PROT_READ, MAP_SHARED, 4, 0) = 0x50007000
close(4) = 0
open("/lib/libtermcap.so.2.0.0", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 16384, PROT_NONE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x50008000
mmap(0x50008000, 7990, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0x500
08000
mmap(0x5000a000, 4208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x1000) =
0x5000a000
close(4) = 0
mprotect(0x50008000, 7990, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open("/lib/libc.so.5.2.18", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 708608, PROT_NONE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x5000c000
mmap(0x5000c000, 479678, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED,
4, 0) = 0x5000c000
mmap(0x50082000, 18776, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x75000)
= 0x50082000
mmap(0x50087000, 203456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|0x20, 42949
67295, 0) = 0x50087000
close(4) = 0
munmap(0x50007000, 3298) = 0
mprotect(0x8000000, 278172, PROT_READ|PROT_EXEC) = 0
mprotect(0x50008000, 7990, PROT_READ|PROT_EXEC) = 0
SYS_136(0, 0x2, 0x8, 0x50001fb0, 0x8001cd8) = 0
brk(0) = 0x804b000
getuid() = 501
getgid() = 100
geteuid() = 501
getegid() = 100
brk(0x804e000) = 0x804e000
brk(0x804f000) = 0x804f000
time(NULL) = 824307212
brk(0x8050000) = 0x8050000
sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}) = 0
sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}) = 0
sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}) = 0
sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}) = 0
sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}) = 0
sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}) = 0
sigaction(SIGHUP, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2 P
IPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGINT, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2 P
IPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGILL, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2 P
IPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGTRAP, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGABRT, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGFPE, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2 P
IPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGUNUSED, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR
2 PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGSEGV, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGPIPE, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGALRM, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGTERM, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGXCPU, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGXFSZ, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGVTALRM, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR
2 PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGPROF, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGUSR1, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigaction(SIGUSR2, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED FPE USR1 SEGV USR2
PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}, {SIG_DFL}) = 0
sigprocmask(SIG_BLOCK, NULL, []) = 0
sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}) = 0
brk(0x8051000) = 0x8051000
brk(0x8052000) = 0x8052000
open("/etc/passwd", O_RDONLY) = 4
brk(0x8053000) = 0x8053000
fstat(4, {st_mode=S_IFREG|0644, st_size=700, ...}) = 0
brk(0x8054000) = 0x8054000
read(4, "root:uvDRFfvwXYl.o:0:0:root:/roo"..., 1024) = 700
brk(0x8055000) = 0x8055000
close(4) = 0
uname({sys="Linux", node="ideefix", ...}) = 0
brk(0x8056000) = 0x8056000
brk(0x8057000) = 0x8057000
stat("/home/raimbaul/tmp", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
getpid() = 6902
getppid() = 6901
stat(".", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat("./sh", 0xbffffaf8) = -1 ENOENT (No such file or directory)
stat("/usr/bin/X11/sh", 0xbffffaf8) = -1 ENOENT (No such file or directory)
stat("/usr/openwin/bin/sh", 0xbffffaf8) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/sh", 0xbffffaf8) = -1 ENOENT (No such file or directory)
stat("/bin/sh", {st_mode=S_IFREG|0755, st_size=299649, ...}) = 0
getgroups(64, [100]) = 1
brk(0x8058000) = 0x8058000
getpgrp() = 6901
fcntl(-1, F_SETFD, FD_CLOEXEC) = -1 EBADF (Bad file number)
sigaction(SIGCHLD, {0x8013dc0, [], 0}, {SIG_DFL}) = 0
open("/usr/local/bin/thot", O_RDONLY) = 4
lseek(4, 0, SEEK_CUR) = 0
read(4, "#!/bin/sh\n\nLANG=en_US\n# LANG="..., 80) = 80
lseek(4, 0, SEEK_SET) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fcntl(4, F_GETFL) = 0 (flags O_RDONLY)
fstat(4, {st_mode=S_IFREG|0755, st_size=947, ...}) = 0
lseek(4, 0, SEEK_CUR) = 0
read(4, "#!/bin/sh\n\nLANG=en_US\n# LANG="..., 947) = 947
pipe([5, 6]) = 0
sigprocmask(SIG_BLOCK, [INT CHLD], []) = 0
lseek(4, -668, SEEK_CUR) = 279
fork() = 6903
sigprocmask(SIG_SETMASK, [], NULL) = 0
sigaction(SIGCHLD, {0x8013dc0, [], 0}, {0x8013dc0, [CHLD], 0}) = 0
fcntl(5, F_GETFL) = 0 (flags O_RDONLY)
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
brk(0x8059000) = 0x8059000
lseek(5, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
close(6) = 0
read(5, "LINUX-ELF\n", 128) = 10
read(5, "", 128) = 0
--- SIGCHLD (Child exited) ---
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG|WUNTRACED, NULL) = 6903
wait4(-1, 0xbffff92c, WNOHANG|WUNTRACED, NULL) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(5) = 0
close(5) = -1 EBADF (Bad file number)
sigprocmask(SIG_BLOCK, [CHLD], []) = 0
sigaction(SIGINT, {0x8013340, [], 0}, {0x8003590, [HUP INT ILL TRAP ABRT UNUSED
FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}) = 0
sigprocmask(SIG_SETMASK, [], NULL) = 0
sigaction(SIGINT, {0x8003590, [], 0}, {0x8013340, [INT], 0}) = 0
read(4, "\n#pour definir THOTFONT\nif [ \""..., 947) = 668
pipe([5, 6]) = 0
sigprocmask(SIG_BLOCK, [INT CHLD], []) = 0
lseek(4, -221, SEEK_CUR) = 726
fork() = 6910
sigprocmask(SIG_SETMASK, [], NULL) = 0
sigaction(SIGCHLD, {0x8013dc0, [], 0}, {0x8013dc0, [CHLD], 0}) = 0
fcntl(5, F_GETFL) = 0 (flags O_RDONLY)
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
lseek(5, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
close(6) = 0
read(5, "/home/raimbaul/tmp\n", 128) = 19
read(5, "", 128) = 0
--- SIGCHLD (Child exited) ---
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], WNOHANG|WUNTRACED, NULL) = 6910
wait4(-1, 0xbffff8b0, WNOHANG|WUNTRACED, NULL) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
close(5) = 0
close(5) = -1 EBADF (Bad file number)
sigprocmask(SIG_BLOCK, [CHLD], []) = 0
sigaction(SIGINT, {0x8013340, [], 0}, {0x8003590, [INT], 0}) = 0
sigprocmask(SIG_SETMASK, [], NULL) = 0
sigaction(SIGINT, {0x8003590, [], 0}, {0x8013340, [INT], 0}) = 0
read(4, "THOTPRINTER=lps20;\t\t\t\texport"..., 947) = 221
open("/dev/null", O_RDONLY) = 5
fcntl(0, F_GETFD) = 0
fcntl(0, F_DUPFD, 10) = 10
fcntl(0, F_GETFD) = 0
fcntl(10, F_SETFD, FD_CLOEXEC) = 0
dup2(5, 0) = 0
close(5) = 0
sigprocmask(SIG_BLOCK, [INT CHLD], []) = 0
fork() = 6911
sigprocmask(SIG_SETMASK, [], NULL) = 0
sigprocmask(SIG_BLOCK, [CHLD], []) = 0
sigprocmask(SIG_BLOCK, [CHLD], [CHLD]) = 0
sigprocmask(SIG_SETMASK, [CHLD], NULL) = 0
sigprocmask(SIG_BLOCK, [CHLD], [CHLD]) = 0
sigprocmask(SIG_SETMASK, [CHLD], NULL) = 0
sigprocmask(SIG_BLOCK, [CHLD], [CHLD]) = 0
sigprocmask(SIG_SETMASK, [CHLD], NULL) = 0
sigprocmask(SIG_SETMASK, [], NULL) = 0
dup2(10, 0) = 0
fcntl(10, F_GETFD) = 0x1 (flags FD_CLOEXEC)
close(10) = 0
sigprocmask(SIG_BLOCK, [CHLD], []) = 0
sigprocmask(SIG_SETMASK, [], NULL) = 0
read(4, "", 947) = 0
_exit(0) = ?
------------------------------------------------------------------------------
j'ai aussi 11 fichiers correspondant aux traces des processus 6903 a 6013 ...
mais je ne vois toujours pas d'ou` vient le pb. Est ce que ca peut venir
de locale ?

Pouvez vous m'aider ?

Merci
Fred

PS :
J'ai la version 1.2.13 du noyau linux, compile avec ELF
5.2.18 de libc
5.0.5 de libm
1.7.14 de ld.so