# New Ticket Created by  Benjamin Goldberg 
# Please include the string:  [perl #126208]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126208 >


The code at https://gist.github.com/BenGoldberg1/bc39a9a31eaeb733012a creates 
many threads for the task of sorting numbers as they are sent to a channel.  
Roughly twice as many threads are created as there are distinct values.

The output should be a list of random numbers, sorted.

Instead, it produces a error message; changing the number of element to be 
sorted causes the error message to change.  This leads me to conclude that the 
problem is memory corruption of some sort.

One of the error messages was:
Attempt to return outside of any Routine␤  in block <unit> at /tmp/4c1CWudfwj:33
Another error message was:
Cannot send a message on a closed channel␤  in block <unit> at 
/tmp/T9gWZ7YfGJ:33
Another error message was:
Cannot receive a message on a closed channel␤  in block <unit> at 
/tmp/rPtHPIxsTw:33

The funny file names were because I ran the code with camelia, the #perl6 irc 
bot.

Reply via email to