From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23158: 25.1.50; crash by consecutive http accesses Date: Wed, 30 Mar 2016 17:43:55 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459352723 19966 80.91.229.3 (30 Mar 2016 15:45:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2016 15:45:23 +0000 (UTC) Cc: 23158@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 30 17:45:11 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 1alIIx-0000nK-98 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Mar 2016 17:45:11 +0200 Original-Received: from localhost ([::1]:54956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alIIw-00033X-BC for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Mar 2016 11:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alIIr-00030C-Rq for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2016 11:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alIIo-0002Pe-MK for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2016 11:45:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alIIo-0002Pa-Jq for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2016 11:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1alIIo-0000lc-Eu for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2016 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Mar 2016 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23158 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23158-submit@debbugs.gnu.org id=B23158.14593526442862 (code B ref 23158); Wed, 30 Mar 2016 15:45:02 +0000 Original-Received: (at 23158) by debbugs.gnu.org; 30 Mar 2016 15:44:04 +0000 Original-Received: from localhost ([127.0.0.1]:45236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alIHs-0000k6-0z for submit@debbugs.gnu.org; Wed, 30 Mar 2016 11:44:04 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:35674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alIHq-0000jZ-J8 for 23158@debbugs.gnu.org; Wed, 30 Mar 2016 11:44:03 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1alIHj-0007gO-T1; Wed, 30 Mar 2016 17:43:59 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUAAAAaGxwLCw0BAQMC BAYBAQEAAQNUVVi5ubsCAgQBAgNxcnQJCQoICAgGBgb1ZQlrAAABJUlEQVQ4jWNQFDpz5tCZQ0pn dM4AwSElGGBgiAxgwAJYgQirBCe6AFZVpCggaAAChBLWxRWAS44oe1hBPsemgRXN5wEICVRluDgI EBqAQwKrBhKCB8UgVhQeA0rgoTsITC7F0IEqj8WKmZiiAQysoQyhR1AVQgEwqRkji8LCgQtoQyaG UWCPcy3AtAMClpogG44USqwmWNWzhjJPQXESwlfGU7CoBwEzHBKsmX5QxgQkA0G0pR+aAJQMtvRF dydUgfE8oCCWRMQKdi622A/F6qpQoDZLLOLs5UAgguIciKnc28sLqytRJcCAuwMIijEcysAFlqjC YgdYohJJKVxid3k13A6GAJhvogIYy8urd4swrHz37u29t+/A4M7dt3fv3j0ELpwA2qxIS+pKHq4A AAAASUVORK5CYII= In-Reply-To: (Katsumi Yamaoka's message of "Wed, 30 Mar 2016 15:20:09 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115769 Archived-At: Katsumi Yamaoka writes: > When trying to read it using Gnus, Gnus tries to fetch gravatar > image for each address, and those consecutive http accesses seem > to crash Emacs. Here is a simplified code for `emacs -Q' to > reproduce the problem: > > (progn > (require 'gnus-gravatar) > (require 'url) > (with-temp-buffer > (let ((url-cache-expire-time 0) > (gnus-article-buffer (current-buffer))) > (insert "From:") > (dotimes (i 255) (insert " foo@example.com.invalid,")) > (insert "\n") > (gnus-gravatar-transform-address "from" 'from-gravatar)))) Hm... this doesn't crash Emacs on this Linux machine, at least. > #0 0x00475e27 in setup_coding_system (coding_system=2025368, coding=0xffffffff) at coding.c:5706 > eol_type = > #1 0x005734fa in setup_process_coding_systems (process=process@entry=1659289077) at process.c:7507 > inch = 64 > outch = 64 > coding_system = > #2 0x00577705 in Fmake_network_process (ip_addresses=, proc=1659289077) at process.c:3375 > family = 2 This is happening in the code paths that were refactored during the async network rewrite, but this seems to be called pretty straightforwardly here (not in a callback from the DNS code). (Which makes sense, since Windows doesn't have getaddrinfo_a...) Hm... coding=0xffffffff looks pretty suspicious, but it's difficult to tell with an optimised build. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no