| 1 |
<!doctype html><head><title>Error: Oops at eg/dot-psgi/error.psgi line 2. |
| 2 |
</title><style type="text/css">a.toggle { color: #444 } |
| 3 |
body { margin: 0; padding: 0; background: #fff; color: #000; } |
| 4 |
h1 { margin: 0 0 .5em; padding: .25em .5em .1em 1.5em; border-bottom: thick solid #002; background: #444; color: #eee; font-size: x-large; } |
| 5 |
p { margin: .5em 1em; } |
| 6 |
li { font-size: small; } |
| 7 |
pre.context { border: 1px solid #aaa; padding: 0.2em 0; background: #fff; color: #444; font-size: medium; } |
| 8 |
pre .match { color: #000;background-color: #f99; font-weight: bold } |
| 9 |
pre.vardump { margin:0 } |
| 10 |
pre code strong { color: #000; background: #f88; } |
| 11 |
.lexicals { display: none; margin-left: 2em } |
| 12 |
</style><script language="JavaScript" type="text/javascript"> |
| 13 |
function showLexicals(id) { |
| 14 |
var css = document.getElementById(id).style; |
| 15 |
css.display = css.display == 'block' ? 'none' : 'block' |
| 16 |
} |
| 17 |
</script> |
| 18 |
</head> |
| 19 |
<body> |
| 20 |
<h1>Error trace</h1><p>Oops at eg/dot-psgi/error.psgi line 2. |
| 21 |
</p><ol> |
| 22 |
<li>in Plack::Middleware::StackTrace::__ANON__ at eg/dot-psgi/error.psgi line 2<pre class="context"><code> 1: sub { my $x = "bar"; my $y = [1,2,3]; my $z = { x => 1 }; my @y = qw(foo bar); my %z = (x => 1, y => 2); |
| 23 |
<strong class="match"> 2: do { die "Oops" }; return [ 200, [ 'Content-Type' => 'text/html' ], [ "Hello" ] ] }; |
| 24 |
</strong></code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-1')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-1">my $x = "bar"; |
| 25 |
my $y = [1, 2, 3]; |
| 26 |
my $z = { "x" => 1 }; |
| 27 |
my %z = ( "x" => 1, "y" => 2 ); |
| 28 |
my @y = ("foo", "bar"); |
| 29 |
</pre></body></html></li><li>in Plack::Util::__ANON__ at lib/Plack/Middleware/StackTrace.pm line 29<pre class="context"><code> 26: |
| 30 |
27: my $res = do { |
| 31 |
28: local $@; |
| 32 |
<strong class="match"> 29: eval { $self->app->($env) }; |
| 33 |
</strong> 30: }; |
| 34 |
31: |
| 35 |
32: if (!$res && $trace) { |
| 36 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-2')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-2">my $env = { |
| 37 |
HTTP_ACCEPT => "*/*", |
| 38 |
HTTP_HOST => "localhost:8080", |
| 39 |
HTTP_USER_AGENT => "curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3", |
| 40 |
PATH_INFO => "/", |
| 41 |
QUERY_STRING => "", |
| 42 |
REMOTE_ADDR => "127.0.0.1", |
| 43 |
REQUEST_METHOD => "GET", |
| 44 |
REQUEST_URI => "/", |
| 45 |
SCRIPT_NAME => "", |
| 46 |
SERVER_NAME => 0, |
| 47 |
SERVER_PORT => 8080, |
| 48 |
SERVER_PROTOCOL => "HTTP/1.1", |
| 49 |
"psgi.errors" => *main::STDERR, |
| 50 |
"psgi.input" => \*Plack::Server::Standalone::$input, |
| 51 |
"psgi.multiprocess" => "", |
| 52 |
"psgi.multithread" => "", |
| 53 |
"psgi.run_once" => "", |
| 54 |
"psgi.url_scheme" => "http", |
| 55 |
"psgi.version" => [1, 0], |
| 56 |
}; |
| 57 |
my $self = bless({ app => sub { "???" } }, "Plack::Middleware::StackTrace"); |
| 58 |
my $trace = do { |
| 59 |
require Symbol; |
| 60 |
my $a = bless({ |
| 61 |
frames => [ |
| 62 |
bless({ |
| 63 |
args => ["Devel::StackTrace::WithLexicals"], |
| 64 |
bitmask => "UUUUUUUUUUUU\25", |
| 65 |
evaltext => undef, |
| 66 |
filename => "lib/Plack/Middleware/StackTrace.pm", |
| 67 |
hasargs => 1, |
| 68 |
hints => 2, |
| 69 |
is_require => undef, |
| 70 |
lexicals => { |
| 71 |
"\$env" => \{ |
| 72 |
HTTP_ACCEPT => "*/*", |
| 73 |
HTTP_HOST => "localhost:8080", |
| 74 |
HTTP_USER_AGENT => "curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3", |
| 75 |
PATH_INFO => "/", |
| 76 |
QUERY_STRING => "", |
| 77 |
REMOTE_ADDR => "127.0.0.1", |
| 78 |
REQUEST_METHOD => "GET", |
| 79 |
REQUEST_URI => "/", |
| 80 |
SCRIPT_NAME => "", |
| 81 |
SERVER_NAME => 0, |
| 82 |
SERVER_PORT => 8080, |
| 83 |
SERVER_PROTOCOL => "HTTP/1.1", |
| 84 |
"psgi.errors" => *main::STDERR, |
| 85 |
"psgi.input" => \*Plack::Server::Standalone::$input, |
| 86 |
"psgi.multiprocess" => "", |
| 87 |
"psgi.multithread" => "", |
| 88 |
"psgi.run_once" => "", |
| 89 |
"psgi.url_scheme" => "http", |
| 90 |
"psgi.version" => [1, 0], |
| 91 |
}, |
| 92 |
"\$self" => \bless({ app => sub { "???" } }, "Plack::Middleware::StackTrace"), |
| 93 |
"\$trace" => \do{my $fix}, |
| 94 |
}, |
| 95 |
line => 23, |
| 96 |
max_arg_length => undef, |
| 97 |
"package" => "Plack::Middleware::StackTrace", |
| 98 |
respect_overload => undef, |
| 99 |
subroutine => "Devel::StackTrace::new", |
| 100 |
"wantarray" => 0, |
| 101 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 102 |
bless({ |
| 103 |
args => ["Oops at eg/dot-psgi/error.psgi line 2.\n"], |
| 104 |
bitmask => "\0\0\0\0\0\0\0\0\0\0\0\0", |
| 105 |
evaltext => undef, |
| 106 |
filename => "eg/dot-psgi/error.psgi", |
| 107 |
hasargs => 1, |
| 108 |
hints => 0, |
| 109 |
is_require => undef, |
| 110 |
lexicals => { |
| 111 |
"\$x" => \"bar", |
| 112 |
"\$y" => \[1, 2, 3], |
| 113 |
"\$z" => \{ "x" => 1 }, |
| 114 |
"%z" => { "x" => 1, "y" => 2 }, |
| 115 |
"\@y" => ["foo", "bar"], |
| 116 |
}, |
| 117 |
line => 2, |
| 118 |
max_arg_length => undef, |
| 119 |
"package" => "Plack::Util", |
| 120 |
respect_overload => undef, |
| 121 |
subroutine => "Plack::Middleware::StackTrace::__ANON__", |
| 122 |
"wantarray" => 0, |
| 123 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 124 |
bless({ |
| 125 |
args => ['fix'], |
| 126 |
bitmask => "UUUUUUUUUUUU\25", |
| 127 |
evaltext => undef, |
| 128 |
filename => "lib/Plack/Middleware/StackTrace.pm", |
| 129 |
hasargs => 1, |
| 130 |
hints => 2, |
| 131 |
is_require => undef, |
| 132 |
lexicals => { "\$env" => 'fix', "\$self" => 'fix', "\$trace" => 'fix' }, |
| 133 |
line => 29, |
| 134 |
max_arg_length => undef, |
| 135 |
"package" => "Plack::Middleware::StackTrace", |
| 136 |
respect_overload => undef, |
| 137 |
subroutine => "Plack::Util::__ANON__", |
| 138 |
"wantarray" => 0, |
| 139 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 140 |
bless({ |
| 141 |
args => [], |
| 142 |
bitmask => "UUUUUUUUUUUU\25", |
| 143 |
evaltext => undef, |
| 144 |
filename => "lib/Plack/Middleware/StackTrace.pm", |
| 145 |
hasargs => 0, |
| 146 |
hints => 2, |
| 147 |
is_require => undef, |
| 148 |
lexicals => undef, |
| 149 |
line => 29, |
| 150 |
max_arg_length => undef, |
| 151 |
"package" => "Plack::Middleware::StackTrace", |
| 152 |
respect_overload => undef, |
| 153 |
subroutine => "(eval)", |
| 154 |
"wantarray" => 0, |
| 155 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 156 |
bless({ |
| 157 |
args => ['fix', 'fix'], |
| 158 |
bitmask => "UUUUUUUUUUUU\25", |
| 159 |
evaltext => undef, |
| 160 |
filename => "lib/Plack/Middleware.pm", |
| 161 |
hasargs => 1, |
| 162 |
hints => 2, |
| 163 |
is_require => undef, |
| 164 |
lexicals => { "\$self" => \do{my $fix} }, |
| 165 |
line => 26, |
| 166 |
max_arg_length => undef, |
| 167 |
"package" => "Plack::Middleware", |
| 168 |
respect_overload => undef, |
| 169 |
subroutine => "Plack::Middleware::StackTrace::call", |
| 170 |
"wantarray" => 0, |
| 171 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 172 |
bless({ |
| 173 |
args => ['fix'], |
| 174 |
bitmask => "UUUUUUUUUUUU\25", |
| 175 |
evaltext => undef, |
| 176 |
filename => "lib/Plack/Middleware/AccessLog.pm", |
| 177 |
hasargs => 1, |
| 178 |
hints => 2, |
| 179 |
is_require => undef, |
| 180 |
lexicals => { |
| 181 |
"\$env" => \do{my $fix}, |
| 182 |
"\$self" => \bless({ app => sub { "???" }, logger => sub { "???" } }, "Plack::Middleware::AccessLog"), |
| 183 |
"%formats" => {}, |
| 184 |
}, |
| 185 |
line => 21, |
| 186 |
max_arg_length => undef, |
| 187 |
"package" => "Plack::Middleware::AccessLog", |
| 188 |
respect_overload => undef, |
| 189 |
subroutine => "Plack::Middleware::__ANON__", |
| 190 |
"wantarray" => 0, |
| 191 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 192 |
bless({ |
| 193 |
args => ['fix', 'fix'], |
| 194 |
bitmask => "UUUUUUUUUUUU\25", |
| 195 |
evaltext => undef, |
| 196 |
filename => "lib/Plack/Middleware.pm", |
| 197 |
hasargs => 1, |
| 198 |
hints => 2, |
| 199 |
is_require => undef, |
| 200 |
lexicals => { "\$self" => \do{my $fix} }, |
| 201 |
line => 26, |
| 202 |
max_arg_length => undef, |
| 203 |
"package" => "Plack::Middleware", |
| 204 |
respect_overload => undef, |
| 205 |
subroutine => "Plack::Middleware::AccessLog::call", |
| 206 |
"wantarray" => 0, |
| 207 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 208 |
bless({ |
| 209 |
args => ['fix'], |
| 210 |
bitmask => "UUUUUUUUUUUU\25", |
| 211 |
evaltext => undef, |
| 212 |
filename => "lib/Plack/Middleware/ContentLength.pm", |
| 213 |
hasargs => 1, |
| 214 |
hints => 2, |
| 215 |
is_require => undef, |
| 216 |
lexicals => { |
| 217 |
"\$self" => \bless({ app => sub { "???" } }, "Plack::Middleware::ContentLength"), |
| 218 |
}, |
| 219 |
line => 10, |
| 220 |
max_arg_length => undef, |
| 221 |
"package" => "Plack::Middleware::ContentLength", |
| 222 |
respect_overload => undef, |
| 223 |
subroutine => "Plack::Middleware::__ANON__", |
| 224 |
"wantarray" => 0, |
| 225 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 226 |
bless({ |
| 227 |
args => ['fix', 'fix'], |
| 228 |
bitmask => "UUUUUUUUUUUU\25", |
| 229 |
evaltext => undef, |
| 230 |
filename => "lib/Plack/Middleware.pm", |
| 231 |
hasargs => 1, |
| 232 |
hints => 2, |
| 233 |
is_require => undef, |
| 234 |
lexicals => { "\$self" => \do{my $fix} }, |
| 235 |
line => 26, |
| 236 |
max_arg_length => undef, |
| 237 |
"package" => "Plack::Middleware", |
| 238 |
respect_overload => undef, |
| 239 |
subroutine => "Plack::Middleware::ContentLength::call", |
| 240 |
"wantarray" => 0, |
| 241 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 242 |
bless({ |
| 243 |
args => ['fix'], |
| 244 |
bitmask => "\0\0\0\0\0\0\0\0\0\0\0\0", |
| 245 |
evaltext => undef, |
| 246 |
filename => "lib/Plack/Util.pm", |
| 247 |
hasargs => 1, |
| 248 |
hints => 2, |
| 249 |
is_require => undef, |
| 250 |
lexicals => { "\$app" => \sub { "???" }, "\$env" => \do{my $fix} }, |
| 251 |
line => 107, |
| 252 |
max_arg_length => undef, |
| 253 |
"package" => "Plack::Util", |
| 254 |
respect_overload => undef, |
| 255 |
subroutine => "Plack::Middleware::__ANON__", |
| 256 |
"wantarray" => 0, |
| 257 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 258 |
bless({ |
| 259 |
args => [], |
| 260 |
bitmask => "\0\0\0\0\0\0\0\0\0\0\0\0", |
| 261 |
evaltext => undef, |
| 262 |
filename => "lib/Plack/Util.pm", |
| 263 |
hasargs => 0, |
| 264 |
hints => 2, |
| 265 |
is_require => undef, |
| 266 |
lexicals => undef, |
| 267 |
line => 107, |
| 268 |
max_arg_length => undef, |
| 269 |
"package" => "Plack::Util", |
| 270 |
respect_overload => undef, |
| 271 |
subroutine => "(eval)", |
| 272 |
"wantarray" => 0, |
| 273 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 274 |
bless({ |
| 275 |
args => ['fix', 'fix'], |
| 276 |
bitmask => "UUUUUUUUUUUU\25", |
| 277 |
evaltext => undef, |
| 278 |
filename => "lib/Plack/Server/Standalone.pm", |
| 279 |
hasargs => 1, |
| 280 |
hints => 2, |
| 281 |
is_require => undef, |
| 282 |
lexicals => { |
| 283 |
"\$app" => \do{my $fix}, |
| 284 |
"\$buf" => \"", |
| 285 |
"\$conn" => \bless(Symbol::gensym(), "IO::Socket::INET"), |
| 286 |
"\$env" => \do{my $fix}, |
| 287 |
"\$input" => \do{my $fix}, |
| 288 |
"\$is_keepalive" => \1, |
| 289 |
"\$reqlen" => \145, |
| 290 |
"\$res" => \[400, ["Content-Type", "text/plain"], ["Bad Request"]], |
| 291 |
"\$rlen" => \145, |
| 292 |
"\$self" => \bless({ |
| 293 |
host => 0, |
| 294 |
keepalive_timeout => 2, |
| 295 |
listen_sock => bless(Symbol::gensym(), "IO::Socket::INET"), |
| 296 |
max_keepalive_reqs => 100, |
| 297 |
port => 8080, |
| 298 |
timeout => 300, |
| 299 |
}, "Plack::Server::Standalone"), |
| 300 |
"\$use_keepalive" => \undef, |
| 301 |
}, |
| 302 |
line => 153, |
| 303 |
max_arg_length => undef, |
| 304 |
"package" => "Plack::Server::Standalone", |
| 305 |
respect_overload => undef, |
| 306 |
subroutine => "Plack::Util::run_app", |
| 307 |
"wantarray" => 0, |
| 308 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 309 |
bless({ |
| 310 |
args => ['fix', 'fix', 'fix', 'fix', 1, 1], |
| 311 |
bitmask => "UUUUUUUUUUUU\25", |
| 312 |
evaltext => undef, |
| 313 |
filename => "lib/Plack/Server/Standalone.pm", |
| 314 |
hasargs => 1, |
| 315 |
hints => 2, |
| 316 |
is_require => undef, |
| 317 |
lexicals => { |
| 318 |
"\$app" => \do{my $fix}, |
| 319 |
"\$conn" => \do{my $fix}, |
| 320 |
"\$env" => \do{my $fix}, |
| 321 |
"\$max_reqs_per_child" => \undef, |
| 322 |
"\$may_keepalive" => \1, |
| 323 |
"\$proc_req_count" => \5, |
| 324 |
"\$req_count" => \1, |
| 325 |
"\$self" => \do{my $fix}, |
| 326 |
}, |
| 327 |
line => 111, |
| 328 |
max_arg_length => undef, |
| 329 |
"package" => "Plack::Server::Standalone", |
| 330 |
respect_overload => undef, |
| 331 |
subroutine => "Plack::Server::Standalone::handle_connection", |
| 332 |
"wantarray" => 0, |
| 333 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 334 |
bless({ |
| 335 |
args => ['fix', 'fix'], |
| 336 |
bitmask => "UUUUUUUUUUUU\25", |
| 337 |
evaltext => undef, |
| 338 |
filename => "lib/Plack/Server/Standalone.pm", |
| 339 |
hasargs => 1, |
| 340 |
hints => 2, |
| 341 |
is_require => undef, |
| 342 |
lexicals => { "\$app" => \do{my $fix}, "\$self" => \do{my $fix} }, |
| 343 |
line => 62, |
| 344 |
max_arg_length => undef, |
| 345 |
"package" => "Plack::Server::Standalone", |
| 346 |
respect_overload => undef, |
| 347 |
subroutine => "Plack::Server::Standalone::accept_loop", |
| 348 |
"wantarray" => undef, |
| 349 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 350 |
bless({ |
| 351 |
args => ['fix', 'fix'], |
| 352 |
bitmask => "\0\0\0\0\0\0\0\0\0\0\0\0", |
| 353 |
evaltext => undef, |
| 354 |
filename => "scripts/plackup", |
| 355 |
hasargs => 1, |
| 356 |
hints => 2, |
| 357 |
is_require => undef, |
| 358 |
lexicals => { |
| 359 |
"\$app" => \"eg/dot-psgi/error.psgi", |
| 360 |
"\$env" => \"development", |
| 361 |
"\$handler" => \do{my $fix}, |
| 362 |
"\$help" => \0, |
| 363 |
"\$server" => \do{my $fix}, |
| 364 |
"\@args" => [], |
| 365 |
"\@includes" => [], |
| 366 |
}, |
| 367 |
line => 42, |
| 368 |
max_arg_length => undef, |
| 369 |
"package" => "main", |
| 370 |
respect_overload => undef, |
| 371 |
subroutine => "Plack::Server::Standalone::run", |
| 372 |
"wantarray" => undef, |
| 373 |
}, "Devel::StackTrace::WithLexicals::Frame"), |
| 374 |
], |
| 375 |
"index" => 2, |
| 376 |
}, "Devel::StackTrace::WithLexicals"); |
| 377 |
${$a->{frames}[0]{lexicals}{"\$trace"}} = $a; |
| 378 |
$a->{frames}[2]{args}[0] = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 379 |
$a->{frames}[2]{lexicals}{"\$env"} = $a->{frames}[0]{lexicals}{"\$env"}; |
| 380 |
$a->{frames}[2]{lexicals}{"\$self"} = $a->{frames}[0]{lexicals}{"\$self"}; |
| 381 |
$a->{frames}[2]{lexicals}{"\$trace"} = $a->{frames}[0]{lexicals}{"\$trace"}; |
| 382 |
$a->{frames}[4]{args}[0] = ${$a->{frames}[0]{lexicals}{"\$self"}}; |
| 383 |
$a->{frames}[4]{args}[1] = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 384 |
${$a->{frames}[4]{lexicals}{"\$self"}} = ${$a->{frames}[0]{lexicals}{"\$self"}}; |
| 385 |
$a->{frames}[5]{args}[0] = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 386 |
${$a->{frames}[5]{lexicals}{"\$env"}} = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 387 |
$a->{frames}[6]{args}[0] = ${$a->{frames}[5]{lexicals}{"\$self"}}; |
| 388 |
$a->{frames}[6]{args}[1] = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 389 |
${$a->{frames}[6]{lexicals}{"\$self"}} = ${$a->{frames}[5]{lexicals}{"\$self"}}; |
| 390 |
$a->{frames}[7]{args}[0] = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 391 |
$a->{frames}[8]{args}[0] = ${$a->{frames}[7]{lexicals}{"\$self"}}; |
| 392 |
$a->{frames}[8]{args}[1] = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 393 |
${$a->{frames}[8]{lexicals}{"\$self"}} = ${$a->{frames}[7]{lexicals}{"\$self"}}; |
| 394 |
$a->{frames}[9]{args}[0] = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 395 |
${$a->{frames}[9]{lexicals}{"\$env"}} = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 396 |
$a->{frames}[11]{args}[0] = ${$a->{frames}[9]{lexicals}{"\$app"}}; |
| 397 |
$a->{frames}[11]{args}[1] = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 398 |
${$a->{frames}[11]{lexicals}{"\$app"}} = ${$a->{frames}[9]{lexicals}{"\$app"}}; |
| 399 |
*{${$a->{frames}[11]{lexicals}{"\$conn"}}} = { |
| 400 |
io_socket_peername => pack("H*","1002c5c57f0000010000000000000000"), |
| 401 |
io_socket_timeout => undef, |
| 402 |
}; |
| 403 |
${$a->{frames}[11]{lexicals}{"\$env"}} = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 404 |
${$a->{frames}[11]{lexicals}{"\$input"}} = *{${$a->{frames}[0]{lexicals}{"\$env"}}->{"psgi.input"}}; |
| 405 |
*{${$a->{frames}[11]{lexicals}{"\$self"}}->{listen_sock}} = { |
| 406 |
io_socket_domain => 2, |
| 407 |
io_socket_proto => 6, |
| 408 |
io_socket_timeout => undef, |
| 409 |
io_socket_type => 1, |
| 410 |
}; |
| 411 |
$a->{frames}[12]{args}[0] = ${$a->{frames}[11]{lexicals}{"\$self"}}; |
| 412 |
$a->{frames}[12]{args}[1] = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 413 |
$a->{frames}[12]{args}[2] = *{${$a->{frames}[11]{lexicals}{"\$conn"}}}; |
| 414 |
$a->{frames}[12]{args}[3] = ${$a->{frames}[9]{lexicals}{"\$app"}}; |
| 415 |
${$a->{frames}[12]{lexicals}{"\$app"}} = ${$a->{frames}[9]{lexicals}{"\$app"}}; |
| 416 |
${$a->{frames}[12]{lexicals}{"\$conn"}} = *{${$a->{frames}[11]{lexicals}{"\$conn"}}}; |
| 417 |
${$a->{frames}[12]{lexicals}{"\$env"}} = ${$a->{frames}[0]{lexicals}{"\$env"}}; |
| 418 |
${$a->{frames}[12]{lexicals}{"\$self"}} = ${$a->{frames}[11]{lexicals}{"\$self"}}; |
| 419 |
$a->{frames}[13]{args}[0] = ${$a->{frames}[11]{lexicals}{"\$self"}}; |
| 420 |
$a->{frames}[13]{args}[1] = ${$a->{frames}[7]{lexicals}{"\$self"}}->{app}; |
| 421 |
${$a->{frames}[13]{lexicals}{"\$app"}} = ${$a->{frames}[7]{lexicals}{"\$self"}}->{app}; |
| 422 |
${$a->{frames}[13]{lexicals}{"\$self"}} = ${$a->{frames}[11]{lexicals}{"\$self"}}; |
| 423 |
$a->{frames}[14]{args}[0] = ${$a->{frames}[11]{lexicals}{"\$self"}}; |
| 424 |
$a->{frames}[14]{args}[1] = ${$a->{frames}[7]{lexicals}{"\$self"}}->{app}; |
| 425 |
${$a->{frames}[14]{lexicals}{"\$handler"}} = ${$a->{frames}[7]{lexicals}{"\$self"}}->{app}; |
| 426 |
${$a->{frames}[14]{lexicals}{"\$server"}} = ${$a->{frames}[11]{lexicals}{"\$self"}}; |
| 427 |
$a; |
| 428 |
}; |
| 429 |
</pre></body></html></li><li>in (eval) at lib/Plack/Middleware/StackTrace.pm line 29<pre class="context"><code> 26: |
| 430 |
27: my $res = do { |
| 431 |
28: local $@; |
| 432 |
<strong class="match"> 29: eval { $self->app->($env) }; |
| 433 |
</strong> 30: }; |
| 434 |
31: |
| 435 |
32: if (!$res && $trace) { |
| 436 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-3')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-3"></pre></body></html></li><li>in Plack::Middleware::StackTrace::call at lib/Plack/Middleware.pm line 26<pre class="context"><code> 23: |
| 437 |
24: sub to_app { |
| 438 |
25: my $self = shift; |
| 439 |
<strong class="match"> 26: return sub { $self->call(@_) }; |
| 440 |
</strong> 27: } |
| 441 |
28: |
| 442 |
29: sub enable { |
| 443 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-4')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-4">my $self = bless({ app => sub { "???" } }, "Plack::Middleware::StackTrace"); |
| 444 |
</pre></body></html></li><li>in Plack::Middleware::__ANON__ at lib/Plack/Middleware/AccessLog.pm line 21<pre class="context"><code> 18: my $self = shift; |
| 445 |
19: my($env) = @_; |
| 446 |
20: |
| 447 |
<strong class="match"> 21: my $res = $self->app->($env); |
| 448 |
</strong> 22: |
| 449 |
23: my $logger = $self->logger || sub { $env->{'psgi.errors'}->print(@_) }; |
| 450 |
24: |
| 451 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-5')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-5">my $env = { |
| 452 |
HTTP_ACCEPT => "*/*", |
| 453 |
HTTP_HOST => "localhost:8080", |
| 454 |
HTTP_USER_AGENT => "curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3", |
| 455 |
PATH_INFO => "/", |
| 456 |
QUERY_STRING => "", |
| 457 |
REMOTE_ADDR => "127.0.0.1", |
| 458 |
REQUEST_METHOD => "GET", |
| 459 |
REQUEST_URI => "/", |
| 460 |
SCRIPT_NAME => "", |
| 461 |
SERVER_NAME => 0, |
| 462 |
SERVER_PORT => 8080, |
| 463 |
SERVER_PROTOCOL => "HTTP/1.1", |
| 464 |
"psgi.errors" => *main::STDERR, |
| 465 |
"psgi.input" => \*Plack::Server::Standalone::$input, |
| 466 |
"psgi.multiprocess" => "", |
| 467 |
"psgi.multithread" => "", |
| 468 |
"psgi.run_once" => "", |
| 469 |
"psgi.url_scheme" => "http", |
| 470 |
"psgi.version" => [1, 0], |
| 471 |
}; |
| 472 |
my $self = bless({ app => sub { "???" }, logger => sub { "???" } }, "Plack::Middleware::AccessLog"); |
| 473 |
my %formats = (); |
| 474 |
</pre></body></html></li><li>in Plack::Middleware::AccessLog::call at lib/Plack/Middleware.pm line 26<pre class="context"><code> 23: |
| 475 |
24: sub to_app { |
| 476 |
25: my $self = shift; |
| 477 |
<strong class="match"> 26: return sub { $self->call(@_) }; |
| 478 |
</strong> 27: } |
| 479 |
28: |
| 480 |
29: sub enable { |
| 481 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-6')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-6">my $self = bless({ app => sub { "???" }, logger => sub { "???" } }, "Plack::Middleware::AccessLog"); |
| 482 |
</pre></body></html></li><li>in Plack::Middleware::__ANON__ at lib/Plack/Middleware/ContentLength.pm line 10<pre class="context"><code> 7: |
| 483 |
8: sub call { |
| 484 |
9: my $self = shift; |
| 485 |
<strong class="match"> 10: my $res = $self->app->(@_); |
| 486 |
</strong> 11: |
| 487 |
12: my $h = Plack::Util::headers($res->[1]); |
| 488 |
13: if (!Plack::Util::status_with_no_entity_body($res->[0]) && |
| 489 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-7')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-7">my $self = bless({ app => sub { "???" } }, "Plack::Middleware::ContentLength"); |
| 490 |
</pre></body></html></li><li>in Plack::Middleware::ContentLength::call at lib/Plack/Middleware.pm line 26<pre class="context"><code> 23: |
| 491 |
24: sub to_app { |
| 492 |
25: my $self = shift; |
| 493 |
<strong class="match"> 26: return sub { $self->call(@_) }; |
| 494 |
</strong> 27: } |
| 495 |
28: |
| 496 |
29: sub enable { |
| 497 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-8')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-8">my $self = bless({ app => sub { "???" } }, "Plack::Middleware::ContentLength"); |
| 498 |
</pre></body></html></li><li>in Plack::Middleware::__ANON__ at lib/Plack/Util.pm line 107<pre class="context"><code> 104: sub run_app($$) { |
| 499 |
105: my($app, $env) = @_; |
| 500 |
106: |
| 501 |
<strong class="match"> 107: local $@; my $res = eval { $app->($env) }; |
| 502 |
</strong> 108: if ($@) { |
| 503 |
109: my $body = "Internal Server Error"; |
| 504 |
110: $env->{'psgi.errors'}->print($@); |
| 505 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-9')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-9">my $app = sub { "???" }; |
| 506 |
my $env = { |
| 507 |
HTTP_ACCEPT => "*/*", |
| 508 |
HTTP_HOST => "localhost:8080", |
| 509 |
HTTP_USER_AGENT => "curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3", |
| 510 |
PATH_INFO => "/", |
| 511 |
QUERY_STRING => "", |
| 512 |
REMOTE_ADDR => "127.0.0.1", |
| 513 |
REQUEST_METHOD => "GET", |
| 514 |
REQUEST_URI => "/", |
| 515 |
SCRIPT_NAME => "", |
| 516 |
SERVER_NAME => 0, |
| 517 |
SERVER_PORT => 8080, |
| 518 |
SERVER_PROTOCOL => "HTTP/1.1", |
| 519 |
"psgi.errors" => *main::STDERR, |
| 520 |
"psgi.input" => \*Plack::Server::Standalone::$input, |
| 521 |
"psgi.multiprocess" => "", |
| 522 |
"psgi.multithread" => "", |
| 523 |
"psgi.run_once" => "", |
| 524 |
"psgi.url_scheme" => "http", |
| 525 |
"psgi.version" => [1, 0], |
| 526 |
}; |
| 527 |
</pre></body></html></li><li>in (eval) at lib/Plack/Util.pm line 107<pre class="context"><code> 104: sub run_app($$) { |
| 528 |
105: my($app, $env) = @_; |
| 529 |
106: |
| 530 |
<strong class="match"> 107: local $@; my $res = eval { $app->($env) }; |
| 531 |
</strong> 108: if ($@) { |
| 532 |
109: my $body = "Internal Server Error"; |
| 533 |
110: $env->{'psgi.errors'}->print($@); |
| 534 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-10')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-10"></pre></body></html></li><li>in Plack::Util::run_app at lib/Plack/Server/Standalone.pm line 153<pre class="context"><code> 150: |
| 535 |
151: open my $input, "<", \$buf; |
| 536 |
152: $env->{'psgi.input'} = $input; |
| 537 |
<strong class="match"> 153: $res = Plack::Util::run_app $app, $env; |
| 538 |
</strong> 154: last; |
| 539 |
155: } |
| 540 |
156: if ($reqlen == -2) { |
| 541 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-11')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-11">my $app = sub { "???" }; |
| 542 |
my $buf = ""; |
| 543 |
my $conn = do { |
| 544 |
require Symbol; |
| 545 |
my $a = bless(Symbol::gensym(), "IO::Socket::INET"); |
| 546 |
*{$a} = { |
| 547 |
io_socket_peername => pack("H*","1002c5c57f0000010000000000000000"), |
| 548 |
io_socket_timeout => undef, |
| 549 |
}; |
| 550 |
$a; |
| 551 |
}; |
| 552 |
my $env = { |
| 553 |
HTTP_ACCEPT => "*/*", |
| 554 |
HTTP_HOST => "localhost:8080", |
| 555 |
HTTP_USER_AGENT => "curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3", |
| 556 |
PATH_INFO => "/", |
| 557 |
QUERY_STRING => "", |
| 558 |
REMOTE_ADDR => "127.0.0.1", |
| 559 |
REQUEST_METHOD => "GET", |
| 560 |
REQUEST_URI => "/", |
| 561 |
SCRIPT_NAME => "", |
| 562 |
SERVER_NAME => 0, |
| 563 |
SERVER_PORT => 8080, |
| 564 |
SERVER_PROTOCOL => "HTTP/1.1", |
| 565 |
"psgi.errors" => *main::STDERR, |
| 566 |
"psgi.input" => \*Plack::Server::Standalone::$input, |
| 567 |
"psgi.multiprocess" => "", |
| 568 |
"psgi.multithread" => "", |
| 569 |
"psgi.run_once" => "", |
| 570 |
"psgi.url_scheme" => "http", |
| 571 |
"psgi.version" => [1, 0], |
| 572 |
}; |
| 573 |
my $input = \*Plack::Server::Standalone::$input; |
| 574 |
my $is_keepalive = 1; |
| 575 |
my $reqlen = 145; |
| 576 |
my $res = [400, ["Content-Type", "text/plain"], ["Bad Request"]]; |
| 577 |
my $rlen = 145; |
| 578 |
my $self = do { |
| 579 |
require Symbol; |
| 580 |
my $a = bless({ |
| 581 |
host => 0, |
| 582 |
keepalive_timeout => 2, |
| 583 |
listen_sock => bless(Symbol::gensym(), "IO::Socket::INET"), |
| 584 |
max_keepalive_reqs => 100, |
| 585 |
port => 8080, |
| 586 |
timeout => 300, |
| 587 |
}, "Plack::Server::Standalone"); |
| 588 |
*{$a->{listen_sock}} = { |
| 589 |
io_socket_domain => 2, |
| 590 |
io_socket_proto => 6, |
| 591 |
io_socket_timeout => undef, |
| 592 |
io_socket_type => 1, |
| 593 |
}; |
| 594 |
$a; |
| 595 |
}; |
| 596 |
my $use_keepalive = undef; |
| 597 |
</pre></body></html></li><li>in Plack::Server::Standalone::handle_connection at lib/Plack/Server/Standalone.pm line 111<pre class="context"><code> 108: if ($may_keepalive && $max_reqs_per_child && $proc_req_count >= $max_reqs_per_child) { |
| 598 |
109: $may_keepalive = undef; |
| 599 |
110: } |
| 600 |
<strong class="match"> 111: $self->handle_connection($env, $conn, $app, $may_keepalive, $req_count != 0) |
| 601 |
</strong> 112: or last; |
| 602 |
113: # TODO add special cases for clients with broken keep-alive support, as well as disabling keep-alive for HTTP/1.0 proxies |
| 603 |
114: } |
| 604 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-12')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-12">my $app = sub { "???" }; |
| 605 |
my $conn = do { |
| 606 |
require Symbol; |
| 607 |
my $a = bless(Symbol::gensym(), "IO::Socket::INET"); |
| 608 |
*{$a} = { |
| 609 |
io_socket_peername => pack("H*","1002c5c57f0000010000000000000000"), |
| 610 |
io_socket_timeout => undef, |
| 611 |
}; |
| 612 |
$a; |
| 613 |
}; |
| 614 |
my $env = { |
| 615 |
HTTP_ACCEPT => "*/*", |
| 616 |
HTTP_HOST => "localhost:8080", |
| 617 |
HTTP_USER_AGENT => "curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3", |
| 618 |
PATH_INFO => "/", |
| 619 |
QUERY_STRING => "", |
| 620 |
REMOTE_ADDR => "127.0.0.1", |
| 621 |
REQUEST_METHOD => "GET", |
| 622 |
REQUEST_URI => "/", |
| 623 |
SCRIPT_NAME => "", |
| 624 |
SERVER_NAME => 0, |
| 625 |
SERVER_PORT => 8080, |
| 626 |
SERVER_PROTOCOL => "HTTP/1.1", |
| 627 |
"psgi.errors" => *main::STDERR, |
| 628 |
"psgi.input" => \*Plack::Server::Standalone::$input, |
| 629 |
"psgi.multiprocess" => "", |
| 630 |
"psgi.multithread" => "", |
| 631 |
"psgi.run_once" => "", |
| 632 |
"psgi.url_scheme" => "http", |
| 633 |
"psgi.version" => [1, 0], |
| 634 |
}; |
| 635 |
my $max_reqs_per_child = undef; |
| 636 |
my $may_keepalive = 1; |
| 637 |
my $proc_req_count = 5; |
| 638 |
my $req_count = 1; |
| 639 |
my $self = do { |
| 640 |
require Symbol; |
| 641 |
my $a = bless({ |
| 642 |
host => 0, |
| 643 |
keepalive_timeout => 2, |
| 644 |
listen_sock => bless(Symbol::gensym(), "IO::Socket::INET"), |
| 645 |
max_keepalive_reqs => 100, |
| 646 |
port => 8080, |
| 647 |
timeout => 300, |
| 648 |
}, "Plack::Server::Standalone"); |
| 649 |
*{$a->{listen_sock}} = { |
| 650 |
io_socket_domain => 2, |
| 651 |
io_socket_proto => 6, |
| 652 |
io_socket_timeout => undef, |
| 653 |
io_socket_type => 1, |
| 654 |
}; |
| 655 |
$a; |
| 656 |
}; |
| 657 |
</pre></body></html></li><li>in Plack::Server::Standalone::accept_loop at lib/Plack/Server/Standalone.pm line 62<pre class="context"><code> 59: sub run { |
| 658 |
60: my($self, $app) = @_; |
| 659 |
61: $self->setup_listener(); |
| 660 |
<strong class="match"> 62: $self->accept_loop($app); |
| 661 |
</strong> 63: } |
| 662 |
64: |
| 663 |
65: sub setup_listener { |
| 664 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-13')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-13">my $app = sub { "???" }; |
| 665 |
my $self = do { |
| 666 |
require Symbol; |
| 667 |
my $a = bless({ |
| 668 |
host => 0, |
| 669 |
keepalive_timeout => 2, |
| 670 |
listen_sock => bless(Symbol::gensym(), "IO::Socket::INET"), |
| 671 |
max_keepalive_reqs => 100, |
| 672 |
port => 8080, |
| 673 |
timeout => 300, |
| 674 |
}, "Plack::Server::Standalone"); |
| 675 |
*{$a->{listen_sock}} = { |
| 676 |
io_socket_domain => 2, |
| 677 |
io_socket_proto => 6, |
| 678 |
io_socket_timeout => undef, |
| 679 |
io_socket_type => 1, |
| 680 |
}; |
| 681 |
$a; |
| 682 |
}; |
| 683 |
</pre></body></html></li><li>in Plack::Server::Standalone::run at scripts/plackup line 42<pre class="context"><code> 39: |
| 684 |
40: my @args = map { s/^--//; split /=/, $_ } @ARGV; |
| 685 |
41: my $server = Plack::Loader->auto(@args); |
| 686 |
<strong class="match"> 42: $server->run($handler); |
| 687 |
</strong> 43: |
| 688 |
44: __END__ |
| 689 |
45: |
| 690 |
</code></pre><p><a class="toggle" href="javascript:showLexicals('lexicals-14')">Show lexical variables</a></p><pre class="lexicals" id="lexicals-14">my $app = "eg/dot-psgi/error.psgi"; |
| 691 |
my $env = "development"; |
| 692 |
my $handler = sub { "???" }; |
| 693 |
my $help = 0; |
| 694 |
my $server = do { |
| 695 |
require Symbol; |
| 696 |
my $a = bless({ |
| 697 |
host => 0, |
| 698 |
keepalive_timeout => 2, |
| 699 |
listen_sock => bless(Symbol::gensym(), "IO::Socket::INET"), |
| 700 |
max_keepalive_reqs => 100, |
| 701 |
port => 8080, |
| 702 |
timeout => 300, |
| 703 |
}, "Plack::Server::Standalone"); |
| 704 |
*{$a->{listen_sock}} = { |
| 705 |
io_socket_domain => 2, |
| 706 |
io_socket_proto => 6, |
| 707 |
io_socket_timeout => undef, |
| 708 |
io_socket_type => 1, |
| 709 |
}; |
| 710 |
$a; |
| 711 |
}; |
| 712 |
my @args = (); |
| 713 |
my @includes = (); |
| 714 |
</pre></body></html></li></ol> |