From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#34341: 26.1; url-retrieve-synchronously returns blank buffer Date: Mon, 06 May 2019 13:52:27 +0200 Message-ID: References: <871s1ent89.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="111077"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Laurent Charignon , 34341@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 06 13:53:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hNcBH-000SkP-3N for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 May 2019 13:53:15 +0200 Original-Received: from localhost ([127.0.0.1]:55058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNcBG-00066l-2o for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 May 2019 07:53:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNcB6-00065q-9m for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 07:53:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNcB5-0008FN-5q for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 07:53:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42273) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNcB4-0008F2-F9 for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 07:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hNcB4-0003z2-6S for bug-gnu-emacs@gnu.org; Mon, 06 May 2019 07:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 May 2019 11:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34341 X-GNU-PR-Package: emacs Original-Received: via spool by 34341-submit@debbugs.gnu.org id=B34341.155714355815267 (code B ref 34341); Mon, 06 May 2019 11:53:02 +0000 Original-Received: (at 34341) by debbugs.gnu.org; 6 May 2019 11:52:38 +0000 Original-Received: from localhost ([127.0.0.1]:55814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNcAf-0003yA-MV for submit@debbugs.gnu.org; Mon, 06 May 2019 07:52:37 -0400 Original-Received: from mail-wr1-f67.google.com ([209.85.221.67]:33216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNcAd-0003xv-Un for 34341@debbugs.gnu.org; Mon, 06 May 2019 07:52:37 -0400 Original-Received: by mail-wr1-f67.google.com with SMTP id e11so3796150wrs.0 for <34341@debbugs.gnu.org>; Mon, 06 May 2019 04:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=VULq+xNbWYuVBznbzgKEE9T0c6iXx0IjIEey5UoFR/Y=; b=PMaTQFR8s9aUcXrr9WyzLV3H0U2DbghH5j9i4TEQYfS9pmFVCUcE+be7KxwnIBJ9by lKipaCrd80bpCZdoHtT/uh+/8hHzQ50y0s+SFuq2tv+pb10MnPhW1VL4qgrgQoP7sjxU vllY8+ui8oX/oz7WmICx5whQGdtpMQYW9K8ftmxuHlVUC6rrvNv/08xcuEm3aZFS2SMi JZz5viViWpRX14fvhhs4dZE/uIPvOTaxhE9vSqnvi4F3q3VCm9OfjnaUzWINfHjtA53u s9SiqoPp8yqb9Jfu+XE1pEpqmsAeRSFcBndB3obxw8SxbM8eRnvJ81sb3Y8Dzuru+AKV gE/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=VULq+xNbWYuVBznbzgKEE9T0c6iXx0IjIEey5UoFR/Y=; b=iUDV4GHCLIK1TxhklZHe6C1gPK+MTimd3wK3/g2tFqs6q5CTCY0Kw6/wq/1HlSfcy8 7akLCaSKXOyIKl1b/e7bO39MWeVjRW5Jfpx5y1/cz6hmuvTvtu3Z0cl657kXR+aOWKqk SDsI4G9ouxrbJbCi229FdCemJSAES9bo+uCmAWp2kpaRmxIFqeI93UGKaeCiZeAkERoi GnBw732zMKaSAPzk8L6WkJZkUZjdnrmsIhklUQsz8IADVI5KTYcbcmR/UH4sPK5xZQs3 vccdn5Eu+jY4U1Ab2JbeO51oWqR/fhexdKYipawvRrUFRRIJXKDIsA8Bn+avQK5carS4 1g0A== X-Gm-Message-State: APjAAAXfmaXqIDaagDuet11cQP6rMG5qbMLkq8IW8vFTriLhOv3vPVh/ TJMsYR0Iv8ek7AswJuwPPhQZL+nm X-Google-Smtp-Source: APXvYqyPDjtWPR/kRb/lJc/LXhJWAKou2dUv4b+XZOgZpiIgh9WltvV2mXtKk5i6A9DvdQDQTykT8g== X-Received: by 2002:a5d:49c1:: with SMTP id t1mr3800069wrs.247.1557143549658; Mon, 06 May 2019 04:52:29 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id q7sm11499534wra.57.2019.05.06.04.52.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 06 May 2019 04:52:28 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <871s1ent89.fsf@gmail.com> (Noam Postavsky's message of "Sat, 04 May 2019 11:18:30 -0400") 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: 209.51.188.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:158828 Archived-At: >>>>> On Sat, 04 May 2019 11:18:30 -0400, Noam Postavsky said: Noam> Laurent Charignon writes: >> #### Context >>=20 >> The symptom of this issue first came up in the context of >> `ghub`, a package that offers interfacing with Github from >> emacs (issue: https://github.com/magit/ghub/issues/81). >>=20 >> Multiple users of the `ghub` package started observing that >> synchronously retrieving content from the github API through >> ghub returned blank responses. >> (switch-to-buffer (url-retrieve-synchronously " >> https://api.github.com/users/charignon/repos") (buffer-string)) >> From bisecting, I know that the fix is in between 191a5568db >> (working) and 2a3bd6798e96708 (not working). It is hard to >> pinpoint further due to segfaults that were introduced then >> fixed in this range. My best guess is that "Fix unlikely races >> with GnuTLS, datagrams" (e87e6a24c4) resolved this. Noam> I can confirm that cherrypicking this commit fixes the Noam> problem on my Arch box which has gnutls 3.6.7 (doesn't occur Noam> at all on my Debian box with gnutls 3.5.8). Noam> Since the only recourse for users hitting is rebuilding Noam> --without-gnutls or (advice-add 'gnutls-available-p Noam> :override #'ignore) which falls back to the obsolete tls.el, Noam> I'd say this is important enough to backport to emacs-26. Noam> I'll do that in a couple of days if there are no objections. Are you sure that=CA=BCs the only recourse? When I hit this issue, turning off TLS1.3 support helped as well. (see and ) Something like: (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") would be one way to turn off TLS1.3 Robert