From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: flitterio@gmail.com (Francis Litterio) Newsgroups: gmane.emacs.bugs Subject: bug#23658: 25.1.50; make-network-connection fails to connect to IPv6 address on Windows Date: Mon, 30 May 2016 19:44:43 -0400 Message-ID: <87d1o3yty2.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1464653123 10382 80.91.229.3 (31 May 2016 00:05:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 May 2016 00:05:23 +0000 (UTC) To: 23658@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 31 02:05:17 2016 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 1b7XBM-0005y4-GZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 May 2016 02:05:16 +0200 Original-Received: from localhost ([::1]:33669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7XBL-0003wt-H3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2016 20:05:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7XBD-0003us-Pm for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 20:05:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7XB8-0005Eo-Hr for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 20:05:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7XB8-0005Ed-Dn for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 20:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b7XB8-0005Ed-34 for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 20:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: flitterio@gmail.com (Francis Litterio) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 May 2016 00:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23658 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146465305720062 (code B ref -1); Tue, 31 May 2016 00:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 May 2016 00:04:17 +0000 Original-Received: from localhost ([127.0.0.1]:47895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7XAO-0005DW-Qy for submit@debbugs.gnu.org; Mon, 30 May 2016 20:04:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7XAM-0005DF-Ch for submit@debbugs.gnu.org; Mon, 30 May 2016 20:04:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7XAF-00058h-HX for submit@debbugs.gnu.org; Mon, 30 May 2016 20:04:09 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7XAF-00058a-EN for submit@debbugs.gnu.org; Mon, 30 May 2016 20:04:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7XAC-0003l4-Pi for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 20:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7XAA-000589-7m for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 20:04:03 -0400 Original-Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:33215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7XAA-000582-1d for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 20:04:02 -0400 Original-Received: by mail-yw0-x235.google.com with SMTP id h19so173986526ywc.0 for ; Mon, 30 May 2016 17:04:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version; bh=B17uZQ2KB1enO2Cl0/HW/ddNL1p7tZNjr17F8TrYm04=; b=KV+fWKsPCn4cUwU577rvgTpKDznGEdu+4qjSMGg+blBD655c4KEGLbdHDGkCCO0zB9 sszb1sWRnBatOnEuAbE3rI1l6oqIWGWDWECPp9/2P2v4yjt+Hk6z70LvDoQrZAHBmmAA 5CCfc9SbOMHroLQn9MwEXabXdXBPk3BX6X0RibhPaeXsGbkHLTheZjHZVCUhrHa0AAj9 l8MsWIuuklhrf29S5qbW7J77gJHst7yqZL8P7RctyOEb0T2OM6+XqKBjaI9oZZBq+TMs p5eIIN7TZsvkSQ0H6wEKw4OtbpcIyvyuqPb6Qnk0hbqZej4CLxSXl2IBb76QVlkwjI6Z uMEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=B17uZQ2KB1enO2Cl0/HW/ddNL1p7tZNjr17F8TrYm04=; b=LA+rW2BSaPU1bX4L2CMzq7x6FYez2iOrtG4zhFg/ehcjCt8NJJoMxoCvLwAkfEihaz OZ2eAS90UYyetNdXQtQa9bb2kxPI0g2FB1DwFBxzQ3Y2AKraI0FQUcXCFs0KfC4h8wM8 egcRujJi8BRvZ4q/3wa6AhG6X6trRRPGaOyIWDv27/3X6oV6Pa2ZThIb50I47VrTCjvX 8npvuJRvpmYva1XgZLksb5xyQod3M1LnYiZjg8HMPhDAFvGaY+7W+k8DU+MTqyTgYidj s3DNYEikfF+uZzfIOGqp/9Q+00QdB0ENWEO3QXKckRbGfBNy9T3i0GwGOANBRRHSAlE0 BbKQ== X-Gm-Message-State: ALyK8tLE0hwkSdwnDq7zEc1bk+srSdMzLaGrVmaNc+HZ3dLnIqt/17QZplEuzF212FYSZg== X-Received: by 10.13.227.196 with SMTP id m187mr20477975ywe.18.1464653041210; Mon, 30 May 2016 17:04:01 -0700 (PDT) Original-Received: from puppy.gmail.com ([2600:1000:b01c:c0a0:d032:3db3:83a4:5c3b]) by smtp.gmail.com with ESMTPSA id y126sm14892676ywy.47.2016.05.30.17.03.59 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 May 2016 17:03:59 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:118879 Archived-At: Using Emacs built from the latest sources (obtained by cloning the Git repo at git://git.savannah.gnu.org/emacs.git), make-network-connection fails when connecting to an IPv6 address from a Windows machine that has an IPv6 address assigned via DHCP. To reproduce: 1. On Windows 7 SP1 (with all updates installed), launch Emacs using: emacs.exe -Q 2. Evaluate the following form in the *scratch* buffer: (progn (defun my-sentinel (proc event) (with-current-buffer "*scratch*" (save-excursion (goto-char (point-max)) (insert (format "\n>> proc = '%s', status = '%s', event = '%s'" proc (process-status proc) event))))) (defun my-filter (proc str) (with-current-buffer "*scratch*" (save-excursion (goto-char (point-max)) (insert (format "\n>> proc = '%s', status = '%s', str = '%s'" proc (process-status proc) str))))) ;; These IP addresses are both for host rajaniemi.freenode.net. (let* ((ipv6-host "2001:708:40:2001:a822:baff:fec4:2428") (ipv4-host "195.148.124.79") (process (make-network-process :name "zzz" :buffer nil :host ipv6-host ;; :host ipv4-host :service 6667 :nowait t))) (set-process-sentinel process 'my-sentinel) (set-process-filter process 'my-filter))) 3. The following text will appear at the end of the *scratch* buffer (inserted by function my-sentinel, above): >> proc = 'zzz', status = 'failed', event = 'failed with code 14 ' 4. If you change "ipv6-host" to "ipv4-host" in the call to make-network-process, the connection is established successfully, and you see the data sent by the IRC server accumulate at the end of the *scratch* buffer (inserted by function my-filter, above). My local system has an IPv6 address, but I'm not sure if that is required for this problem to happen. -- Fran Litterio In GNU Emacs 25.1.50.1 (i686-pc-mingw32) of 2016-05-28 built on PUPPY Repository revision: 549470fdf234acb4da7941e3bb9b28ed63a51876 Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Recent messages: Quit Mark set File 'my-erc.el' has changed! Reload ~/.emacs! [2 times] Type "q" to delete help window. C-M-d runs the command my-kill-to-bottom File 'my-erc.el' has changed! Reload ~/.emacs! Making completion list... report-emacs-bug is on funcall-interactively: Beginning of buffer Making completion list... Configured using: 'configure --prefix=/c/apps/emacs --without-x --without-xpm --without-png --without-jpeg --without-tiff --without-gif' Configured features: SOUND NOTIFY ACL TOOLKIT_SCROLL_BARS Important settings: value of $LANG: C.ISO-8859-1 locale-coding-system: cp1252 Major mode: Buffer Menu Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t diff-auto-refine-mode: t show-paren-mode: t save-place-mode: t icomplete-mode: t savehist-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow mail-extr emacsbug tabify imenu hippie-exp crm erc-sasl debug pulse hi-lock eieio-opt speedbar sb-image ezimage dframe find-func edmacro kmacro jka-compr misearch multi-isearch vc-git filecache help-fns server sort gnus-draft gnus-agent gnus-srvr nnvirtual nndraft nnmh gnus-msg gnus-cite canlock gnus-async gnus-score score-mode gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-cache gnus-sum fpl-moo fpl-react cl erc-notify erc-truncate erc-log erc-dcc erc-list erc-menu erc-join erc-ring erc-networks erc-pcomplete erc-track erc-match erc-button erc-fill erc-stamp erc-netsplit erc-goodies erc erc-backend erc-compat thingatpt source-safe ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff grep sh-script smie executable python tramp-sh json map ielm pp sgml-mode csharp-mode cc-langs smtpmail sendmail nntp gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc parse-time gnus-spec gnus-int gnus-range message rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win nnoo gnus nnheader subr-x gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit etags vc vc-dispatcher dired-aux hexl smerge-mode diff-mode easy-mmode paren man info compile apropos tramp tramp-compat tramp-loaddefs trampver ucs-normalize format-spec advice saveplace icomplete xref project savehist browse-url shell pcomplete warnings arc-mode archive-mode ange-ftp socks network-stream puny nsm starttls tls gnutls dired dired-loaddefs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs comint ansi-color ring calc-ext calc calc-loaddefs calc-macs time-stamp finder-inf package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 8 662208 66845) (symbols 32 46115 1) (miscs 32 489 2218) (strings 16 116431 18641) (string-bytes 1 3446166) (vectors 8 83211) (vector-slots 4 2033917 82112) (floats 8 1062 869) (intervals 28 30189 2675) (buffers 528 63))