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, bug#15648: 24.2.50; gnutls SSL connection to IMAP server causes emacs to crash completely Date: Tue, 22 Oct 2013 18:27:23 -0400 Message-ID: <21094.64459.131668.849138@consult.pretender> References: <21089.32240.198931.971000@consult.pretender> <87fvrun1pw.fsf@flea.lifelogs.com> <21093.32992.278229.646703@consult.pretender> <877gd5mo5x.fsf@flea.lifelogs.com> <21094.39055.449629.706850@consult.pretender> <21094.40085.664080.69561@consult.pretender> <21094.52645.645440.977584@consult.pretender> 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 1382480957 22356 80.91.229.3 (22 Oct 2013 22:29:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2013 22:29:17 +0000 (UTC) Cc: Ted Zlatanov , 15648@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 23 00:29:20 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 1VYkRz-0004J2-VK for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Oct 2013 00:29:20 +0200 Original-Received: from localhost ([::1]:46903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYkRz-0000dQ-Hh for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Oct 2013 18:29:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYkRq-0000d4-Di for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2013 18:29:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYkRi-00065C-Ue for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2013 18:29:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYkRi-000655-QE for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2013 18:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VYkRi-0005Dd-6W for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2013 18:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Oct 2013 22:29: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: moreinfo Original-Received: via spool by 15648-submit@debbugs.gnu.org id=B15648.138248089219992 (code B ref 15648); Tue, 22 Oct 2013 22:29:02 +0000 Original-Received: (at 15648) by debbugs.gnu.org; 22 Oct 2013 22:28:12 +0000 Original-Received: from localhost ([127.0.0.1]:36120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VYkQt-0005CM-EZ for submit@debbugs.gnu.org; Tue, 22 Oct 2013 18:28:12 -0400 Original-Received: from vms173003pub.verizon.net ([206.46.173.3]:57350) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VYkQn-0005Bn-DW for 15648@debbugs.gnu.org; Tue, 22 Oct 2013 18:28:06 -0400 Original-Received: from consult.pretender ([unknown] [72.93.211.25]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MV300G75D1OMO00@vms173003.mailsrvcs.net> for 15648@debbugs.gnu.org; Tue, 22 Oct 2013 17:27:41 -0500 (CDT) Original-Received: from consult.pretender (consult.pretender [127.0.0.1]) by consult.pretender (8.14.4/8.14.4) with ESMTP id r9MMRNWh010892; Tue, 22 Oct 2013 18:27:23 -0400 In-reply-to: <21094.52645.645440.977584@consult.pretender> 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:79518 Archived-At: emacs@kosowsky.org wrote at about 15:10:29 -0400 on Tuesday, October 22, 2013: > emacs@kosowsky.org wrote at about 11:41:09 -0400 on Tuesday, October 22, 2013: > > emacs@kosowsky.org wrote at about 11:23:59 -0400 on Tuesday, October 22, 2013: > > > Ted Zlatanov wrote at about 09:27:06 -0400 on Tuesday, October 22, 2013: > > > > On Mon, 21 Oct 2013 15:30:40 -0400 wrote: > > > > > > > > > Ted Zlatanov wrote at about 10:22:03 -0400 on Monday, October 21, 2013: > > > > >> On Fri, 18 Oct 2013 14:29:04 -0400 "" wrote: > > > > >> > > > > >> > Fault Module Name: libgnutls-28.dll > > > > >> ... > > > > >> > That being said, I downloaded 24.3 from the gnu site and tried it with > > > > >> > the latest gnutls-3.0.9 dll's from the suggested > > > > >> > http://sourceforge.net/projects/ezwinports/files/ site. > > > > >> > > > > >> > And SAME crash of emacs! > > > > >> > > > > >> Could you please try with the latest 3.x from > > > > >> ftp://ftp.gnutls.org/gcrypt/gnutls/w32/ ? > > > > >> > > > > > Same crash with 3.2.4 as with 3.0.9 > > > > > > > > Sorry, I don't know how you can be sure of the library loaded in > > > > Windows. Did you put the DLL in the same directory? > > > > > > The dll's are in a directory that lies within my system PATH. > > > I know they are loaded because (gnutls-available-p) only proves true > > > when I have all the related dll's in the PATH. > > > > > > > > > > > >> The `gnutls-boot' function is pretty inoffensive so let's make sure the > > > > >> basics are covered before we dig into the C code. > > > > > > > > Are you able to debug the Emacs executable? I don't know if the build > > > > you're using includes the necessary symbols, but a backtrace with at > > > > least function names would be extremely helpful to figure this out. > > > > > > I just used edebug... for the trace I submitted... > > > > > > > > Does the problem occur to any server or just the one you listed? You > > > > can test with > > > > > > > > (open-gnutls-stream "tls" "tls-buffer" "imap.gmail.com" "imaps") > > > > > > > > > > This gave the same crash! > > > > > > > It's strange that there's been no other reports of this issue. Do you > > > > have access to any other systems where you can test? > > > > > > Could it have anything to do with 64-bit Win7? > > > Could there be any conflicts with cygwin x86_64 that I have installed > > > (though I purposely didn't install cygwin gnutls) -- but could other > > > dll's be in conflict? > > > > OK - I answered my own question. > > There seems to be an incompatibility with the cygwin-mount library... > > In particular, the problem seems to be with the called cygwin mount > program (/bin/mount.exe). Replacing it with /bin/true.exe prevents the > crash. > > I wonder whether this is a dll incompatibility with cygwin.dll or in > particular the x86_64 version... I did some more troubleshooting... actually, I don't think it is a cygwin.dll problem nor is it a problem with the cygwin program mount.exe. The problem seems to be with the lisp code in cygwin-mount-activate in terms of how it changes file-name-handler-alist, substitute-in-file-name, and expand-file-name. I say this because gnutls causes the crash after (cygwin-mount-activate) is run. But if you wait to run (cygwin-mount-deactivate), then it won't crash. So the problem isn't with whether mount.exe has been run (I also double checked this by manually running mount.exe via call-process). Rather, it has something to do with the file name substitutions set up. So, while the physical crash may be somewhere in the lisp code. The issue is with how the cygwin file name handler lisp code interacts with the gnutls code...