From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ship Mints Newsgroups: gmane.emacs.bugs Subject: bug#74907: 31.0.50; nsm-check-local-subnet-ipv4 test fails on macOS with VPN enabled Date: Mon, 16 Dec 2024 06:23:12 -0500 Message-ID: References: <87o71b6gmd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ba9a330629616a52" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27213"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74907@debbugs.gnu.org, Stefan Kangas To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 12:26:21 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tN9Ez-0006sv-0m for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 12:26:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tN9Ei-0007xa-63; Mon, 16 Dec 2024 06:26:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tN9Eh-0007xS-E1 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 06:26:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tN9Eg-0001oz-8w for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 06:26:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=uMzmkjtGqjYfmPdFlsPoQR7jIrcZchpLPu7YqzMPW3A=; b=qkp+pXHA3c72KyE/q6NgA4Ts/CG64P8vs0Q33a98wmaeV4ODJdVUE4yq8KL4zy/v3zNdqwt6hDCErc4Gakj4oKZMOV7LqQDy/75O4KqSxEYhmzVymDNv0k/YmTURhlgqtbN39WTyOLyDraGgfeh2ysG3T8n/feoM3GvXgRT4aH81sY0awba0D9nrQDcNyTHy8ySBi3KMfs5grmaaqLX/trb0ibzsDpq4RWrOuFiG2VYi5hI3I3Sv5egfuFYIk/TyXvWDqM8TixrFyEHfAQk9WqDO+PG0uG0uq1BWRYIAgVeFbWpLGTrX0s3S5EC9Tk7TSNwRG7c/GTBLE9q35XG+vA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tN9Ef-0003Mf-Sg for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 06:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 11:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74907 X-GNU-PR-Package: emacs Original-Received: via spool by 74907-submit@debbugs.gnu.org id=B74907.173434830212484 (code B ref 74907); Mon, 16 Dec 2024 11:26:01 +0000 Original-Received: (at 74907) by debbugs.gnu.org; 16 Dec 2024 11:25:02 +0000 Original-Received: from localhost ([127.0.0.1]:53774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tN9Dh-0003F4-Nj for submit@debbugs.gnu.org; Mon, 16 Dec 2024 06:25:02 -0500 Original-Received: from mail-vs1-f52.google.com ([209.85.217.52]:54400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tN9Df-0003Eu-Ve for 74907@debbugs.gnu.org; Mon, 16 Dec 2024 06:25:00 -0500 Original-Received: by mail-vs1-f52.google.com with SMTP id ada2fe7eead31-4afde39e360so983712137.0 for <74907@debbugs.gnu.org>; Mon, 16 Dec 2024 03:24:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734348239; x=1734953039; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uMzmkjtGqjYfmPdFlsPoQR7jIrcZchpLPu7YqzMPW3A=; b=aEHmx5J4yqnWPrxBOAVIm2bMSVoLPSaUhTwr3/DiYI9ZOHxvGyE64CQJq7emDweNqi pnSvCgOksnaR30rnsrK5SyLvI1op7fxkSeJ//i5GHrPW+xEdOOc7AQAmPO5bUgggqBKD WPOxleqoYp8GLKToJfXUJcmTJMXZCWm1n1g1j6rpMyL1I/wLAl1Y1u99bXpQymMp/ieh wVGNwQ040JE9AbsBZGknxX/aaZI5Fcdc2YFwMqVe3ZuEH3ZiWOKtiveNm7YIGj9a+A7I QqaEGzujRdKYcNB75Ow8SR1RkbP3Njg3gzcZ8OiXIXL8+LBcZtmkM6alwhNv2APB4wK1 pRCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734348239; x=1734953039; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uMzmkjtGqjYfmPdFlsPoQR7jIrcZchpLPu7YqzMPW3A=; b=Omh98J1db0F/NKfSYxu6Rx9EEG07m1BHpHqpHDbF7F+4mqlAcYuB+LLhuAJip2BFvV hlt7TISQgjx3WiBFwfaZxDgBOD12YMkQS9idZyBrLoqbKQEJwPXOPxKnN0coyTmFr1oe J+6d/qHoQOI/+Ao2QXNZbmbCnJ9EGPzAbwDkLZ84Yrci+DPMIklWmBJRdJK8M9Ox8Jwj gOO7eWJdNsSNK4PYsX+kj0S11GzpLWKcXSnlRRjJPqhEoKJvhfjhlvAsAcAwkRME9cKZ a4KCAGcayb1qQqsjOejmuIAPpkmU8eS6ykN6Z4Ks0qMEl/rSuQAdomhkUZkpy5N+elXj r1fA== X-Forwarded-Encrypted: i=1; AJvYcCWMqgPU0V3WAXXXi6z1vnbzblbaGDEl4UUKyiAr4kWI+WA2nwgyhWGENIgibsZD55igedvzbQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yykv7WWpW/pFuJ6zoGS/exmRxB0Dtwr3zkAE1W0qfeWvYxAGWZF rstJ3IhHbiaUEiiBss8G67uK0IAVOXk+hZCeIDQi8xnH/1Ng2pPsQ4i3pwtiOxzaWK7E3Le3npR 44j/MzR8UXj4+IPgIIBqupcZ19Sw= X-Gm-Gg: ASbGnctGb6TPy9YlF2VeHKh4U41RNJLaEYb1B22eVVj70qkUPPXCdTzDiXBldj2f+LO A+Aoc1QhArmiAiYgETCIovk4ByL5dYGr90Lx4LA== X-Google-Smtp-Source: AGHT+IFi+2g9Ykh2rN+tbxyktUjyleZf1z9elZYj3s3N0R2XzvrYZCXHSCJVo6O5u7Lr7rIZP4sTAO/eORkgDJmxUkQ= X-Received: by 2002:a05:6102:418e:b0:4b1:1b33:eb0f with SMTP id ada2fe7eead31-4b25db3f6a0mr10321168137.24.1734348239442; Mon, 16 Dec 2024 03:23:59 -0800 (PST) In-Reply-To: <87o71b6gmd.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297165 Archived-At: --000000000000ba9a330629616a52 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable With the VPN running and without, check the value of (network-lookup-address-info "localhost") and see if the VPN-regime value looks sensible. It is possible that your VPN set up is absconding with host resolution. I'd bet that (nsm-should-check "127.0.0.1") works fine under both scenarios. You could at the command line also ping localhost and see what that reveals or try macOS network "reachability" diagnostic utility scutil -W -r localhost. On Mon, Dec 16, 2024 at 5:58=E2=80=AFAM Robert Pluim wro= te: > >>>>> On Mon, 16 Dec 2024 02:03:53 +0000, Stefan Kangas < > stefankangas@gmail.com> said: > > Stefan> I see the below test failure when running with a VPN enabled > on macOS. > Stefan> It fails predictably every time, but when I disable the VPN, > the test > Stefan> passes. > > Stefan> Looking into it, it seems like it's this call that leads to t= he > Stefan> backtrace: > > Stefan> (nsm-should-check "localhost") > > Stefan> However, when edebugging `nsm-should-check` and step through > the code, I > Stefan> do not get a backtrace, and it correctly returns t. > > Stefan> Any ideas for how to continue debugging this? > > `printf' (or in this case `message') is your friend :-) > > I suspect `network-interface-list' is returning unexpected values > because of the VPN, but I=CA=BCd check `network-lookup-address-info' as w= ell > > Robert > -- > > > > --000000000000ba9a330629616a52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
With the VPN running and without, check the value of=C2=A0(network-looku= p-address-info "localhost") and see if the VPN-regime value looks= sensible. It is possible that your VPN set up is absconding with host reso= lution. I'd bet that (nsm-should-check "127.0.0.1") works fin= e under both scenarios. You could at the command line also ping localhost a= nd see what that reveals or try macOS network "reachability" diag= nostic utility scutil -W -r localhost.

