all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yann Hodique <yann.hodique@gmail.com>
To: emacs-devel@gnu.org
Subject: weird gnutls issue on OSX
Date: Wed, 29 Jun 2016 09:51:23 -0700	[thread overview]
Message-ID: <y9gltwgckkfo.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2031 bytes --]

Hi,

there seems to be an "interesting" issue going on around gnutls in the
master branch, at least for OSX.
https://github.com/sigma/gh.el/issues/73 provides some backstory

but the short of it is this: with gnutls enabled,
(url-retrieve-synchronously "https://www.gnu.org") doesn't work, while
(url-retrieve-synchronously "https://www.google.com") does.

And what's worse, when it fails, it fails pretty silently. Which
generates some confusion.
(btw, without gnutls everything's fine)

The relevant part of the gnutls.c logs reads:

,----
| Contacting host: www.gnu.org:443
| gnutls.c: [1] (Emacs) connecting to host: www.gnu.org
| gnutls.c: [1] (Emacs) allocating credentials
| gnutls.c: [2] (Emacs) allocating x509 credentials
| gnutls.c: [2] (Emacs) using default verification flags
| gnutls.c: [audit] There was a non-CA certificate in the trusted list: O=Entrust.
| 
| gnutls.c: [1] (Emacs) setting the trustfile:  /etc/ssl/certs/ca-certificates.crt
| gnutls.c: [audit] There was a non-CA certificate in the trusted list: O=Entrust.
| 
| gnutls.c: [1] (Emacs) gnutls callbacks
| gnutls.c: [1] (Emacs) gnutls_init
| gnutls.c: [1] (Emacs) got non-default priority string: NORMAL
| gnutls.c: [1] (Emacs) setting the priority string
| gnutls.c: [audit] Note that the security level of the Diffie-Hellman key exchang
| 
| gnutls.c: [2] WRITE: -1 returned from 0x9, errno: 57
| 
| gnutls.c: [1] (Emacs) fatal error: Error in the push function.
`----

Attached are the logs for the following commands:

$ /usr/local/bin/emacs -q --batch --eval '(progn (setq gnutls-log-level 2) (with-current-buffer (url-retrieve-synchronously "https://www.gnu.org") (princ (buffer-string))))' > gnu.log 2>&1

$ /usr/local/bin/emacs -q --batch --eval '(progn (setq gnutls-log-level 2) (with-current-buffer (url-retrieve-synchronously "https://www.google.com") (princ (buffer-string))))'

Does that ring any bell?

Thanks

Yann.

-- 
There are weapons you cannot hold in your hand.
You can only hold them in your mind.

  -- Bene Gesserit Teaching

[-- Attachment #2: google.log.gz --]
[-- Type: application/octet-stream, Size: 5162 bytes --]

[-- Attachment #3: gnu.log.gz --]
[-- Type: application/octet-stream, Size: 2567 bytes --]

             reply	other threads:[~2016-06-29 16:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-29 16:51 Yann Hodique [this message]
2016-06-29 18:00 ` weird gnutls issue on OSX Noam Postavsky
2016-06-29 18:09   ` Yann Hodique
2016-06-30  3:44   ` thierry
2016-06-30 12:15     ` Noam Postavsky
2016-06-29 18:02 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y9gltwgckkfo.fsf@gmail.com \
    --to=yann.hodique@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.