Merci pour ces infos. (au fait, peux-tu me dire ce que fait le %U ? C'est un paramètre pour oowriter ou pour strace ?)
Grâce à strace (pas "strace openoffice.org -writer" mais bien la commande suivante qui donne bcp plus d'infos 🙂
strace /usr/lib/openoffice.org3/program/swriter.bin %U
j'ai vu qu'il va voir tous les fichiers de config du réseau, notamment
/etc/resolv.conf. Extrait :
open("/home/nicolas/.openoffice.org/3/.lock", O_RDONLY|O_LARGEFILE) = 26
fstat64(26, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
read(26, "", 0) = 0
access("/home/nicolas/.openoffice.org/3/.lock", F_OK) = 0
lstat64("/home/nicolas/.openoffice.org/3/.lock", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
close(26) = 0
uname({sys="Linux", node="Nicolas", ...}) = 0
open("/etc/resolv.conf", O_RDONLY) = 26
fstat64(26, {st_mode=S_IFREG|0644, st_size=276, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb4301000
read(26, "# Generated by NetworkManager\n\n\n"..., 4096) = 276
read(26, "", 4096) = 0
close(26) = 0
munmap(0xb4301000, 4096) = 0
uname({sys="Linux", node="Nicolas", ...}) = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 26
connect(26, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(26) = 0
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 26
connect(26, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(26) = 0
open("/etc/host.conf", O_RDONLY) = 26
fstat64(26, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb4301000
read(26, "multi on\norder hosts,bind\n", 4096) = 26
read(26, "", 4096) = 0
close(26) = 0
munmap(0xb4301000, 4096) = 0
futex(0x6bab24, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 26
fstat64(26, {st_mode=S_IFREG|0644, st_size=138, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb4301000
read(26, "# hostname Nicolas added to /etc"..., 4096) = 138
read(26, "", 4096) = 0
close(26) = 0
munmap(0xb4301000, 4096) = 0
pipe([26, 27]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb68cb738) = 11571
close(27) = 0
read(26, "(none)\n", 511) = 7 <=========================================(none) c'est là ??
close(26) = 0
waitpid(11571, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 11571
--- SIGCHLD (Child exited) @ 0 (0) ---
et un peu plus bas : TIMEOUT avec la fonction 'gettimeofday' :
poll([{fd=27, events=POLLIN}], 1, 5000) = 0 (Timeout)
close(26) = 0
close(27) = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 26
connect(26, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("195.238.2.21")}, 28) = 0
gettimeofday({1268769081, 292112}, NULL) = 0
poll([{fd=26, events=POLLOUT}], 1, 0) = 1 ([{fd=26, revents=POLLOUT}])
send(26, "<\310\1\0\0\1\0\0\0\0\0\0\tlocalhost\6(none)\0\0\1"..., 34, MSG_NOSIGNAL) = 34
poll([{fd=26, events=POLLIN}], 1, 5000) = 0 (Timeout)
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 27
connect(27, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("195.238.2.22")}, 28) = 0
gettimeofday({1268769086, 297891}, NULL) = 0
poll([{fd=27, events=POLLOUT}], 1, 0) = 1 ([{fd=27, revents=POLLOUT}])
send(27, "<\310\1\0\0\1\0\0\0\0\0\0\tlocalhost\6(none)\0\0\1"..., 34, MSG_NOSIGNAL) = 34
<beaucoup plus bas>
gettimeofday({1268769105, 43879}, NULL) = 0
poll([{fd=5, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=5, revents=POLLOUT}])
writev(5, [{"8\0\4\0/\0 \4\0\0\10\0\0\0\0\0C\0\5\0)\0 \4/\0 \4\f\0\f\1"..., 100}, {NULL, 0}, {"", 0}], 3) = 100
read(5, 0x8a779a0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=5, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=5, revents=POLLOUT}])
writev(5, [{"8\0\4\0/\0 \4\0\0\10\0\0\0\0\0C\0\5\0)\0 \4/\0 \4\f\0\f\1"..., 100}, {NULL, 0}, {"", 0}], 3) = 100
Mon resolv.conf :
# Generated by NetworkManager
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 195.238.2.21
nameserver 195.238.2.22 # <= DNS de mon ISP
Si je supprime les lignes "nameserver" (càd : fichier vide) => je n'ai plus le problème !!!!
Bizarre. Mon fichier serait mauvais ?