GNU bug report logs - #34341
26.1; url-retrieve-synchronously returns blank buffer

Previous Next

Package: emacs;

Reported by: Laurent Charignon <l.charignon <at> gmail.com>

Date: Wed, 6 Feb 2019 07:11:01 UTC

Severity: normal

Tags: fixed

Merged with 39158

Found in version 26.1

Fixed in versions 26.3, 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #68 received at control <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Ernesto Alfonso <erjoalgo <at> gmail.com>
Cc: 39158 <at> debbugs.gnu.org
Subject: Re: bug#39158: 26.1;
 url-retrieve-synchronously possible race condition
Date: Fri, 17 Jan 2020 12:46:01 -0500
unarchive 34341
forcemerge 34341 39158
quit

Ernesto Alfonso <erjoalgo <at> gmail.com> writes:

> url-retrieve-synchronously unexpectedly returns an empty buffer:
>
> emacs -Q --eval '(with-current-buffer (url-retrieve-synchronously "
> https://google.com") (print (buffer-string)))' --batch
> Contacting host: google.com:443
>
> ""
>
> If I add (sit-for 2) in url-retrieve-synchronously after the (url-retrieve
> ...) call:
>
>     (setq asynch-buffer
>      (url-retrieve url (lambda (&rest ignored)
>          (url-debug 'retrieval "Synchronous fetching done (%S)"
> (current-buffer))
>          (setq retrieval-done t
>        asynch-buffer (current-buffer)))
>     nil silent inhibit-cookies))
>     (sit-for 2)
>
> then I see the expected output.
>
>
> In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)

Looks like Bug#34341, try upgrading to 26.3, or put

    (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")

in your init file as a temporary workaround.




This bug report was last modified 4 years and 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.