From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Damien Cassou Newsgroups: gmane.emacs.bugs Subject: bug#29223: 26.0.90; [Regression][Emacs26] Problem in network stack Date: Thu, 09 Nov 2017 06:16:58 +0100 Message-ID: <87tvy458vp.fsf@cassou.me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1510204697 22178 195.159.176.226 (9 Nov 2017 05:18:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 9 Nov 2017 05:18:17 +0000 (UTC) Cc: Nicolas Petton , Paul Eggert To: 29223@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 09 06:18:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCfE8-0005HL-Lr for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Nov 2017 06:18:09 +0100 Original-Received: from localhost ([::1]:35144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCfEE-0000EV-5P for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Nov 2017 00:18:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCfE8-0000EQ-1D for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2017 00:18:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCfE3-0002xk-1D for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2017 00:18:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50625) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eCfE2-0002xe-Sy for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2017 00:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eCfE2-0004pF-Kq for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2017 00:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Damien Cassou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Nov 2017 05:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29223 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151020464918503 (code B ref -1); Thu, 09 Nov 2017 05:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2017 05:17:29 +0000 Original-Received: from localhost ([127.0.0.1]:59305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCfDV-0004oM-2u for submit@debbugs.gnu.org; Thu, 09 Nov 2017 00:17:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCfDT-0004o9-Pl for submit@debbugs.gnu.org; Thu, 09 Nov 2017 00:17:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCfDN-0002mv-3R for submit@debbugs.gnu.org; Thu, 09 Nov 2017 00:17:22 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCfDM-0002mm-Ts for submit@debbugs.gnu.org; Thu, 09 Nov 2017 00:17:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCfDK-0000BE-Er for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2017 00:17:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCfDF-0002kz-I6 for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2017 00:17:18 -0500 Original-Received: from mail.choca.pics ([62.210.108.126]:35558) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCfDF-0002jH-3O for bug-gnu-emacs@gnu.org; Thu, 09 Nov 2017 00:17:13 -0500 Original-Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id A6AE0232EC88; Thu, 9 Nov 2017 06:17:03 +0100 (CET) Original-Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id KerJWwpLfMAQ; Thu, 9 Nov 2017 06:17:02 +0100 (CET) Original-Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id DB933232EC9B; Thu, 9 Nov 2017 06:17:01 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.choca.pics DB933232EC9B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cassou.me; s=9EA44F5C-DEF4-11E6-A83F-A08DF322D8FB; t=1510204621; bh=pujMeBSstC3Ucm54PV7EUaMr4D3eoDokEyGqnF1prtY=; h=From:To:Date:Message-ID:MIME-Version; b=S5ZGgwED9UOj7FumeoeNViSdMxlIYRTjg5+hMmsPrOE3EqnrJlqoyCPBGiOMrDzL+ OoC93NyTvj96SDbOhX3uiU33A/GBBa0kQjn/pM/Dd1Xqt7Zf7b5hL19R9plCwgnBFo JWqplD7WEQFyrEtkLNmiXPxiFJF7g+8jgA2hfJrThBGHysEptoqsfCcDfxQ/RPS3Yy BdSADBenNVd0CyX+voUbEidIygv3/gSMS0C97gfONOfUxR9HrTQaZLn433E4G6g6P+ utrAQLr+yUd7Ex5E2PQzm8PMgtBsQBP5wMYZIRsbvebND/tnUC0WubuasYmLCMWmLv IG11gg2Lkrr0w== X-Virus-Scanned: amavisd-new at choca.pics Original-Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id LSDUkG4iuH3v; Thu, 9 Nov 2017 06:17:01 +0100 (CET) Original-Received: from luz4 (c80-216-193-219.bredband.comhem.se [80.216.193.219]) by mail.choca.pics (Postfix) with ESMTPSA id 5314F232EC88; Thu, 9 Nov 2017 06:17:01 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139651 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The commit "Avoid unnecessary rounding errors in timestamps" (3aee7b) introduces a regression in the network stack. This can be seen while using org-caldav and I managed to reproduce with emacs -Q (see attached files). Among the attached files, script.el is of the most importance. The first call to `contact-server' works fine whereas the second triggers a server-side error: 503 Service Unavailable. Unfortunately, you can't directly reuse this script as it depends on a personal nextcloud instance. Reverting the commit fixes the bug. I added its author on CC. commit 3aee7be62eaf8caef6f2fab31bee79674b3abbb7 Author: Paul Eggert Date: Sun Oct 22 01:04:36 2017 -0700 Avoid unnecessary rounding errors in timestamps =20 Avoid the rounding errors of float-time when it=E2=80=99s easy. E.g.= , replace (< (float-time a) (float-time b)) with (time-less-p a b). * lisp/desktop.el (desktop-save): * lisp/ecomplete.el (ecomplete-add-item): * lisp/epg.el (epg-wait-for-completion): * lisp/files.el (dir-locals-find-file, dir-locals-read-from-dir): * lisp/image-dired.el (image-dired-get-thumbnail-image) (image-dired-create-thumb-1): * lisp/info.el (info-insert-file-contents): * lisp/ls-lisp.el (ls-lisp-format-time): * lisp/net/ange-ftp.el (ange-ftp-file-newer-than-file-p) (ange-ftp-verify-visited-file-modtime): * lisp/net/rcirc.el (rcirc-ctcp-sender-PING): * lisp/textmodes/remember.el (remember-store-in-mailbox): * lisp/url/url-cookie.el (url-cookie-expired-p): Bypass float-time to avoid rounding errors. =20 * lisp/files.el (dir-locals-find-file): In GNU Emacs 26.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-11-09 built on luz4 Repository revision: b23adf48bfe03332f508f088265a0c8162747cae Windowing system distributor 'Fedora Project', version 11.0.11903000 System Description: Fedora release 26 (Twenty Six) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --cache-file=3D/tmp/emacs.config.cache' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date mule-util 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 menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 94504 6564) (symbols 48 20339 1) (miscs 40 45 119) (strings 32 28291 1407) (string-bytes 1 748828) (vectors 16 13964) (vector-slots 8 492182 6318) (floats 8 49 68) (intervals 56 224 0) (buffers 992 12)) --=20 Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=bisect.log git bisect start # good: [da62c1532e479bbac4ce242ee1d170df9c435591] Improve the documentation of filesets git bisect good da62c1532e479bbac4ce242ee1d170df9c435591 # bad: [255ba01148f69f452937e67feb7af5d4c1466fed] Fix handling of nil PRED2 arg for completion-table-with-predicate git bisect bad 255ba01148f69f452937e67feb7af5d4c1466fed # good: [fd42a19260841a2e3c39fd983c7601a3f517bf4b] When opening new eww buffers, use buffer names based on the host name git bisect good fd42a19260841a2e3c39fd983c7601a3f517bf4b # good: [65b323e14e09fa6024fee93fd484deea4b7f51a2] Don't put deleted packages in the trash (bug#14967) git bisect good 65b323e14e09fa6024fee93fd484deea4b7f51a2 # good: [bf0045d7a4cd4c7d4df3fa34b8a12795e8ee73aa] Avoid aborting in 'waitpid' on MS-Windows git bisect good bf0045d7a4cd4c7d4df3fa34b8a12795e8ee73aa # good: [1c30f9fc08649649676ed812f1579f0948558ceb] Flymake diagnostics now apply to arbitrary buffer regions git bisect good 1c30f9fc08649649676ed812f1579f0948558ceb # good: [dc8812829b81540d385eaa5577fa31397a8181d3] Remove resizable attribute on macOS undecorated frames (bug#28512) git bisect good dc8812829b81540d385eaa5577fa31397a8181d3 # bad: [82a16c547bc32fda6073c97b6c8989b473f0315b] Fix some duplicate word typos git bisect bad 82a16c547bc32fda6073c97b6c8989b473f0315b # bad: [b51009d7f02b796bcdf9b0893bc4ad348460e844] * admin/authors.el (authors-canonical-author-name): Ignore name issues in "lax" ChangeLogs. git bisect bad b51009d7f02b796bcdf9b0893bc4ad348460e844 # good: [4587d8e0ef3302e9a2d99e2981897537eb320168] Document 'minibuffer-with-setup-hook' git bisect good 4587d8e0ef3302e9a2d99e2981897537eb320168 # good: [237e96bc5259e59ac5623a93a47f64abffab4e0b] Test that advice doesn't trigger bytecomp warnings (Bug#28803) git bisect good 237e96bc5259e59ac5623a93a47f64abffab4e0b # bad: [6360611457a39292e11980bb522a14a5c9a58716] Port to OpenIndiana git bisect bad 6360611457a39292e11980bb522a14a5c9a58716 # bad: [3aee7be62eaf8caef6f2fab31bee79674b3abbb7] Avoid unnecessary rounding errors in timestamps git bisect bad 3aee7be62eaf8caef6f2fab31bee79674b3abbb7 # good: [2bfa42855bf0278497f2e4540eac2086dab254c3] Fix xdg timestamp error on 32-bit Emacs git bisect good 2bfa42855bf0278497f2e4540eac2086dab254c3 # first bad commit: [3aee7be62eaf8caef6f2fab31bee79674b3abbb7] Avoid unnecessary rounding errors in timestamps --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=script.el (defun contact-server () "Contact server." (let* ((username "damien") (password "the password") (authorization (format "Basic %s" (base64-encode-string (format "%s:%s" username password)))) (url "https://damien@some-nextcloud.foo/personal") (url-request-method "OPTIONS") (url-request-data nil) (url-request-extra-headers `(("Authorization" . ,authorization))) (buffer (url-retrieve-synchronously url))) (with-current-buffer buffer (goto-char (point-min)) (when (not (re-search-forward "^HTTP[^ ]* \\([0-9]+ .*\\)$" (point-at-eol) t)) (user-error "No valid HTTP response from URL %s" url)) (let ((response (match-string 1))) (when (not (string-match "2[0-9][0-9].*" response)) (user-error "Error while checking for OPTIONS at URL %s: %s" url response))) (mail-narrow-to-head) (let ((davheader (mail-fetch-field "dav"))) (when (not davheader) (user-error "The URL %s does not accept DAV requests" url))) (message "Success contacting server")))) (progn (message "Contacting server (1/2)") (contact-server) (message "Contacting server (2/2)") (contact-server)) --=-=-= Content-Type: application/x-sh Content-Disposition: attachment; filename=script.sh Content-Transfer-Encoding: base64 IyEvYmluL3NoCgpnaXQgY2xlYW4gLXhmZCA+IC9kZXYvbnVsbAooLi9hdXRvZ2VuLnNoICYmIC4v Y29uZmlndXJlIC0tY2FjaGUtZmlsZT0vdG1wL2VtYWNzLmNvbmZpZy5jYWNoZSAmJiBtYWtlIC1q MikgfHwgZXhpdCAxMjUKCiMgRm9yIGdpdC1iaXNlY3QsIHlvdSBuZWVkIHRoYXQ6Ci4vc3JjL2Vt YWNzIC0tYmF0Y2ggLVEgLS1sb2FkIC4uL3NjcmlwdC5lbCB8fCBleGl0IDEKCmV4aXQgMAo= --=-=-=--