unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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: Thu, 02 Jul 2020 23:50:39 +0300	[thread overview]
Message-ID: <5zb54p5s.dag@gnui.org> (raw)
In-Reply-To: <7dxdbb7m.dag@gnui.org> (Dmitry Alexandrov's message of "Fri, 15 May 2020 16:05:01 +0300")

[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

  reply	other threads:[~2020-07-02 20:50 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
2020-07-02 20:50   ` Dmitry Alexandrov [this message]
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=5zb54p5s.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).