From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulf Jasper Newsgroups: gmane.emacs.bugs Subject: bug#16543: Newsticker retrieve method and https Date: Sun, 28 Sep 2014 19:35:22 +0200 Message-ID: <8761g7y7fp.fsf@web.de> References: <52e30349.e5ecc20a.21cf.ffffddbf@mx.google.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411925791 13462 80.91.229.3 (28 Sep 2014 17:36:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2014 17:36:31 +0000 (UTC) Cc: 16543@debbugs.gnu.org To: =?UTF-8?Q?C=C3=A9dric_?= =?UTF-8?Q?Ch=C3=A9pied?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 28 19:36:24 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XYIOV-0007b4-Ej for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Sep 2014 19:36:23 +0200 Original-Received: from localhost ([::1]:60474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYIOT-0000Bw-10 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Sep 2014 13:36:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYIOK-0000An-Vr for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 13:36:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYIOF-0008OB-HP for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 13:36:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYIOF-0008Lz-ET for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 13:36:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XYIO9-000114-QC for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 13:36:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <52e30349.e5ecc20a.21cf.ffffddbf@mx.google.com> Resent-From: Ulf Jasper Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Sep 2014 17:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16543 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16543-submit@debbugs.gnu.org id=B16543.14119257293851 (code B ref 16543); Sun, 28 Sep 2014 17:36:01 +0000 Original-Received: (at 16543) by debbugs.gnu.org; 28 Sep 2014 17:35:29 +0000 Original-Received: from localhost ([127.0.0.1]:54518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYINd-000103-1Z for submit@debbugs.gnu.org; Sun, 28 Sep 2014 13:35:29 -0400 Original-Received: from mout.web.de ([212.227.15.14]:50136) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYINa-0000zs-42 for 16543@debbugs.gnu.org; Sun, 28 Sep 2014 13:35:27 -0400 Original-Received: from uthinkpad ([46.114.25.197]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0LuqfJ-1YGffh3q4n-0101k3; Sun, 28 Sep 2014 19:35:25 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-Provags-ID: V03:K0:c6JpJ7yGHw8VcBvDLEk7K5McJe8uLNu5eLfl7/d596D9tfyODzW rJhzwju389jLbJPvVoNKXF4mCPAWrpjQXhVjZeYK5/cXHMTUjFsaokvcRdb7grqRROe2HpX AK+ooYS5cFC2WeHAWwP9a4m0L9y80omJMuov6lQ+W35JeXCIpxp5XwsOmeh8f0tOtq7GHg5 IZBWom732U+GWtULTtNuw== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93831 Archived-At: > Symbol's function definition is void: lexical-let My mistake. Sorry. After studying the stack trace and doing some tests I found out that the problem occurs only if * `url-retrieve' is called from timers, * the first url is of type https, the second of type http (as you mentioned) * gnutls-cli is used for https retrieval (libgnutls works fine) Here is a recipe for reproducing the error. I am preparing a fix now. (defun debbug-16543-callback (status url) "Dummy callback method for url-retrieve which ignores STATUS, shows URL. Show also the current value of `url-gateway-method'." (message "debbug-16543-callback url=%s url-gateway-method=%s" url url-gateway-method)) (defun debbug-16543-call-url-retreive (url) "Call `url-retrieve' for URL. Forces the gnutls cli to be used." (let ((old-gnutls-available-p (symbol-function 'gnutls-available-p))) (unwind-protect (ignore-errors ;; force usage of command line tls (setf (symbol-function 'gnutls-available-p) #'(lambda () nil)) ;; call url-retrieve for the url (url-retrieve url 'debbug-16543-callback (list url))) ;; restore original functions (setf (symbol-function 'gnutls-available-p) old-gnutls-available-p)))) (defun debbug-16543-check () "Try to reproduce bug#16543. If bug occurs then the linuxfr.org is fetched via tls which will cause Emacs to hang." (interactive) (mapc (lambda (url) (run-at-time 0 nil 'debbug-16543-call-url-retreive url)) '("https://www.archlinux.org/feeds/news/" "http://linuxfr.org/news.atom")))