On Mon, D= ec 16, 2024 at 5:58=E2=80=AFAM Robert Pluim <rpluim@gmail.com> wrote:
>>>>> On Mon, 16 Dec 2024 02:03:53 = +0000, Stefan Kangas <stefankangas@gmail.com> said:

=C2=A0 =C2=A0 Stefan> I see the below test failure when running with a V= PN enabled on macOS.
=C2=A0 =C2=A0 Stefan> It fails predictably every time, but when I disabl= e the VPN, the test
=C2=A0 =C2=A0 Stefan> passes.

=C2=A0 =C2=A0 Stefan> Looking into it, it seems like it's this call = that leads to the
=C2=A0 =C2=A0 Stefan> backtrace:

=C2=A0 =C2=A0 Stefan>=C2=A0 =C2=A0 =C2=A0(nsm-should-check "localho= st")

=C2=A0 =C2=A0 Stefan> However, when edebugging `nsm-should-check` and st= ep through the code, I
=C2=A0 =C2=A0 Stefan> do not get a backtrace, and it correctly returns t= .

=C2=A0 =C2=A0 Stefan> Any ideas for how to continue debugging this?

`printf' (or in this case `message') is your friend :-)

I suspect `network-interface-list' is returning unexpected values
because of the VPN, but I=CA=BCd check `network-lookup-address-info' as= well

Robert
--



--000000000000ba9a330629616a52--