From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74493 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Emacs hangs with concurrent TLS connections Date: Sun, 28 Nov 2010 15:20:50 +0100 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290954086 1073 80.91.229.12 (28 Nov 2010 14:21:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Nov 2010 14:21:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M22852@lists.math.uh.edu Sun Nov 28 15:21:20 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PMi7z-00036e-M7 for ding-account@gmane.org; Sun, 28 Nov 2010 15:21:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PMi7u-0002DS-2N; Sun, 28 Nov 2010 08:21:14 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PMi7s-0002DG-PT for ding@lists.math.uh.edu; Sun, 28 Nov 2010 08:21:12 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PMi7o-00084M-HR for ding@lists.math.uh.edu; Sun, 28 Nov 2010 08:21:12 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PMi7n-0003HD-00 for ; Sun, 28 Nov 2010 15:21:07 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PMi7n-000332-Cv for ding@gnus.org; Sun, 28 Nov 2010 15:21:07 +0100 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Nov 2010 15:21:07 +0100 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Nov 2010 15:21:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 44 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWBenQXDg9QQ00qHCAG BAXQ0cQ6LDQtmLUOAAACVklEQVQ4jU2UzXLjIBCEp0i0d4KSsxZ7ORvh5a4V8Zk4JZ8d4eL9H2F7 BimVqXLJ5vP80DQiovvCQcseyiIGIoWPLOSugau1DmA8OEtE3QYHWnIDqZ/V2BEHACdtoNZ+puUQ VtqrZeuqtRTGo+6WLP2lICnrVgZ9mv+0+uVE3E6msmQA/sq6q7V4HfDvAYxm7/V9W5fYQaAsW7zV PQCsNG/b+vUNXAMxNuC+QV3dT7AtxtiqARSRKAdeCUEePAC9VQHXsMcOjGjxDYwHKiyJjhvwvO41 PwpySI+tlNaTxrrWRks50kYybilNWgKcJwAYqAGQftJlB8HcWfPPBtJcJ20gZaCg79zk48VarQFD j7ReawDp/py0SchIDHvtDYUwLAJ+BspRiDLuU9gEVCIwN29ADYeYkimrCj5Wh+Zx26By9pxeecCr HBs1ReBLZx/pvWuguxGdus2XX7WfXvkArnDXrdDaAK0PTPOe86IYfhqym5Vx1NaFsVQTosOJcYbY 0DpSNFiYMcN0T0Was5+n4oqKdWArkvrSNJKomyecGja3rmxp+IdO7WpkVsKbGvr5tz5PeqXTkPMO sPWwxmOaEtQF6DA4wMRktm8HOUy600J2WK6sKVRPVYQHWJX0+NgFt31qoKJOt53H5ZwudOZvDNp9 fZ77BtSj2QVA9nf8dxbwop4lIVAluavHyxnTY1rnvpgYgI7fF8fZ9/gZIq6n9SACkPLgugl+CutA ynnYZ0ATbIPreM4JEZdAFdxB1hkdJ6zBo0xGWx3VSHizHKUh3A5So8eF/w9raf586J4gtAAAAABJ RU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Godflesh's _Songs of Love and Hate_: "Almost Heaven" Cancel-Lock: sha1:ey7BQDNthLqMfwIWWPN/wo4cZYo= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74493 gmane.emacs.devel:133199 Archived-At: This can be rather tricky to reproduce, but I seem to be able to reproduce it kinda reliably with the following. Don't eval it -- it might hang your Emacs completely. Start a new one and try it there: (progn (require 'gnutls) (url-retrieve "https://www.google.no" #'ignore) (url-retrieve "https://www.google.no" #'ignore)) If it doesn't hang your Emacs, try some other URLs, and more of them. Emacs becomes completely unresponsive, and the only thing that can be done is to kill Emacs. I get an infinite loop like this: select(11, [3 4 6 8 9], [], NULL, {0, 19533}) = 1 (in [9], left {0, 19531}) getrusage(RUSAGE_SELF, {ru_utime={6, 424401}, ru_stime={1, 744109}, ...}) = 0 times({tms_utime=642, tms_stime=174, tms_cutime=0, tms_cstime=0}) = 1846926770 getrusage(RUSAGE_SELF, {ru_utime={6, 424401}, ru_stime={1, 744109}, ...}) = 0 times({tms_utime=642, tms_stime=174, tms_cutime=0, tms_cstime=0}) = 1846926770 read(3, 0xda6174, 4096) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}], 2, 0) = 0 (Timeout) select(11, [3 4 6 8 9], [], NULL, {0, 19388}) = 1 (in [9], left {0, 19386}) where fd 3 is lrwx------ 1 larsi larsi 64 Nov 28 15:14 3 -> socket:[5510547] which is emacs 20504 larsi 3u IPv4 5510547 0t0 TCP localhost.localdomain:57459->localhost.localdomain:6010 (ESTABLISHED) which is the ssh-tunnelled X connection. So something is up when trying to initialise two gnutls connections at the same time. Or something. A race condition? Some state shared that shouldn't be shared? I don't know. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen