Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

"commandline was not set during initialization" error with global __DIE__ signal handler #54

Open
fsitedev opened this Issue · 0 comments

1 participant

@fsitedev

We have the following test application with global sigdie handler:

#!/usr/bin/perl

use Carp qw(cluck);
BEGIN {$SIG{__DIE__} = sub {cluck @_}};

my $app = sub {
  my $env = shift;
};

Starting it in common way:

starman --preload-app app.psgi

fires "commandline was not set during initialization" error

commandline was not set during initialization at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server.pm line 103.
 at app.psgi line 9.
        Plack::Sandbox::app_2epsgi::__ANON__('commandline was not set during initialization at /usr/local/p...') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server.pm line 103
        Net::Server::commandline('Starman::Server=HASH(0x14fa6c8)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server.pm line 92
        eval {...} called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server.pm line 92
        Net::Server::_initialize('Starman::Server=HASH(0x14fa6c8)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server.pm line 50
        Net::Server::run('Starman::Server=HASH(0x14fa6c8)', 'port', 'ARRAY(0x1917740)', 'host', 'ARRAY(0x14e3348)', 'proto', 'ARRAY(0x1917770)', 'serialize', 'flock', ...) called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Starman/Server.pm line 67
        Starman::Server::run('Starman::Server=HASH(0x14fa6c8)', 'CODE(0x14e2e38)', 'HASH(0x14e30d8)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Plack/Handler/Starman.pm line 18
        Plack::Handler::Starman::run('Plack::Handler::Starman=HASH(0x14e2c10)', 'CODE(0x14e2e38)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Plack/Loader.pm line 84
        Plack::Loader::run('Plack::Loader=HASH(0x14dd5a8)', 'Plack::Handler::Starman=HASH(0x14e2c10)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Plack/Runner.pm line 267
        Plack::Runner::run('Plack::Runner=HASH(0x130fdb0)') called at /usr/local/perl-5.14.2/bin/starman line 31
2012/11/08-15:38:31 Starman::Server (type Net::Server::PreFork) starting! pid(6272)
Address family not supported by protocol at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server/Proto.pm line 133.
 at app.psgi line 9.
        Plack::Sandbox::app_2epsgi::__ANON__('Address family not supported by protocol at /usr/local/perl-5...') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server/Proto.pm line 133
        eval {...} called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server/Proto.pm line 133
        Net::Server::Proto::get_addr_info('Net::Server::Proto', '*', 5000, 'tcp') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server/Proto.pm line 81
        eval {...} called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server/Proto.pm line 81
        Net::Server::Proto::parse_info('Net::Server::Proto', 5000, '*', 'tcp', undef, 'Starman::Server=HASH(0x14fa6c8)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server.pm line 279
        Net::Server::port_info('Starman::Server=HASH(0x14fa6c8)', 5000, '*', 'tcp', undef) called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server.pm line 264
        Net::Server::prepared_ports('Starman::Server=HASH(0x14fa6c8)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server.pm line 240
        Net::Server::pre_bind('Starman::Server=HASH(0x14fa6c8)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server.pm line 55
        Net::Server::run('Starman::Server=HASH(0x14fa6c8)', 'port', 'ARRAY(0x1917740)', 'host', 'ARRAY(0x14e3348)', 'proto', 'ARRAY(0x1917770)', 'serialize', 'flock', ...) called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Starman/Server.pm line 67
        Starman::Server::run('Starman::Server=HASH(0x14fa6c8)', 'CODE(0x14e2e38)', 'HASH(0x14e30d8)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Plack/Handler/Starman.pm line 18
        Plack::Handler::Starman::run('Plack::Handler::Starman=HASH(0x14e2c10)', 'CODE(0x14e2e38)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Plack/Loader.pm line 84
        Plack::Loader::run('Plack::Loader=HASH(0x14dd5a8)', 'Plack::Handler::Starman=HASH(0x14e2c10)') called at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Plack/Runner.pm line 267
        Plack::Runner::run('Plack::Runner=HASH(0x130fdb0)') called at /usr/local/perl-5.14.2/bin/starman line 31
Resolved [*]:5000 to [0.0.0.0]:5000, IPv4
Host [*] resolved to IPv6 address [::] but IO::Socket::INET6->new fails: Address family not supported by protocol at /usr/local/perl-5.14.2/lib/site_perl/5.14.2/Net/Server/Proto.pm line 133.
Binding to TCP port 5000 on host 0.0.0.0 with IPv4
Setting gid to "30328 30328 30328 30489 30490"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.