develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [ID 20010821.005] Thread safe queues on SMP kernel

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
August 22, 2001 03:58
Subject:
Re: [ID 20010821.005] Thread safe queues on SMP kernel
Message ID:
B7A95CCF.33D7%arthur@contiller.se
01-08-22 00.12, skrev David Redmond på redmond@mscsoftware.com följande:

> 
> This is a bug report for perl from david.redmond@mscsoftware.com,
> generated with the help of perlbug 1.33 running under perl v5.6.1.
> 
> 
> -----------------------------------------------------------------
> The following source reveals bugs in Thread::Queue consistant with a race
> condition. This bug is similar to ID 19991203.003
> <http://archive.develooper.com/perl5-porters%40perl.org/msg04442.html>. The
> test performed by ext/Thread/queue.t does not pick it up.
> 
> Sample output from linux 2.4.3 SMP system:
> 97 34 30 40 18 1 37 89 23 75 60 44 78 11 65 80 66 19 28 71 55 Attempt to free
> unreferenced scalar at ./example line 37 thread 1.
> 43 29 11 84 11 66 31 71 33 2 83 45 94 93 10 60 8 10 41 32 11 5 53 58 31 6 93
> 29 81 31 85 96 37 59 14 26 26 52 67 54 34 81 90 Attempt to free unreferenced
> scalar at ./example line 53 thread 2.
> Segmentation fault

And this is exactly why 5005threads are considered experimental.

-- 
Arthur


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About