Skip Menu |
 

This queue is for tickets about the Net-Async-HTTP CPAN distribution.

Report information
The Basics
Id: 124927
Status: resolved
Priority: 0/
Queue: Net-Async-HTTP

People
Owner: Nobody in particular
Requestors: andy [...] andybev.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-3.477 tagged_above=-99.9 required=10 tests=[AWL=-1.478, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_FAIL=0.001] autolearn=no
X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; i686-pc-linux-gnu)
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
Content-Type: multipart/mixed; boundary="Multipart=_Mon__26_Mar_2018_21_25_11_+0100_pMEhdIiRQhNFRISI"
Message-ID: <20180326212511.9f1388e8793335887c5447f5 [...] andybev.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Virus-Scanned: clamav-milter 0.99.4 at imap.simplelists.com
X-Spam-Score: -3.477
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id C7C3524022C for <cpan-bug+Net-Async-HTTP [...] hipster.bestpractical.com>; Mon, 26 Mar 2018 16:25:47 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qA9NLMuSYy2R for <cpan-bug+Net-Async-HTTP [...] hipster.bestpractical.com>; Mon, 26 Mar 2018 16:25:45 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 6CDA2240228 for <bug-Net-Async-HTTP [...] rt.cpan.org>; Mon, 26 Mar 2018 16:25:44 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 7468E120E07 for <bug-Net-Async-HTTP [...] rt.cpan.org>; Mon, 26 Mar 2018 13:25:43 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id A56D0120E05 for <bug-Net-Async-HTTP [...] rt.cpan.org>; Mon, 26 Mar 2018 13:25:40 -0700 (PDT)
Received: from outbound.simplelists.com (earth.simplelists.com [89.16.184.171]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 769FE120E4B for <bug-Net-Async-HTTP [...] rt.cpan.org>; Mon, 26 Mar 2018 13:25:28 -0700 (PDT)
Received: from imap.simplelists.com (imap.simplelists.com [213.138.110.157]) by outbound.simplelists.com (Postfix) with ESMTP id 1362763A6034 for <bug-Net-Async-HTTP [...] rt.cpan.org>; Mon, 26 Mar 2018 20:25:14 +0000 (UTC)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] andybev.com
Delivered-To: cpan-bug+Net-Async-HTTP [...] hipster.bestpractical.com
Subject: Suspected memory leak
Return-Path: <andy [...] andybev.com>
X-RT-Mail-Extension: net-async-http
X-Original-To: cpan-bug+Net-Async-HTTP [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=simple/simple; d=andybev.com; s=selector1; t=1522095914; bh=hnl2hLW826H/m7/7ruG8l3VUNumOzlbjcH6gv4+jwMU=; h=Date:From:To:Subject; b=k4WgTLNVEPqByniexLQFpTDR8DHxWhpjgqMA3W4WyiYZpa+HD8IMO08sa/TdniUub vaYP8uu6GR/hJiQAAF57925vOz6UDZsFsHg14hPlqob2AexW+v8gqWXYumde//PSxJ /7wn4XWlFBBsDwb07rA0VsCz7Qeiu+Jxl4lw+tcY=
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, MIME_LOWER_CASE 0.05, MIME_TEXT_ONLY_MP_MIXED 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, NO_CTA_URI_FOUND 0, NO_URI_FOUND 0, NO_URI_HTTPS 0, SPF_PASS 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_MIXED 0, __HAS_ATTACHMENT 0, __HAS_ATTACHMENT1 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __NO_HTML_TAG_RAW 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __blackholes.mail-abuse.org_TIMEOUT , __zen.spamhaus.org_ERROR '
Date: Mon, 26 Mar 2018 21:25:11 +0100
X-Spam-Level:
X-Virus-Status: Clean
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.3.26.201516
To: bug-Net-Async-HTTP [...] rt.cpan.org
From: Andrew Beverley <andy [...] andybev.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ascii
Content-Length: 699
Download (untitled) / with headers
text/plain 699b
When GETting from some HTTPS hosts, it appears that some memory is not released, in particular arrays (and their references). Strangely this only happens with some HTTPS hosts, not all, but I cannot work out the difference between those that do and don't exhibit the problem. The attached script shows the behaviour, printing the number of arrays in the arena after each set of requests. After running the script for an hour or so, you can see that the number gradually increases. I have tried this with 2 machines on 2 different networks: one is Perl 5.22.1 and the other is 5.24.1. Both use Net::Async::HTTP version 0.41. I would like to sponsor the fix for this problem, if possible. Thanks!
Content-Type: text/x-perl; name="async-mem-test.pl"
Content-Disposition: attachment; filename="async-mem-test.pl"
Content-Transfer-Encoding: 7bit
Content-Length: 1312
Download async-mem-test.pl
text/x-perl 1.2k

Message body is not shown because sender requested not to inline it.

MIME-Version: 1.0
X-Spam-Status: No, score=-5.41 tagged_above=-99.9 required=10 tests=[AWL=0.589, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_OUR_RT=-4, SPF_FAIL=0.001] autolearn=ham
In-Reply-To: <rt-4.0.18-12438-1522095950-1853.124927-3-0 [...] rt.cpan.org>
X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; i686-pc-linux-gnu)
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-124927 [...] rt.cpan.org> <20180326212511.9f1388e8793335887c5447f5 [...] andybev.com> <rt-4.0.18-12438-1522095950-1853.124927-3-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Virus-Scanned: clamav-milter 0.99.4 at imap.simplelists.com
Message-ID: <20180327103050.542463231f5e6cce2d6f7453 [...] andybev.com>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.41
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] andybev.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 19D6A24022C for <cpan-bug+Net-Async-HTTP [...] hipster.bestpractical.com>; Tue, 27 Mar 2018 05:31:10 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ivXTI0eQOCw9 for <cpan-bug+Net-Async-HTTP [...] hipster.bestpractical.com>; Tue, 27 Mar 2018 05:31:06 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id AD3F2240228 for <bug-Net-Async-HTTP [...] rt.cpan.org>; Tue, 27 Mar 2018 05:31:06 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 0FCB211F2D0 for <bug-Net-Async-HTTP [...] rt.cpan.org>; Tue, 27 Mar 2018 02:31:05 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 6A68B11F2AF for <bug-Net-Async-HTTP [...] rt.cpan.org>; Tue, 27 Mar 2018 02:31:02 -0700 (PDT)
Received: from outbound.simplelists.com (earth.simplelists.com [89.16.184.171]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id D38BD11F2AE for <bug-Net-Async-HTTP [...] rt.cpan.org>; Tue, 27 Mar 2018 02:30:56 -0700 (PDT)
Received: from imap.simplelists.com (imap.simplelists.com [213.138.110.157]) by outbound.simplelists.com (Postfix) with ESMTP id F08D063A603F for <bug-Net-Async-HTTP [...] rt.cpan.org>; Tue, 27 Mar 2018 09:30:53 +0000 (UTC)
Delivered-To: cpan-bug+Net-Async-HTTP [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #124927] Suspected memory leak
Return-Path: <andy [...] andybev.com>
Dkim-Signature: v=1; a=rsa-sha256; c=simple/simple; d=andybev.com; s=selector1; t=1522143054; bh=VD2CtAb5l4DkLadriv+Hz16KMP2g/Il7P9ObZP+eqns=; h=Date:From:To:Subject:In-Reply-To:References; b=c2PNHPosmuN9GQr7q+MFIn2b67+XQzDLWBNX2Q4JVx8nNu3NF0851Op2tPkgtEzSq CKGOOvVQWeDBZp+/ppSDwzdkLY/9/vOqldmZQPXhXvqndh3677yVxTBpJFymj5lolU cgzJweIDBuo0F7CgEM24pVe/kc/psqJzOLp+wkyo=
X-Original-To: cpan-bug+Net-Async-HTTP [...] hipster.bestpractical.com
X-RT-Mail-Extension: net-async-http
Date: Tue, 27 Mar 2018 10:30:50 +0100
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, MIME_LOWER_CASE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_500_599 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, IN_REP_TO 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, NO_URI_HTTPS 0, REFERENCES 0, SPF_PASS 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __NO_HTML_TAG_RAW 0, __REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_MAILTO 0, __URI_NS , __URI_WITHOUT_PATH 0, __blackholes.mail-abuse.org_TIMEOUT , __zen.spamhaus.org_ERROR '
X-Spam-Level:
X-Virus-Status: Clean
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.3.27.92416
To: bug-Net-Async-HTTP [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Andrew Beverley <andy [...] andybev.com>
RT-Message-ID: <rt-4.0.18-22908-1522143071-16.124927-0-0 [...] rt.cpan.org>
Content-Length: 518
Download (untitled) / with headers
text/plain 518b
I'm not sure whether it helps, but after the process has been running for a long time, a core dump of the process's memory shows lots of data that looks like SSL certificate information. For example: 295487 www.digicert.com1 0 197097 DigiCert Inc1 168802 DigiCert Global Root CA 98622 DigiCert Global Root CA0 98579 digicert inc1 98496 O_lv^ 98490 JL}> 98487 www.digicert.com 98487 DigiCert Inc The numbers above define how many references of that particular string there are in the process's memory.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-22908-1522143071-16.124927-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-124927 [...] rt.cpan.org> <20180326212511.9f1388e8793335887c5447f5 [...] andybev.com> <rt-4.0.18-12438-1522095950-1853.124927-3-0 [...] rt.cpan.org> <20180327103050.542463231f5e6cce2d6f7453 [...] andybev.com> <rt-4.0.18-22908-1522143071-16.124927-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-4942-1531845874-1520.124927-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 150
Download (untitled) / with headers
text/plain 150b
I suspect this may be a bug in IO::Socket::SSL itself. I have opened at ticket at https://rt.cpan.org/Ticket/Display.html?id=125867 -- Paul Evans
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-4942-1531845874-1520.124927-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <RT-Ticket-124927 [...] rt.cpan.org> <20180326212511.9f1388e8793335887c5447f5 [...] andybev.com> <rt-4.0.18-12438-1522095950-1853.124927-3-0 [...] rt.cpan.org> <20180327103050.542463231f5e6cce2d6f7453 [...] andybev.com> <rt-4.0.18-22908-1522143071-16.124927-0-0 [...] rt.cpan.org> <rt-4.0.18-4942-1531845874-1520.124927-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-20357-1574765884-1492.124927-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 256
Download (untitled) / with headers
text/plain 256b
On Tue Jul 17 12:44:34 2018, PEVANS wrote: Show quoted text
> I suspect this may be a bug in IO::Socket::SSL itself. I have opened > at ticket at > https://rt.cpan.org/Ticket/Display.html?id=125867
This was indeed an SSL problem that was fixed upstream. -- Paul Evans


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.