Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Elizabeth Mattijsen
Fixed with be9e19efd97755cfd , tests needed! > On 10 Nov 2017, at 03:28, David Lowe wrote: > > This crash still occurs with rakudo 2017.10. > > On Thu, Oct 5, 2017 at 9:10 PM, perl6 via RT > wrote: > Greetings, > > This message has been automatically generated in response to the > creation o

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Elizabeth Mattijsen via RT
Fixed with be9e19efd97755cfd , tests needed! > On 10 Nov 2017, at 03:28, David Lowe wrote: > > This crash still occurs with rakudo 2017.10. > > On Thu, Oct 5, 2017 at 9:10 PM, perl6 via RT > wrote: > Greetings, > > This message has been automatically generated in response to the > creation o

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Elizabeth Mattijsen via RT
Ah, indeed, so a workaround would be: my $lock = Lock.new; my $set = SetHash.new; await ^16 .map: { start { for ^1 { $lock.protect: { $set<1> = True; 1 } $lock.protect: { $set<1> = False; 1 } } } } So maybe a solution would be to test for Proxy of the retu

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Elizabeth Mattijsen
Ah, indeed, so a workaround would be: my $lock = Lock.new; my $set = SetHash.new; await ^16 .map: { start { for ^1 { $lock.protect: { $set<1> = True; 1 } $lock.protect: { $set<1> = False; 1 } } } } So maybe a solution would be to test for Proxy of the retu

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Timo Paulssen via RT
I already figured out that it's about sinking the result of assigning to the SetHash. When you access it you get a proxy, that is the return value of the lock-protected block, and the proxy gets sunk outside of it, thus causing concurrent access to the SetHash. On 14/11/17 16:03, Elizabeth Mattij

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Timo Paulssen
I already figured out that it's about sinking the result of assigning to the SetHash. When you access it you get a proxy, that is the return value of the lock-protected block, and the proxy gets sunk outside of it, thus causing concurrent access to the SetHash. On 14/11/17 16:03, Elizabeth Mattij

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Elizabeth Mattijsen via RT
reducing the code to: use nqp; my $lock = Lock.new; my $hash := nqp::hash; await ^16 .map: { start { for ^1000 { $lock.protect: { nqp::bindkey($hash,"a",1) } $lock.protect: { nqp::deletekey($hash,"a") } } } } does *not* make it crash. So it would appear that i

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Elizabeth Mattijsen
reducing the code to: use nqp; my $lock = Lock.new; my $hash := nqp::hash; await ^16 .map: { start { for ^1000 { $lock.protect: { nqp::bindkey($hash,"a",1) } $lock.protect: { nqp::deletekey($hash,"a") } } } } does *not* make it crash. So it would appear that i

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Elizabeth Mattijsen
This does not seem to appear if you add at least one key to the set before the await. The segfault only appears to occur when adding a first or removing the last key from the SetHash. > On 10 Nov 2017, at 03:28, David Lowe wrote: > > This crash still occurs with rakudo 2017.10. > > On Thu, O

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-14 Thread Elizabeth Mattijsen via RT
This does not seem to appear if you add at least one key to the set before the await. The segfault only appears to occur when adding a first or removing the last key from the SetHash. > On 10 Nov 2017, at 03:28, David Lowe wrote: > > This crash still occurs with rakudo 2017.10. > > On Thu, O

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-10 Thread David Lowe via RT
This crash still occurs with rakudo 2017.10. On Thu, Oct 5, 2017 at 9:10 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "segmentation fault while concurrently updating SetHash", > a sum

Re: [perl #132225] AutoReply: segmentation fault while concurrently updating SetHash

2017-11-10 Thread David Lowe
This crash still occurs with rakudo 2017.10. On Thu, Oct 5, 2017 at 9:10 PM, perl6 via RT wrote: > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "segmentation fault while concurrently updating SetHash", > a sum