Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl threads sort test program crashes (UPDATED: CAN reproduce win32/5.8.4)

by BrowserUk (Pope)
on Jun 16, 2004 at 11:19 UTC ( #367181=note: print w/replies, xml ) Need Help??


in reply to Perl threads sort test program crashes

I just re-built 5.8.4 from scratch and ran your test 100 times without failure.

Update: I can now reproduce the failure--reliably--with 5.8.4. This doesn't happen with 5.8.3/AS809.

The trick seems to be taking the focus away from the session running the test. If I bring up the task manager while running the loop below, every run will fail whilst the task manager has the focus and every run will complete if the cmd session has the focus.

A timing issue for sure.

P:\test>perl5.8.4 -v This is perl, v5.8.4 built for MSWin32-x86-multi-thread Copyright 1987-2004, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge. P:\test>for /l %i in (1,1,100) do perl5.8.4 367162.pl P:\test>perl5.8.4 367162.pl parent 1980: continue parent 1980: continue parent 1980: waiting for join kid 1 before sort kid 1 after sort parent 1980: thread exited parent 1980: waiting for join kid 2 before sort kid 2 after sort parent 1980: thread exited P:\test>perl5.8.4 367162.pl parent 1396: continue kid 1 before sort kid 1 after sort parent 1396: continue parent 1396: waiting for join kid 2 before sort kid 2 after sort parent 1396: thread exited parent 1396: waiting for join parent 1396: thread exited P:\test>perl5.8.4 367162.pl ...

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon
  • Comment on Re: Perl threads sort test program crashes (UPDATED: CAN reproduce win32/5.8.4)
  • Download Code

Replies are listed 'Best First'.
Re^2: Perl threads sort test program crashes (UPDATED: CAN reproduce win32/5.8.4)
by BrowserUk (Pope) on Jun 16, 2004 at 12:18 UTC

    Here's the disassembly of the segfault.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://367181]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2019-06-17 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (76 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!