I tried running #2 and put a breakpoint at finish().
The threads were running fine:
When I stepped over finish, the application crashed as follows:
C:\Foo>perl -d elevator2.pl
Running...
init_elevator()...
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
Elevator::run(4)
Elevator::run(0)
Elevator::run(1)
Elevator::run(2)
Elevator::run(3)
finish()...
Attempt to free non-existent shared string 'á§B☺' during global
+destruction.
Attempt to free non-existent shared string 'InsertBreakpoint' during g
+lobal destruction.
Attempt to free non-existent shared string 'Command' during global des
+truction.
Attempt to free non-existent shared string 'WatchList' during global d
+estruction.
Attempt to free non-existent shared string 'SourceFile' during global
+destruction.
Attempt to free non-existent shared string 'Response' during global de
+struction.
Attempt to free non-existent shared string 'LineNumber' during global
+destruction.
Attempt to free non-existent shared string 'RemoveAllBreakpoints' duri
+ng global destruction.
Attempt to free non-existent shared string 'SetCurrentDirectory' durin
+g global destruction.
Free to wrong pool 436b0b0 not 15d27f8 during global destruction.
-P0w3rK!d
update (broquaint): added <readmore> tag
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|