From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#45798: 28.0.50; nsm-check-local-subnet-ipv4 fails with nsm-trust-local-network Date: Mon, 11 Jan 2021 19:24:47 +0000 Message-ID: <875z43wa2o.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25390"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 45798@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 11 20:51:26 2021 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 1kz3Dq-0006VA-0X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 20:51:26 +0100 Original-Received: from localhost ([::1]:41294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kz3Dp-0001dW-24 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Jan 2021 14:51:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz2pG-0002it-AZ for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 14:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kz2pG-0001Uc-2g for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 14:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kz2pF-000363-VU for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 14:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2021 19:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45798 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161039310211821 (code B ref -1); Mon, 11 Jan 2021 19:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jan 2021 19:25:02 +0000 Original-Received: from localhost ([127.0.0.1]:58311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz2oH-00034a-RI for submit@debbugs.gnu.org; Mon, 11 Jan 2021 14:25:02 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:34078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kz2oF-000348-TL for submit@debbugs.gnu.org; Mon, 11 Jan 2021 14:25:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kz2oE-0001T5-6z for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 14:24:59 -0500 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:33338) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kz2oA-0001EA-QY for bug-gnu-emacs@gnu.org; Mon, 11 Jan 2021 14:24:57 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id t30so985353wrb.0 for ; Mon, 11 Jan 2021 11:24:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=hmeiVXZOpLnRF/hkGuODB1AT0rIo1Bc3H2ZGClJ83NU=; b=CI1QAo5z6zlm5i2qP52go8s1MEGzy7XjHZ8WGffDqoHPj3I5CGWMxL5W8cMRhz4gDC 7h3iFHzcxjWMpIamRQu8g17Us92MqMd0iUxXFWCbyZhWKN54oBCD6COLiNundzJFzqOb dM9KCLUSF8P3TiGWjX8Pt6Ca1pNNukm2jWR3gd2ouAf36kCIu6X/qjrxvgzBt1fUzd0y LU/4To+yMOJ9aHzs23z7zvNJHugf92CyEal1cY3/YYL2FskJ3w+TvuCZ+d6pM0assEY+ jlJ5bz43uTvhq5L9X5LuntvFI5jjkmiM97juQNB0A8Agg2cmE8bEwugAOrPcdIvZY+WB nCJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=hmeiVXZOpLnRF/hkGuODB1AT0rIo1Bc3H2ZGClJ83NU=; b=nib94KxJYDD+i3UfSY11J9ZugjAX8t7qJ2YfPRdfI//ZREtuvT80fpx3MGF0jKp7Ia 4j4QJrrXJtOzyddV2VLiZLLyC84IdnvJ7LngOJr8J4QRAsA1HmjPpE/rSEH/rRJTdP/5 34R+f6KK9QAWaDsmQ3IjnouZVNi1AVYQUVTdBMLo7sLyW5Kg0fONNKyEX0CBABSZFvq6 fCgi9Ksn8ZLjh66Yx/or5F3HpMicSKcS/U+0LYxyNivCl0qWn1syAsHP1HqJGr1MDZ+8 PdqVCI6QkR5eP0FMU4J9kd+RIt6uO13cSc5huk+IH7TiYoJoVRuDG3EfH+I9wEyGNpN4 zSSQ== X-Gm-Message-State: AOAM532oFDrXQmLEE0BVWuEGMQy1OrJmzch6ahZiMEDpMEaz+rKTap1T KkBa4cIZA0IxnUj3iWTuOwGPeAvStrDpZ9A0 X-Google-Smtp-Source: ABdhPJzjsJDA7v+RBMVh1VyVbBdM8KHUREhh3h5ddPUoAIU2TCVHL8v4P6GruzThNRyeJSbTxntAlw== X-Received: by 2002:a5d:464b:: with SMTP id j11mr586724wrs.227.1610393090696; Mon, 11 Jan 2021 11:24:50 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id o124sm407160wmb.5.2021.01.11.11.24.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:24:49 -0800 (PST) Received-SPF: none client-ip=2a00:1450:4864:20::434; envelope-from=contovob@tcd.ie; helo=mail-wr1-x434.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:197744 Archived-At: I've been consistently seeing the following error when running 'make check' for a while. It corresponds to the line in nsm-tests.el where nsm-trust-local-network is bound to t. --8<---------------cut here---------------start------------->8--- Running 2 tests (2021-01-11 18:36:03+0000, selector =E2=80=98(not (or (tag = :expensive-test) (tag :unstable)))=E2=80=99) Test nsm-check-local-subnet-ipv4 backtrace: signal(ert-test-failed (((should (eq t (nsm-should-check "google.com ert-fail(((should (eq t (nsm-should-check "google.com"))) :form (eq=20 #f(compiled-function () #)() ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name nsm-check-local-subnet-ipv4 :document ert-run-or-rerun-test(#s(ert--stats :selector (not (or (tag :expensi ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable))) ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) ( command-line-1(("-L" ":." "-l" "ert" "-l" "lisp/net/nsm-tests" "--ev command-line() normal-top-level() Test nsm-check-local-subnet-ipv4 condition: (ert-test-failed ((should (eq t (nsm-should-check "google.com"))) :form (eq t nil) :value nil)) FAILED 1/2 nsm-check-local-subnet-ipv4 (0.056046 sec) passed 2/2 nsm-check-local-subnet-ipv6 (0.000694 sec) Ran 2 tests, 1 results as expected, 1 unexpected (2021-01-11 18:36:03+0000,= 0.196751 sec) 1 unexpected results: FAILED nsm-check-local-subnet-ipv4 --8<---------------cut here---------------end--------------->8--- I stepped through nsm-should-check a bit, but I don't understand what is or should be happening. The test fails when local var off-net is set to nil, which happens when nsm-network-same-subnet returns non-nil. This happens with the following local var values: ip: [0 0 0 0 0 0 0 1 0] info: (lo [0 0 0 0 0 0 0 1 0] [0 0 0 0 0 0 0 1 0] [65535 65535 65535 65535 65535 65535 65535 65535 0]) addresses: ([0 0 0 0 0 0 0 1 0]) network-interface-list: ((wlp3s0 [65152 0 0 0 38609 2370 19874 38730 0] [65152 0 0 0 65535 65535 65535 65535 0] [65535 65535 65535 65535 0 0 0 0 0]) (wlp3s0 [10754 32900 8418 50048 62480 33512 14881 61151 0] [10754 32900 8418 50048 65535 65535 65535 65535 0] [65535 65535 65535 65535 0 0 0 0 0]) (lo [0 0 0 0 0 0 0 1 0] [0 0 0 0 0 0 0 1 0] [65535 65535 65535 65535 65535 65535 65535 65535 0]) (wlp3s0 [192 168 0 144 0] [192 168 0 255 0] [255 255 255 0 0]) (lo [127 0 0 1 0] [127 255 255 255 0] [255 0 0 0 0])) I've observed that the test fails only on my home network. I've heard that my ISP and the modem they provide use a weird dual IPv6 stack that has caused people problems in the past, but I know next to nothing about these things and can't say if it's related to the issue at hand. Another observation is that the test succeeds if I replace "google.com" with "gnu.org". Should I just change the test to use "gnu.org", and forget about this? Or is there some interesting issue here? Any suggestions or guidance are very welcome. Here's my /etc/resolv.conf, in case it matters: # Generated by NetworkManager nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 2001:4860:4860::8888 # NOTE: the libc resolver may not support more than 3 nameservers. # The nameservers listed below may not be recognized. nameserver 2001:4860:4860::8844 [ I've been pointing my DNS settings to Google ever since I spent some months in a country with very poor network services. ] Thanks, --=20 Basil In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo versio= n 1.16.0, Xaw3d scroll bars) of 2021-01-11 built on tia Repository revision: fcf8ad610d43ba9b96d9ad1cc67185144c819006 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Debian GNU/Linux bullseye/sid Configured using: 'configure 'CC=3Dccache gcc' 'CFLAGS=3D-O2 -march=3Dnative' --config-cache --prefix=3D/home/blc/.local --enable-checking=3Dstructs --with-x-toolkit=3Dlucid --with-file-notification=3Dyes --with-x' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB Important settings: value of $LANG: en_IE.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml easymenu mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs)