[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41234: 27.0.91; Synchronous network requests are failing with “Name
From: |
Dmitry Alexandrov |
Subject: |
bug#41234: 27.0.91; Synchronous network requests are failing with “Name or service not known” |
Date: |
Thu, 02 Jul 2020 23:50:39 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
found 41234 28.0.50
thanks
Dmitry Alexandrov <dag@gnui.org> wrote:
> FWIW, strace suggests, that the problematic Emacs process is trying to
> connect to an outdated nameserver (from a LAN this machine was connected
> once):
> That is, that /etc/resolv.conf had not been reread...
Heh. Emacs is able to lost running nscd(8) and fall back to outdated
nameserver as well:
…
openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 7
lseek(7, 0, SEEK_CUR) = 0
fstat(7, {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
read(7, "127.0.0.1\tlocalhost\n127.0.1.1\tno"..., 4096) = 184
lseek(7, 0, SEEK_CUR) = 184
read(7, "", 4096) = 0
close(7) = 0
socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 7
connect(7, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("192.168.43.245")}, 16) = 0
gettimeofday({tv_sec=1593704775, tv_usec=183050}, NULL) = 0
poll([{fd=7, events=POLLOUT}], 1, 0) = 1 ([{fd=7, revents=POLLOUT}])
sendto(7, "\254o\1\0\0\1\0\0\0\0\0\0\3gnu\3org\0\0\1\0\1", 25,
MSG_NOSIGNAL, NULL, 0) = 25
…
— thatʼs instead of:
…
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 10
connect(10, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110)
= 0
sendto(10, "\2\0\0\0\16\0\0\0\t\0\0\0gnus.org\0", 21, MSG_NOSIGNAL,
NULL, 0) = 21
…
in a freshly started Emacs instance.
Perhaps, I have to try another workaround.
signature.asc
Description: PGP signature
- bug#41234: 27.0.91; Synchronous network requests are failing with “Name or service not known”,
Dmitry Alexandrov <=