From: Dmitry Alexandrov <dag@gnui.org>
To: 41234@debbugs.gnu.org
Subject: bug#41234: 27.0.91; Synchronous network requests are failing with “Name or service not known”
Date: Fri, 15 May 2020 16:05:01 +0300 [thread overview]
Message-ID: <7dxdbb7m.dag@gnui.org> (raw)
In-Reply-To: <1rnogg6b.dag@gnui.org> (Dmitry Alexandrov's message of "Wed, 13 May 2020 15:42:04 +0300")
[-- Attachment #1: Type: text/plain, Size: 2333 bytes --]
FWIW, strace suggests, that the problematic Emacs process is trying to connect to an outdated nameserver (from a LAN this machine was connected once):
…
openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 12
lseek(12, 0, SEEK_CUR) = 0
fstat(12, {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
read(12, "127.0.0.1\tlocalhost\n127.0.1.1\tno"..., 4096) = 184
lseek(12, 0, SEEK_CUR) = 184
read(12, "", 4096) = 0
close(12) = 0
socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 12
connect(12, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.1")}, 16) = 0
gettimeofday({tv_sec=1589546464, tv_usec=72520}, NULL) = 0
poll([{fd=12, events=POLLOUT}], 1, 0) = 1 ([{fd=12, revents=POLLOUT}])
sendto(12, "`\t\1\0\0\1\0\0\0\0\0\0\3gnu\3org\0\0\1\0\1", 25, MSG_NOSIGNAL, NULL, 0) = 25
…
That is, that /etc/resolv.conf had not been reread (there is nothing about it in the skipped output above), while the instance that is working fine do check whether /etc/resolv.conf is updated:
…
stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 11
lseek(11, 0, SEEK_CUR) = 0
fstat(11, {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
read(11, "127.0.0.1\tlocalhost\n127.0.1.1\tno"..., 4096) = 184
lseek(11, 0, SEEK_CUR) = 184
read(11, "", 4096) = 0
close(11) = 0
socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.43.223")}, 16) = 0
gettimeofday({tv_sec=1589546877, tv_usec=860209}, NULL) = 0
poll([{fd=11, events=POLLOUT}], 1, 0) = 1 ([{fd=11, revents=POLLOUT}])
sendmmsg(11, [{msg_hdr={msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\314\255\1\0\0\1\0\0\0\0\0\0\3gnu\3org\0\0\1\0\1", iov_len=25}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, msg_len=25}, {msg_hdr={msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\10\270\1\0\0\1\0\0\0\0\0\0\3gnu\3org\0\0\34\0\1", iov_len=25}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, msg_len=25}], 2, MSG_NOSIGNAL) = 2
…
How should I interpret this?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
next prev parent reply other threads:[~2020-05-15 13:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-13 12:42 bug#41234: 27.0.91; Synchronous network requests are failing with “Name or service not known” Dmitry Alexandrov
2020-05-15 13:05 ` Dmitry Alexandrov [this message]
2020-07-02 20:50 ` Dmitry Alexandrov
2020-07-20 10:53 ` Lars Ingebrigtsen
2021-06-14 14:02 ` bug#40748: 28.0.50; Switching wifi networks hangs dns lookups Lars Ingebrigtsen
2021-12-23 22:09 ` Eric Abrahamsen
2021-12-24 9:11 ` bug#41234: " Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7dxdbb7m.dag@gnui.org \
--to=dag@gnui.org \
--cc=41234@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).