GNU bug report logs -
#41234
27.0.91; Synchronous network requests are failing with “Name or service not known”
Previous Next
Reported by: Dmitry Alexandrov <dag <at> gnui.org>
Date: Wed, 13 May 2020 15:01:02 UTC
Severity: normal
Merged with 40748
Found in versions 27.0.91, 28.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
found 41234 28.0.50
thanks
Dmitry Alexandrov <dag <at> 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 (application/pgp-signature, inline)]
This bug report was last modified 3 years and 151 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.