Debian Codegraph @

eg/output.html

raw
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 = &quot;bar&quot;; my $y = [1,2,3]; my $z = { x =&gt; 1 }; my @y = qw(foo bar); my %z = (x =&gt; 1, y =&gt; 2);
23 <strong class="match"> 2: do { die &quot;Oops&quot; }; return [ 200, [ &#39;Content-Type&#39; =&gt; &#39;text/html&#39; ], [ &quot;Hello&quot; ] ] };
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 = &quot;bar&quot;;
25 my $y = [1, 2, 3];
26 my $z = { &quot;x&quot; =&gt; 1 };
27 my %z = ( &quot;x&quot; =&gt; 1, &quot;y&quot; =&gt; 2 );
28 my @y = (&quot;foo&quot;, &quot;bar&quot;);
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-&gt;app-&gt;($env) };
33 </strong> 30: };
34 31:
35 32: if (!$res &amp;&amp; $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 =&gt; &quot;*/*&quot;,
38 HTTP_HOST =&gt; &quot;localhost:8080&quot;,
39 HTTP_USER_AGENT =&gt; &quot;curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3&quot;,
40 PATH_INFO =&gt; &quot;/&quot;,
41 QUERY_STRING =&gt; &quot;&quot;,
42 REMOTE_ADDR =&gt; &quot;127.0.0.1&quot;,
43 REQUEST_METHOD =&gt; &quot;GET&quot;,
44 REQUEST_URI =&gt; &quot;/&quot;,
45 SCRIPT_NAME =&gt; &quot;&quot;,
46 SERVER_NAME =&gt; 0,
47 SERVER_PORT =&gt; 8080,
48 SERVER_PROTOCOL =&gt; &quot;HTTP/1.1&quot;,
49 &quot;psgi.errors&quot; =&gt; *main::STDERR,
50 &quot;psgi.input&quot; =&gt; \*Plack::Server::Standalone::$input,
51 &quot;psgi.multiprocess&quot; =&gt; &quot;&quot;,
52 &quot;psgi.multithread&quot; =&gt; &quot;&quot;,
53 &quot;psgi.run_once&quot; =&gt; &quot;&quot;,
54 &quot;psgi.url_scheme&quot; =&gt; &quot;http&quot;,
55 &quot;psgi.version&quot; =&gt; [1, 0],
56 };
57 my $self = bless({ app =&gt; sub { &quot;???&quot; } }, &quot;Plack::Middleware::StackTrace&quot;);
58 my $trace = do {
59 require Symbol;
60 my $a = bless({
61 frames =&gt; [
62 bless({
63 args =&gt; [&quot;Devel::StackTrace::WithLexicals&quot;],
64 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
65 evaltext =&gt; undef,
66 filename =&gt; &quot;lib/Plack/Middleware/StackTrace.pm&quot;,
67 hasargs =&gt; 1,
68 hints =&gt; 2,
69 is_require =&gt; undef,
70 lexicals =&gt; {
71 &quot;\$env&quot; =&gt; \{
72 HTTP_ACCEPT =&gt; &quot;*/*&quot;,
73 HTTP_HOST =&gt; &quot;localhost:8080&quot;,
74 HTTP_USER_AGENT =&gt; &quot;curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3&quot;,
75 PATH_INFO =&gt; &quot;/&quot;,
76 QUERY_STRING =&gt; &quot;&quot;,
77 REMOTE_ADDR =&gt; &quot;127.0.0.1&quot;,
78 REQUEST_METHOD =&gt; &quot;GET&quot;,
79 REQUEST_URI =&gt; &quot;/&quot;,
80 SCRIPT_NAME =&gt; &quot;&quot;,
81 SERVER_NAME =&gt; 0,
82 SERVER_PORT =&gt; 8080,
83 SERVER_PROTOCOL =&gt; &quot;HTTP/1.1&quot;,
84 &quot;psgi.errors&quot; =&gt; *main::STDERR,
85 &quot;psgi.input&quot; =&gt; \*Plack::Server::Standalone::$input,
86 &quot;psgi.multiprocess&quot; =&gt; &quot;&quot;,
87 &quot;psgi.multithread&quot; =&gt; &quot;&quot;,
88 &quot;psgi.run_once&quot; =&gt; &quot;&quot;,
89 &quot;psgi.url_scheme&quot; =&gt; &quot;http&quot;,
90 &quot;psgi.version&quot; =&gt; [1, 0],
91 },
92 &quot;\$self&quot; =&gt; \bless({ app =&gt; sub { &quot;???&quot; } }, &quot;Plack::Middleware::StackTrace&quot;),
93 &quot;\$trace&quot; =&gt; \do{my $fix},
94 },
95 line =&gt; 23,
96 max_arg_length =&gt; undef,
97 &quot;package&quot; =&gt; &quot;Plack::Middleware::StackTrace&quot;,
98 respect_overload =&gt; undef,
99 subroutine =&gt; &quot;Devel::StackTrace::new&quot;,
100 &quot;wantarray&quot; =&gt; 0,
101 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
102 bless({
103 args =&gt; [&quot;Oops at eg/dot-psgi/error.psgi line 2.\n&quot;],
104 bitmask =&gt; &quot;\0\0\0\0\0\0\0\0\0\0\0\0&quot;,
105 evaltext =&gt; undef,
106 filename =&gt; &quot;eg/dot-psgi/error.psgi&quot;,
107 hasargs =&gt; 1,
108 hints =&gt; 0,
109 is_require =&gt; undef,
110 lexicals =&gt; {
111 &quot;\$x&quot; =&gt; \&quot;bar&quot;,
112 &quot;\$y&quot; =&gt; \[1, 2, 3],
113 &quot;\$z&quot; =&gt; \{ &quot;x&quot; =&gt; 1 },
114 &quot;%z&quot; =&gt; { &quot;x&quot; =&gt; 1, &quot;y&quot; =&gt; 2 },
115 &quot;\@y&quot; =&gt; [&quot;foo&quot;, &quot;bar&quot;],
116 },
117 line =&gt; 2,
118 max_arg_length =&gt; undef,
119 &quot;package&quot; =&gt; &quot;Plack::Util&quot;,
120 respect_overload =&gt; undef,
121 subroutine =&gt; &quot;Plack::Middleware::StackTrace::__ANON__&quot;,
122 &quot;wantarray&quot; =&gt; 0,
123 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
124 bless({
125 args =&gt; [&#39;fix&#39;],
126 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
127 evaltext =&gt; undef,
128 filename =&gt; &quot;lib/Plack/Middleware/StackTrace.pm&quot;,
129 hasargs =&gt; 1,
130 hints =&gt; 2,
131 is_require =&gt; undef,
132 lexicals =&gt; { &quot;\$env&quot; =&gt; &#39;fix&#39;, &quot;\$self&quot; =&gt; &#39;fix&#39;, &quot;\$trace&quot; =&gt; &#39;fix&#39; },
133 line =&gt; 29,
134 max_arg_length =&gt; undef,
135 &quot;package&quot; =&gt; &quot;Plack::Middleware::StackTrace&quot;,
136 respect_overload =&gt; undef,
137 subroutine =&gt; &quot;Plack::Util::__ANON__&quot;,
138 &quot;wantarray&quot; =&gt; 0,
139 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
140 bless({
141 args =&gt; [],
142 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
143 evaltext =&gt; undef,
144 filename =&gt; &quot;lib/Plack/Middleware/StackTrace.pm&quot;,
145 hasargs =&gt; 0,
146 hints =&gt; 2,
147 is_require =&gt; undef,
148 lexicals =&gt; undef,
149 line =&gt; 29,
150 max_arg_length =&gt; undef,
151 &quot;package&quot; =&gt; &quot;Plack::Middleware::StackTrace&quot;,
152 respect_overload =&gt; undef,
153 subroutine =&gt; &quot;(eval)&quot;,
154 &quot;wantarray&quot; =&gt; 0,
155 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
156 bless({
157 args =&gt; [&#39;fix&#39;, &#39;fix&#39;],
158 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
159 evaltext =&gt; undef,
160 filename =&gt; &quot;lib/Plack/Middleware.pm&quot;,
161 hasargs =&gt; 1,
162 hints =&gt; 2,
163 is_require =&gt; undef,
164 lexicals =&gt; { &quot;\$self&quot; =&gt; \do{my $fix} },
165 line =&gt; 26,
166 max_arg_length =&gt; undef,
167 &quot;package&quot; =&gt; &quot;Plack::Middleware&quot;,
168 respect_overload =&gt; undef,
169 subroutine =&gt; &quot;Plack::Middleware::StackTrace::call&quot;,
170 &quot;wantarray&quot; =&gt; 0,
171 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
172 bless({
173 args =&gt; [&#39;fix&#39;],
174 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
175 evaltext =&gt; undef,
176 filename =&gt; &quot;lib/Plack/Middleware/AccessLog.pm&quot;,
177 hasargs =&gt; 1,
178 hints =&gt; 2,
179 is_require =&gt; undef,
180 lexicals =&gt; {
181 &quot;\$env&quot; =&gt; \do{my $fix},
182 &quot;\$self&quot; =&gt; \bless({ app =&gt; sub { &quot;???&quot; }, logger =&gt; sub { &quot;???&quot; } }, &quot;Plack::Middleware::AccessLog&quot;),
183 &quot;%formats&quot; =&gt; {},
184 },
185 line =&gt; 21,
186 max_arg_length =&gt; undef,
187 &quot;package&quot; =&gt; &quot;Plack::Middleware::AccessLog&quot;,
188 respect_overload =&gt; undef,
189 subroutine =&gt; &quot;Plack::Middleware::__ANON__&quot;,
190 &quot;wantarray&quot; =&gt; 0,
191 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
192 bless({
193 args =&gt; [&#39;fix&#39;, &#39;fix&#39;],
194 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
195 evaltext =&gt; undef,
196 filename =&gt; &quot;lib/Plack/Middleware.pm&quot;,
197 hasargs =&gt; 1,
198 hints =&gt; 2,
199 is_require =&gt; undef,
200 lexicals =&gt; { &quot;\$self&quot; =&gt; \do{my $fix} },
201 line =&gt; 26,
202 max_arg_length =&gt; undef,
203 &quot;package&quot; =&gt; &quot;Plack::Middleware&quot;,
204 respect_overload =&gt; undef,
205 subroutine =&gt; &quot;Plack::Middleware::AccessLog::call&quot;,
206 &quot;wantarray&quot; =&gt; 0,
207 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
208 bless({
209 args =&gt; [&#39;fix&#39;],
210 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
211 evaltext =&gt; undef,
212 filename =&gt; &quot;lib/Plack/Middleware/ContentLength.pm&quot;,
213 hasargs =&gt; 1,
214 hints =&gt; 2,
215 is_require =&gt; undef,
216 lexicals =&gt; {
217 &quot;\$self&quot; =&gt; \bless({ app =&gt; sub { &quot;???&quot; } }, &quot;Plack::Middleware::ContentLength&quot;),
218 },
219 line =&gt; 10,
220 max_arg_length =&gt; undef,
221 &quot;package&quot; =&gt; &quot;Plack::Middleware::ContentLength&quot;,
222 respect_overload =&gt; undef,
223 subroutine =&gt; &quot;Plack::Middleware::__ANON__&quot;,
224 &quot;wantarray&quot; =&gt; 0,
225 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
226 bless({
227 args =&gt; [&#39;fix&#39;, &#39;fix&#39;],
228 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
229 evaltext =&gt; undef,
230 filename =&gt; &quot;lib/Plack/Middleware.pm&quot;,
231 hasargs =&gt; 1,
232 hints =&gt; 2,
233 is_require =&gt; undef,
234 lexicals =&gt; { &quot;\$self&quot; =&gt; \do{my $fix} },
235 line =&gt; 26,
236 max_arg_length =&gt; undef,
237 &quot;package&quot; =&gt; &quot;Plack::Middleware&quot;,
238 respect_overload =&gt; undef,
239 subroutine =&gt; &quot;Plack::Middleware::ContentLength::call&quot;,
240 &quot;wantarray&quot; =&gt; 0,
241 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
242 bless({
243 args =&gt; [&#39;fix&#39;],
244 bitmask =&gt; &quot;\0\0\0\0\0\0\0\0\0\0\0\0&quot;,
245 evaltext =&gt; undef,
246 filename =&gt; &quot;lib/Plack/Util.pm&quot;,
247 hasargs =&gt; 1,
248 hints =&gt; 2,
249 is_require =&gt; undef,
250 lexicals =&gt; { &quot;\$app&quot; =&gt; \sub { &quot;???&quot; }, &quot;\$env&quot; =&gt; \do{my $fix} },
251 line =&gt; 107,
252 max_arg_length =&gt; undef,
253 &quot;package&quot; =&gt; &quot;Plack::Util&quot;,
254 respect_overload =&gt; undef,
255 subroutine =&gt; &quot;Plack::Middleware::__ANON__&quot;,
256 &quot;wantarray&quot; =&gt; 0,
257 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
258 bless({
259 args =&gt; [],
260 bitmask =&gt; &quot;\0\0\0\0\0\0\0\0\0\0\0\0&quot;,
261 evaltext =&gt; undef,
262 filename =&gt; &quot;lib/Plack/Util.pm&quot;,
263 hasargs =&gt; 0,
264 hints =&gt; 2,
265 is_require =&gt; undef,
266 lexicals =&gt; undef,
267 line =&gt; 107,
268 max_arg_length =&gt; undef,
269 &quot;package&quot; =&gt; &quot;Plack::Util&quot;,
270 respect_overload =&gt; undef,
271 subroutine =&gt; &quot;(eval)&quot;,
272 &quot;wantarray&quot; =&gt; 0,
273 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
274 bless({
275 args =&gt; [&#39;fix&#39;, &#39;fix&#39;],
276 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
277 evaltext =&gt; undef,
278 filename =&gt; &quot;lib/Plack/Server/Standalone.pm&quot;,
279 hasargs =&gt; 1,
280 hints =&gt; 2,
281 is_require =&gt; undef,
282 lexicals =&gt; {
283 &quot;\$app&quot; =&gt; \do{my $fix},
284 &quot;\$buf&quot; =&gt; \&quot;&quot;,
285 &quot;\$conn&quot; =&gt; \bless(Symbol::gensym(), &quot;IO::Socket::INET&quot;),
286 &quot;\$env&quot; =&gt; \do{my $fix},
287 &quot;\$input&quot; =&gt; \do{my $fix},
288 &quot;\$is_keepalive&quot; =&gt; \1,
289 &quot;\$reqlen&quot; =&gt; \145,
290 &quot;\$res&quot; =&gt; \[400, [&quot;Content-Type&quot;, &quot;text/plain&quot;], [&quot;Bad Request&quot;]],
291 &quot;\$rlen&quot; =&gt; \145,
292 &quot;\$self&quot; =&gt; \bless({
293 host =&gt; 0,
294 keepalive_timeout =&gt; 2,
295 listen_sock =&gt; bless(Symbol::gensym(), &quot;IO::Socket::INET&quot;),
296 max_keepalive_reqs =&gt; 100,
297 port =&gt; 8080,
298 timeout =&gt; 300,
299 }, &quot;Plack::Server::Standalone&quot;),
300 &quot;\$use_keepalive&quot; =&gt; \undef,
301 },
302 line =&gt; 153,
303 max_arg_length =&gt; undef,
304 &quot;package&quot; =&gt; &quot;Plack::Server::Standalone&quot;,
305 respect_overload =&gt; undef,
306 subroutine =&gt; &quot;Plack::Util::run_app&quot;,
307 &quot;wantarray&quot; =&gt; 0,
308 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
309 bless({
310 args =&gt; [&#39;fix&#39;, &#39;fix&#39;, &#39;fix&#39;, &#39;fix&#39;, 1, 1],
311 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
312 evaltext =&gt; undef,
313 filename =&gt; &quot;lib/Plack/Server/Standalone.pm&quot;,
314 hasargs =&gt; 1,
315 hints =&gt; 2,
316 is_require =&gt; undef,
317 lexicals =&gt; {
318 &quot;\$app&quot; =&gt; \do{my $fix},
319 &quot;\$conn&quot; =&gt; \do{my $fix},
320 &quot;\$env&quot; =&gt; \do{my $fix},
321 &quot;\$max_reqs_per_child&quot; =&gt; \undef,
322 &quot;\$may_keepalive&quot; =&gt; \1,
323 &quot;\$proc_req_count&quot; =&gt; \5,
324 &quot;\$req_count&quot; =&gt; \1,
325 &quot;\$self&quot; =&gt; \do{my $fix},
326 },
327 line =&gt; 111,
328 max_arg_length =&gt; undef,
329 &quot;package&quot; =&gt; &quot;Plack::Server::Standalone&quot;,
330 respect_overload =&gt; undef,
331 subroutine =&gt; &quot;Plack::Server::Standalone::handle_connection&quot;,
332 &quot;wantarray&quot; =&gt; 0,
333 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
334 bless({
335 args =&gt; [&#39;fix&#39;, &#39;fix&#39;],
336 bitmask =&gt; &quot;UUUUUUUUUUUU\25&quot;,
337 evaltext =&gt; undef,
338 filename =&gt; &quot;lib/Plack/Server/Standalone.pm&quot;,
339 hasargs =&gt; 1,
340 hints =&gt; 2,
341 is_require =&gt; undef,
342 lexicals =&gt; { &quot;\$app&quot; =&gt; \do{my $fix}, &quot;\$self&quot; =&gt; \do{my $fix} },
343 line =&gt; 62,
344 max_arg_length =&gt; undef,
345 &quot;package&quot; =&gt; &quot;Plack::Server::Standalone&quot;,
346 respect_overload =&gt; undef,
347 subroutine =&gt; &quot;Plack::Server::Standalone::accept_loop&quot;,
348 &quot;wantarray&quot; =&gt; undef,
349 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
350 bless({
351 args =&gt; [&#39;fix&#39;, &#39;fix&#39;],
352 bitmask =&gt; &quot;\0\0\0\0\0\0\0\0\0\0\0\0&quot;,
353 evaltext =&gt; undef,
354 filename =&gt; &quot;scripts/plackup&quot;,
355 hasargs =&gt; 1,
356 hints =&gt; 2,
357 is_require =&gt; undef,
358 lexicals =&gt; {
359 &quot;\$app&quot; =&gt; \&quot;eg/dot-psgi/error.psgi&quot;,
360 &quot;\$env&quot; =&gt; \&quot;development&quot;,
361 &quot;\$handler&quot; =&gt; \do{my $fix},
362 &quot;\$help&quot; =&gt; \0,
363 &quot;\$server&quot; =&gt; \do{my $fix},
364 &quot;\@args&quot; =&gt; [],
365 &quot;\@includes&quot; =&gt; [],
366 },
367 line =&gt; 42,
368 max_arg_length =&gt; undef,
369 &quot;package&quot; =&gt; &quot;main&quot;,
370 respect_overload =&gt; undef,
371 subroutine =&gt; &quot;Plack::Server::Standalone::run&quot;,
372 &quot;wantarray&quot; =&gt; undef,
373 }, &quot;Devel::StackTrace::WithLexicals::Frame&quot;),
374 ],
375 &quot;index&quot; =&gt; 2,
376 }, &quot;Devel::StackTrace::WithLexicals&quot;);
377 ${$a-&gt;{frames}[0]{lexicals}{&quot;\$trace&quot;}} = $a;
378 $a-&gt;{frames}[2]{args}[0] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
379 $a-&gt;{frames}[2]{lexicals}{&quot;\$env&quot;} = $a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;};
380 $a-&gt;{frames}[2]{lexicals}{&quot;\$self&quot;} = $a-&gt;{frames}[0]{lexicals}{&quot;\$self&quot;};
381 $a-&gt;{frames}[2]{lexicals}{&quot;\$trace&quot;} = $a-&gt;{frames}[0]{lexicals}{&quot;\$trace&quot;};
382 $a-&gt;{frames}[4]{args}[0] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$self&quot;}};
383 $a-&gt;{frames}[4]{args}[1] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
384 ${$a-&gt;{frames}[4]{lexicals}{&quot;\$self&quot;}} = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$self&quot;}};
385 $a-&gt;{frames}[5]{args}[0] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
386 ${$a-&gt;{frames}[5]{lexicals}{&quot;\$env&quot;}} = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
387 $a-&gt;{frames}[6]{args}[0] = ${$a-&gt;{frames}[5]{lexicals}{&quot;\$self&quot;}};
388 $a-&gt;{frames}[6]{args}[1] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
389 ${$a-&gt;{frames}[6]{lexicals}{&quot;\$self&quot;}} = ${$a-&gt;{frames}[5]{lexicals}{&quot;\$self&quot;}};
390 $a-&gt;{frames}[7]{args}[0] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
391 $a-&gt;{frames}[8]{args}[0] = ${$a-&gt;{frames}[7]{lexicals}{&quot;\$self&quot;}};
392 $a-&gt;{frames}[8]{args}[1] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
393 ${$a-&gt;{frames}[8]{lexicals}{&quot;\$self&quot;}} = ${$a-&gt;{frames}[7]{lexicals}{&quot;\$self&quot;}};
394 $a-&gt;{frames}[9]{args}[0] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
395 ${$a-&gt;{frames}[9]{lexicals}{&quot;\$env&quot;}} = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
396 $a-&gt;{frames}[11]{args}[0] = ${$a-&gt;{frames}[9]{lexicals}{&quot;\$app&quot;}};
397 $a-&gt;{frames}[11]{args}[1] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
398 ${$a-&gt;{frames}[11]{lexicals}{&quot;\$app&quot;}} = ${$a-&gt;{frames}[9]{lexicals}{&quot;\$app&quot;}};
399 *{${$a-&gt;{frames}[11]{lexicals}{&quot;\$conn&quot;}}} = {
400 io_socket_peername =&gt; pack(&quot;H*&quot;,&quot;1002c5c57f0000010000000000000000&quot;),
401 io_socket_timeout =&gt; undef,
402 };
403 ${$a-&gt;{frames}[11]{lexicals}{&quot;\$env&quot;}} = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
404 ${$a-&gt;{frames}[11]{lexicals}{&quot;\$input&quot;}} = *{${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}}-&gt;{&quot;psgi.input&quot;}};
405 *{${$a-&gt;{frames}[11]{lexicals}{&quot;\$self&quot;}}-&gt;{listen_sock}} = {
406 io_socket_domain =&gt; 2,
407 io_socket_proto =&gt; 6,
408 io_socket_timeout =&gt; undef,
409 io_socket_type =&gt; 1,
410 };
411 $a-&gt;{frames}[12]{args}[0] = ${$a-&gt;{frames}[11]{lexicals}{&quot;\$self&quot;}};
412 $a-&gt;{frames}[12]{args}[1] = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
413 $a-&gt;{frames}[12]{args}[2] = *{${$a-&gt;{frames}[11]{lexicals}{&quot;\$conn&quot;}}};
414 $a-&gt;{frames}[12]{args}[3] = ${$a-&gt;{frames}[9]{lexicals}{&quot;\$app&quot;}};
415 ${$a-&gt;{frames}[12]{lexicals}{&quot;\$app&quot;}} = ${$a-&gt;{frames}[9]{lexicals}{&quot;\$app&quot;}};
416 ${$a-&gt;{frames}[12]{lexicals}{&quot;\$conn&quot;}} = *{${$a-&gt;{frames}[11]{lexicals}{&quot;\$conn&quot;}}};
417 ${$a-&gt;{frames}[12]{lexicals}{&quot;\$env&quot;}} = ${$a-&gt;{frames}[0]{lexicals}{&quot;\$env&quot;}};
418 ${$a-&gt;{frames}[12]{lexicals}{&quot;\$self&quot;}} = ${$a-&gt;{frames}[11]{lexicals}{&quot;\$self&quot;}};
419 $a-&gt;{frames}[13]{args}[0] = ${$a-&gt;{frames}[11]{lexicals}{&quot;\$self&quot;}};
420 $a-&gt;{frames}[13]{args}[1] = ${$a-&gt;{frames}[7]{lexicals}{&quot;\$self&quot;}}-&gt;{app};
421 ${$a-&gt;{frames}[13]{lexicals}{&quot;\$app&quot;}} = ${$a-&gt;{frames}[7]{lexicals}{&quot;\$self&quot;}}-&gt;{app};
422 ${$a-&gt;{frames}[13]{lexicals}{&quot;\$self&quot;}} = ${$a-&gt;{frames}[11]{lexicals}{&quot;\$self&quot;}};
423 $a-&gt;{frames}[14]{args}[0] = ${$a-&gt;{frames}[11]{lexicals}{&quot;\$self&quot;}};
424 $a-&gt;{frames}[14]{args}[1] = ${$a-&gt;{frames}[7]{lexicals}{&quot;\$self&quot;}}-&gt;{app};
425 ${$a-&gt;{frames}[14]{lexicals}{&quot;\$handler&quot;}} = ${$a-&gt;{frames}[7]{lexicals}{&quot;\$self&quot;}}-&gt;{app};
426 ${$a-&gt;{frames}[14]{lexicals}{&quot;\$server&quot;}} = ${$a-&gt;{frames}[11]{lexicals}{&quot;\$self&quot;}};
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-&gt;app-&gt;($env) };
433 </strong> 30: };
434 31:
435 32: if (!$res &amp;&amp; $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-&gt;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 =&gt; sub { &quot;???&quot; } }, &quot;Plack::Middleware::StackTrace&quot;);
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-&gt;app-&gt;($env);
448 </strong> 22:
449 23: my $logger = $self-&gt;logger || sub { $env-&gt;{&#39;psgi.errors&#39;}-&gt;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 =&gt; &quot;*/*&quot;,
453 HTTP_HOST =&gt; &quot;localhost:8080&quot;,
454 HTTP_USER_AGENT =&gt; &quot;curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3&quot;,
455 PATH_INFO =&gt; &quot;/&quot;,
456 QUERY_STRING =&gt; &quot;&quot;,
457 REMOTE_ADDR =&gt; &quot;127.0.0.1&quot;,
458 REQUEST_METHOD =&gt; &quot;GET&quot;,
459 REQUEST_URI =&gt; &quot;/&quot;,
460 SCRIPT_NAME =&gt; &quot;&quot;,
461 SERVER_NAME =&gt; 0,
462 SERVER_PORT =&gt; 8080,
463 SERVER_PROTOCOL =&gt; &quot;HTTP/1.1&quot;,
464 &quot;psgi.errors&quot; =&gt; *main::STDERR,
465 &quot;psgi.input&quot; =&gt; \*Plack::Server::Standalone::$input,
466 &quot;psgi.multiprocess&quot; =&gt; &quot;&quot;,
467 &quot;psgi.multithread&quot; =&gt; &quot;&quot;,
468 &quot;psgi.run_once&quot; =&gt; &quot;&quot;,
469 &quot;psgi.url_scheme&quot; =&gt; &quot;http&quot;,
470 &quot;psgi.version&quot; =&gt; [1, 0],
471 };
472 my $self = bless({ app =&gt; sub { &quot;???&quot; }, logger =&gt; sub { &quot;???&quot; } }, &quot;Plack::Middleware::AccessLog&quot;);
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-&gt;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 =&gt; sub { &quot;???&quot; }, logger =&gt; sub { &quot;???&quot; } }, &quot;Plack::Middleware::AccessLog&quot;);
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-&gt;app-&gt;(@_);
486 </strong> 11:
487 12: my $h = Plack::Util::headers($res-&gt;[1]);
488 13: if (!Plack::Util::status_with_no_entity_body($res-&gt;[0]) &amp;&amp;
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 =&gt; sub { &quot;???&quot; } }, &quot;Plack::Middleware::ContentLength&quot;);
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-&gt;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 =&gt; sub { &quot;???&quot; } }, &quot;Plack::Middleware::ContentLength&quot;);
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-&gt;($env) };
502 </strong> 108: if ($@) {
503 109: my $body = &quot;Internal Server Error&quot;;
504 110: $env-&gt;{&#39;psgi.errors&#39;}-&gt;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 { &quot;???&quot; };
506 my $env = {
507 HTTP_ACCEPT =&gt; &quot;*/*&quot;,
508 HTTP_HOST =&gt; &quot;localhost:8080&quot;,
509 HTTP_USER_AGENT =&gt; &quot;curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3&quot;,
510 PATH_INFO =&gt; &quot;/&quot;,
511 QUERY_STRING =&gt; &quot;&quot;,
512 REMOTE_ADDR =&gt; &quot;127.0.0.1&quot;,
513 REQUEST_METHOD =&gt; &quot;GET&quot;,
514 REQUEST_URI =&gt; &quot;/&quot;,
515 SCRIPT_NAME =&gt; &quot;&quot;,
516 SERVER_NAME =&gt; 0,
517 SERVER_PORT =&gt; 8080,
518 SERVER_PROTOCOL =&gt; &quot;HTTP/1.1&quot;,
519 &quot;psgi.errors&quot; =&gt; *main::STDERR,
520 &quot;psgi.input&quot; =&gt; \*Plack::Server::Standalone::$input,
521 &quot;psgi.multiprocess&quot; =&gt; &quot;&quot;,
522 &quot;psgi.multithread&quot; =&gt; &quot;&quot;,
523 &quot;psgi.run_once&quot; =&gt; &quot;&quot;,
524 &quot;psgi.url_scheme&quot; =&gt; &quot;http&quot;,
525 &quot;psgi.version&quot; =&gt; [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-&gt;($env) };
531 </strong> 108: if ($@) {
532 109: my $body = &quot;Internal Server Error&quot;;
533 110: $env-&gt;{&#39;psgi.errors&#39;}-&gt;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, &quot;&lt;&quot;, \$buf;
536 152: $env-&gt;{&#39;psgi.input&#39;} = $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 { &quot;???&quot; };
542 my $buf = &quot;&quot;;
543 my $conn = do {
544 require Symbol;
545 my $a = bless(Symbol::gensym(), &quot;IO::Socket::INET&quot;);
546 *{$a} = {
547 io_socket_peername =&gt; pack(&quot;H*&quot;,&quot;1002c5c57f0000010000000000000000&quot;),
548 io_socket_timeout =&gt; undef,
549 };
550 $a;
551 };
552 my $env = {
553 HTTP_ACCEPT =&gt; &quot;*/*&quot;,
554 HTTP_HOST =&gt; &quot;localhost:8080&quot;,
555 HTTP_USER_AGENT =&gt; &quot;curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3&quot;,
556 PATH_INFO =&gt; &quot;/&quot;,
557 QUERY_STRING =&gt; &quot;&quot;,
558 REMOTE_ADDR =&gt; &quot;127.0.0.1&quot;,
559 REQUEST_METHOD =&gt; &quot;GET&quot;,
560 REQUEST_URI =&gt; &quot;/&quot;,
561 SCRIPT_NAME =&gt; &quot;&quot;,
562 SERVER_NAME =&gt; 0,
563 SERVER_PORT =&gt; 8080,
564 SERVER_PROTOCOL =&gt; &quot;HTTP/1.1&quot;,
565 &quot;psgi.errors&quot; =&gt; *main::STDERR,
566 &quot;psgi.input&quot; =&gt; \*Plack::Server::Standalone::$input,
567 &quot;psgi.multiprocess&quot; =&gt; &quot;&quot;,
568 &quot;psgi.multithread&quot; =&gt; &quot;&quot;,
569 &quot;psgi.run_once&quot; =&gt; &quot;&quot;,
570 &quot;psgi.url_scheme&quot; =&gt; &quot;http&quot;,
571 &quot;psgi.version&quot; =&gt; [1, 0],
572 };
573 my $input = \*Plack::Server::Standalone::$input;
574 my $is_keepalive = 1;
575 my $reqlen = 145;
576 my $res = [400, [&quot;Content-Type&quot;, &quot;text/plain&quot;], [&quot;Bad Request&quot;]];
577 my $rlen = 145;
578 my $self = do {
579 require Symbol;
580 my $a = bless({
581 host =&gt; 0,
582 keepalive_timeout =&gt; 2,
583 listen_sock =&gt; bless(Symbol::gensym(), &quot;IO::Socket::INET&quot;),
584 max_keepalive_reqs =&gt; 100,
585 port =&gt; 8080,
586 timeout =&gt; 300,
587 }, &quot;Plack::Server::Standalone&quot;);
588 *{$a-&gt;{listen_sock}} = {
589 io_socket_domain =&gt; 2,
590 io_socket_proto =&gt; 6,
591 io_socket_timeout =&gt; undef,
592 io_socket_type =&gt; 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 &amp;&amp; $max_reqs_per_child &amp;&amp; $proc_req_count &gt;= $max_reqs_per_child) {
598 109: $may_keepalive = undef;
599 110: }
600 <strong class="match"> 111: $self-&gt;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 { &quot;???&quot; };
605 my $conn = do {
606 require Symbol;
607 my $a = bless(Symbol::gensym(), &quot;IO::Socket::INET&quot;);
608 *{$a} = {
609 io_socket_peername =&gt; pack(&quot;H*&quot;,&quot;1002c5c57f0000010000000000000000&quot;),
610 io_socket_timeout =&gt; undef,
611 };
612 $a;
613 };
614 my $env = {
615 HTTP_ACCEPT =&gt; &quot;*/*&quot;,
616 HTTP_HOST =&gt; &quot;localhost:8080&quot;,
617 HTTP_USER_AGENT =&gt; &quot;curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3&quot;,
618 PATH_INFO =&gt; &quot;/&quot;,
619 QUERY_STRING =&gt; &quot;&quot;,
620 REMOTE_ADDR =&gt; &quot;127.0.0.1&quot;,
621 REQUEST_METHOD =&gt; &quot;GET&quot;,
622 REQUEST_URI =&gt; &quot;/&quot;,
623 SCRIPT_NAME =&gt; &quot;&quot;,
624 SERVER_NAME =&gt; 0,
625 SERVER_PORT =&gt; 8080,
626 SERVER_PROTOCOL =&gt; &quot;HTTP/1.1&quot;,
627 &quot;psgi.errors&quot; =&gt; *main::STDERR,
628 &quot;psgi.input&quot; =&gt; \*Plack::Server::Standalone::$input,
629 &quot;psgi.multiprocess&quot; =&gt; &quot;&quot;,
630 &quot;psgi.multithread&quot; =&gt; &quot;&quot;,
631 &quot;psgi.run_once&quot; =&gt; &quot;&quot;,
632 &quot;psgi.url_scheme&quot; =&gt; &quot;http&quot;,
633 &quot;psgi.version&quot; =&gt; [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 =&gt; 0,
643 keepalive_timeout =&gt; 2,
644 listen_sock =&gt; bless(Symbol::gensym(), &quot;IO::Socket::INET&quot;),
645 max_keepalive_reqs =&gt; 100,
646 port =&gt; 8080,
647 timeout =&gt; 300,
648 }, &quot;Plack::Server::Standalone&quot;);
649 *{$a-&gt;{listen_sock}} = {
650 io_socket_domain =&gt; 2,
651 io_socket_proto =&gt; 6,
652 io_socket_timeout =&gt; undef,
653 io_socket_type =&gt; 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-&gt;setup_listener();
660 <strong class="match"> 62: $self-&gt;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 { &quot;???&quot; };
665 my $self = do {
666 require Symbol;
667 my $a = bless({
668 host =&gt; 0,
669 keepalive_timeout =&gt; 2,
670 listen_sock =&gt; bless(Symbol::gensym(), &quot;IO::Socket::INET&quot;),
671 max_keepalive_reqs =&gt; 100,
672 port =&gt; 8080,
673 timeout =&gt; 300,
674 }, &quot;Plack::Server::Standalone&quot;);
675 *{$a-&gt;{listen_sock}} = {
676 io_socket_domain =&gt; 2,
677 io_socket_proto =&gt; 6,
678 io_socket_timeout =&gt; undef,
679 io_socket_type =&gt; 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-&gt;auto(@args);
686 <strong class="match"> 42: $server-&gt;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 = &quot;eg/dot-psgi/error.psgi&quot;;
691 my $env = &quot;development&quot;;
692 my $handler = sub { &quot;???&quot; };
693 my $help = 0;
694 my $server = do {
695 require Symbol;
696 my $a = bless({
697 host =&gt; 0,
698 keepalive_timeout =&gt; 2,
699 listen_sock =&gt; bless(Symbol::gensym(), &quot;IO::Socket::INET&quot;),
700 max_keepalive_reqs =&gt; 100,
701 port =&gt; 8080,
702 timeout =&gt; 300,
703 }, &quot;Plack::Server::Standalone&quot;);
704 *{$a-&gt;{listen_sock}} = {
705 io_socket_domain =&gt; 2,
706 io_socket_proto =&gt; 6,
707 io_socket_timeout =&gt; undef,
708 io_socket_type =&gt; 1,
709 };
710 $a;
711 };
712 my @args = ();
713 my @includes = ();
714 </pre></body></html></li></ol>