From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#15648: 24.2.50; gnutls SSL connection to IMAP server causes emacs to crash completely Date: Mon, 11 Nov 2013 14:40:29 -0500 Message-ID: <21121.12973.425585.122543@consult.pretender> References: <21089.32240.198931.971000@consult.pretender> <21094.39055.449629.706850@consult.pretender> <21094.40085.664080.69561@consult.pretender> <21094.52645.645440.977584@consult.pretender> <21094.64459.131668.849138@consult.pretender> <21095.19949.639350.970770@consult.pretender> <83wql4hvam.fsf@gnu.org> <21096.920.835718.562924@consult.pretender> <83hac7j2a2.fsf@gnu.org> <21097.58066.940940.323995@consult.pretender> <83iowlh27q.fsf@gnu.org> <87eh79ico2.fsf_-_@flea.lifelogs.com> <83a9hxgpt1.fsf@gnu.org> <8738ncru9y.fsf@flea.lifelogs.com> <83ppqg85av.fsf@gnu.org> <87r4awqbyj.fsf@flea.lifelogs.com> <21112.7243.280084.910310@consult.pretender> <87eh6vpokt.fsf@flea.lifelogs.com> <21113.31504.667278.227022@consult.pretender> <21113.34121.522223.876292@consult.pretender> <87iovzhr4w.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384198944 22199 80.91.229.3 (11 Nov 2013 19:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Nov 2013 19:42:24 +0000 (UTC) Cc: Alp Aker , emacs@kosowsky.org, 15648@debbugs.gnu.org To: Ted Zlatanov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 11 20:42:26 2013 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 1VfxNI-0002J7-MH for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Nov 2013 20:42:16 +0100 Original-Received: from localhost ([::1]:39304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfxNI-0000jX-AK for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Nov 2013 14:42:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfxN9-0000dt-UA for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2013 14:42:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfxN5-0005lC-1i for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2013 14:42:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfxN4-0005l5-UK for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2013 14:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VfxN4-0008L5-JU for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2013 14:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Nov 2013 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15648 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15648-submit@debbugs.gnu.org id=B15648.138419886431985 (code B ref 15648); Mon, 11 Nov 2013 19:42:02 +0000 Original-Received: (at 15648) by debbugs.gnu.org; 11 Nov 2013 19:41:04 +0000 Original-Received: from localhost ([127.0.0.1]:47359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VfxM7-0008Jo-0Z for submit@debbugs.gnu.org; Mon, 11 Nov 2013 14:41:03 -0500 Original-Received: from vms173003pub.verizon.net ([206.46.173.3]:49725) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VfxLx-0008JA-GG for 15648@debbugs.gnu.org; Mon, 11 Nov 2013 14:40:54 -0500 Original-Received: from consult.pretender ([unknown] [72.93.211.153]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MW400MQ46NIWTL0@vms173003.mailsrvcs.net> for 15648@debbugs.gnu.org; Mon, 11 Nov 2013 13:40:42 -0600 (CST) Original-Received: from consult.pretender (consult.pretender [127.0.0.1]) by consult.pretender (8.14.4/8.14.4) with ESMTP id rABJeTHW021745; Mon, 11 Nov 2013 14:40:29 -0500 In-reply-to: <87iovzhr4w.fsf@flea.lifelogs.com> X-Mailer: VM 8.2.0b under 23.1.1 (i386-redhat-linux-gnu) 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:80274 Archived-At: Ted Zlatanov wrote at about 10:53:03 -0500 on Monday, November 11, 2013: > On Tue, 05 Nov 2013 18:54:49 -0500 wrote: > > > Alp Aker wrote at about 18:16:14 -0500 on Tuesday, November 5, 2013: > >> > Where is "trunk" located? > >> > The latest version in ftp://ftp.gnutls.org/gcrypt/gnutls/w32/ is 3.2.6 > >> > which still crashes as before... > >> > >> He meant emacs trunk: > >> > >> bzr://bzr.sv.gnu.org/emacs/trunk > > > I'm confused... the patch Ted wants me to test is part of the gnutls > > libraries... which at least until now haven't been part of the windows > > emacs package... > > The patch is against Emacs trunk. Downloading an Emacs build made after > my last commit (November 5 2013 or later) will let you confirm if the > fix is good or not. > > Thanks > Ted I tested it against the November 6th build. It seems to work in the sense that now instead of crashing emacs, gnutls just throws me into the emacs debugger: Debugger entered--Lisp error: (gnutls-error # -64) signal(gnutls-error (# -64)) gnutls-negotiate(:process # :type gnutls-x509pki :hostname "imap.gmail.com") open-gnutls-stream("tls" "tls-buffer" "imap.gmail.com" "imaps") eval-region(19 83 t #[257 "\300\242b\210\301\207" [(83) (open-gnutls-stream "tls" "tls-buffer" "imap.gmail.com" "imaps")] 2 "\n\n(fn IGNORE)"]) ; Reading at buffer position 83 eval-defun-2() eval-defun(nil) call-interactively(eval-defun nil nil) command-execute(eval-defun) Presumably, this error is due to the fact that "/usr/ssl/certs/ca-bundle.crt" is not a valid file on Cygwin (despite the comment in gnutls.el implying that it is!) Of course, it all works fine with the elisp patch that I had previously submitted. Note it also works fine in a degenerate way without cygwin-mount since the mapcar file-exists-p statement returns that none of the files exists. So, now that the bug that crashes the emacs process has been fixed, perhaps it's time to make gnutls-trustfiles actually work under cygwin. Indeed, it's worse than just not "working". If cygwin-mount is loaded then open-gnutls-stream will throw an (incomprehensible) error each and every time due to the fact that file-exists-p shows the trustfile exists while the C-code is passed a file path that is not recognized by the OS. So, there remains a fundamental incompatibility between cygwin-mount and gnutls.el.