Skip Menu |
 

This queue is for tickets about the HTTP-Server-Simple CPAN distribution.

Report information
The Basics
Id: 130448
Status: new
Priority: 0/
Queue: HTTP-Server-Simple

People
Owner: Nobody in particular
Requestors: jason [...] ivouch.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=-0.441 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RDNS_NONE=0.793, SPF_SOFTFAIL=0.665] autolearn=no
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
Importance: normal
Content-Type: multipart/alternative; boundary="_608714F2-86FE-45E1-B06C-158ABC903E1A_"
Message-ID: <5d6fe757.1c69fb81.ea8cc.2ad9 [...] mx.google.com>
X-Received: by 2002:a17:902:6a8c:: with SMTP id n12mr41054705plk.159.1567614808417; Wed, 04 Sep 2019 09:33:28 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -0.441
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B47692401D9 for <cpan-bug+HTTP-Server-Simple [...] hipster.bestpractical.com>; Wed, 4 Sep 2019 12:33:43 -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 xywL-3W2KJsE for <cpan-bug+HTTP-Server-Simple [...] hipster.bestpractical.com>; Wed, 4 Sep 2019 12:33:42 -0400 (EDT)
Received: from xx1.develooper.com (unknown [147.75.38.233]) by hipster.bestpractical.com (Postfix) with ESMTPS id 5420F24019E for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Wed, 4 Sep 2019 12:33:42 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 091B27CF56 for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Wed, 4 Sep 2019 09:33:42 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 26D1E7C1C8 for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Wed, 4 Sep 2019 09:33:40 -0700 (PDT)
Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id D04167CF56 for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Wed, 4 Sep 2019 09:33:29 -0700 (PDT)
Received: by mail-pl1-f177.google.com with SMTP id x3so4661191plr.12 for <bug-HTTP-Server-Simple [...] rt.cpan.org>; Wed, 04 Sep 2019 09:33:29 -0700 (PDT)
Received: from ?IPv6:::ffff:192.168.1.128? (c-98-232-94-82.hsd1.wa.comcast.net. [98.232.94.82]) by smtp.gmail.com with ESMTPSA id x5sm13170124pfi.165.2019.09.04.09.33.27 for <bug-HTTP-Server-Simple [...] rt.cpan.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Sep 2019 09:33:27 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] ivouch-com.20150623.gappssmtp.com
X-Google-SMTP-Source: APXvYqwshCObbA5NmGQBJk6J698reuiIT1cYqrmMqWEyeHwMJqn1rb9AzZv4raj8D/E+llUi19DWlA==
Delivered-To: cpan-bug+HTTP-Server-Simple [...] hipster.bestpractical.com
Subject: Bad arg length for Socket::sockaddr_family, length is 0, should be at least 2
Return-Path: <jason [...] ivouch.com>
X-Priority: 3
X-RT-Mail-Extension: http-server-simple
X-Original-To: cpan-bug+HTTP-Server-Simple [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ivouch-com.20150623.gappssmtp.com; s=20150623; h=message-id:mime-version:to:from:subject:date:importance; bh=q4V67+8Zl2Kd9SbnOVtQxiJLJtSrDSfoOFx+n9m3qEY=; b=kPaJGixyzpCIqDxezo1MyVlpRkqE49YPhze0l2/6ArcAb1hGFAUaXKDR8eR8koc2ia r7wV3MMAARRYR2YS1q6RmrhXFz0YSQ036pXqgMiO4AtJHq0q9n5153377cf6m1TPWKyu 8QD5Oiwxzjo/suAPwvc7wBIGLP7/sYdzrn5s0R1gJFbmjJQKhR59jmsHaUw3hD5Qkv0V b3kt0d9+kpOxDhFwDa1C7xw/x1oBoPNzZued9Cywrx3I09c1EGAIq26uYEqktvMSZ5bp /f7o+N3RFGEXRIwqjrQzZHBSSkwCISMV0ahG3twytjW11H0s5sokR3qUR1O9iRzyD/2Q Jumg==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance; bh=q4V67+8Zl2Kd9SbnOVtQxiJLJtSrDSfoOFx+n9m3qEY=; b=J0za/3wkNLDmmyO0wkkdKDyEX0Z52ulmE0lJmvGcmQd+bAF1JmQCco7mZiTP1HH+AX NRpObDT6uppwdIRp7rSglrD2sBIrWVPcANDZ7SBWPP7VHSrIxf2xc5IxZWnlYJDwxp2T 5JGCJJQvduxeCuCk0wHvPZDM3aXPumgfpKO4bBxk53pjANKDhuj8Wr641iduVAqGWQ30 SRfve4TgIQqp2djuil7lg/Jws1ygU3UGgGnZwwWvfABSUB1rcnBbJfeq/ktsPlJ4W0Vn uKEJbZ/1sDxgu+fTAYFUTPO59qCwovZyEt2nM9wjBsoHgG721ZCpK+2ZPqIi9fGlfvXb W32w==
X-PMX-Spam: Gauge=XI, Probability=11%, Report=' PRIORITY_NO_NAME 0.716, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTH_SIZE_3000_MORE 0, BODYTEXTP_SIZE_3000_LESS 0, DATE_TZ_NA 0, DKIM_SIGNATURE 0, KNOWN_MTA_TFX 0, NO_URI_HTTPS 0, SINGLE_URI_IN_BODY 0, SPF_PASS 0, SXL_IP_TFX_WM 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BODY_NO_MAILTO 0, __BODY_TEXT_X4 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FUR_RDNS_GMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_X_PRIORITY 0, __HELO_GMAIL 0, __HIGHBITS 0, __HTML_MSWORD 0, __HTML_TAG_DIV 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MULTIPLE_URI_TEXT 0, __RDNS_WEBMAIL 0, __SANE_MSGID 0, __SINGLE_URI_MPART_BOTH 0, __STYLE_RATWARE_NEG 0, __STYLE_TAG 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0, __TO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __X_GOOGLE_DKIM_SIGNATURE 0, __YOUTUBE_RCVD 0, __blackholes.mail-abuse.org_ERROR , __zen.spamhaus.org_ERROR '
Date: Wed, 4 Sep 2019 09:33:28 -0700
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.9.4.162416
To: " bug-HTTP-Server-Simple [...] rt.cpan.org" <bug-HTTP-Server-Simple [...] rt.cpan.org>
From: Hermann Calabria <jason [...] ivouch.com>
X-GM-Message-State: APjAAAV/NOU7NG/YuXC68ODxkdFhIPS9eeK9Z+xPW+HGIIZMBqGB+8d8 TmQrw5iUSkufON4h6olQ+dQhO6MXmIc=
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1859
Download (untitled) / with headers
text/plain 1.8k
While using Perl Dancer under development mode, HTTP::Server::Simple crashes under perl 5.26.2. This happens very intermittently (as in rarely), but when it does, I get this: Use of uninitialized value in subroutine entry at /home/jason/perl5/perlbrew/perls/perl-5.26.2/lib/site_perl/5.26.2/HTTP/Server/Simple.pm line 397. Bad arg length for Socket::sockaddr_family, length is 0, should be at least 2 at /home/jason/perl5/perlbrew/perls/perl-5.26.2/lib/site_perl/5.26.2/HTTP/Server/Simple.pm line 397. jason@bear:~/foo/bar$ I just restart my app and everything works well for awhile, until it crashes again. This is an annoyance more than anything, but should probably be fixed. FYI … ./HTTP/Server/Simple.pm, near line 397: sub _process_request { my $self = shift; # Create a callback closure that is invoked for each incoming request; # the $self above is bound into the closure. sub { $self->stdio_handle(*STDIN) unless $self->stdio_handle; # Default to unencoded, raw data out. # if you're sending utf8 and latin1 data mixed, you may need to override this binmode STDIN, ':raw'; binmode STDOUT, ':raw'; # The ternary operator below is to protect against a crash caused by IE # Ported from Catalyst::Engine::HTTP (Originally by Jasper Krogh and Peter Edwards) # ( http://dev.catalyst.perl.org/changeset/5195, 5221 ) my $remote_sockaddr = getpeername( $self->stdio_handle ); my $family = sockaddr_family($remote_sockaddr); ################# <====== LINE 397 my ( $iport, $iaddr ) = $remote_sockaddr ? ( ($family == AF_INET6) ? sockaddr_in6($remote_sockaddr) : sockaddr_in($remote_sockaddr) ) : (undef,undef); …
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: base64
X-RT-Original-Encoding: utf-8
Content-Length: 4012


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.