Stas Bekman wrote:
>But I don't get the segfault.
>
>I'd like to explore the possibility that we have a need for CLONE in Perl
>sections and PerlLoadModule next. I wish I had the segfault, though. I need to
>think how to create it. But if I fail I'll try to analyze whether we CLONE is
>needed.
Hi,
Thanks for replying. I did some benchmarks today. Staggering.
B1:
timethese(2000, {
'log_error' => sub { $r->log_error("benchmarking log_error") },
'STDERR'=> sub { print STDERR "benchmarking log_error\n" },
});
Result:
Benchmark: timing 2000 iterations of STDERR, log_error.
Steve Hay wrote:
Stas Bekman wrote:
But I don't get the segfault.
I'd like to explore the possibility that we have a need for CLONE in Perl
sections and PerlLoadModule next. I wish I had the segfault, though. I need to
think how to create it. But if I fail I'll try to analyze whether we CLONE
Stas Bekman wrote:
>Steve Hay wrote:
>
>
>>Stas Bekman wrote:
>>
>>
>>
>>
>>>But I don't get the segfault.
>>>
>>>I'd like to explore the possibility that we have a need for CLONE in Perl
>>>sections and PerlLoadModule next. I wish I had the segfault, though. I need to
>>>think how to crea
Steve Hay wrote:
[...]
Yes, that's a known problem in perl threads. Try replacing detach call with join:
Yeah, that fixes it.
Thanks, Steve. I've committed it (to my local rep).
Kurt on the modperl list has just reported a similar problem (free the wrong
pool), looking forward to his details. Ma
At 09:17 -0800 1/12/04, Stas Bekman wrote:
Steve Hay wrote:
Stas Bekman wrote:
But I don't get the segfault.
I'd like to explore the possibility that we have a need for CLONE
in Perl sections and PerlLoadModule next. I wish I had the
segfault, though. I need to think how to create it. But if I
Elizabeth Mattijsen wrote:
At 09:17 -0800 1/12/04, Stas Bekman wrote:
Steve Hay wrote:
Stas Bekman wrote:
But I don't get the segfault.
I'd like to explore the possibility that we have a need for CLONE in
Perl sections and PerlLoadModule next. I wish I had the segfault,
though. I need to thin
At 09:37 -0800 1/12/04, Stas Bekman wrote:
Elizabeth Mattijsen wrote:
You might also want to check out my Thread::Detach from CPAN:
Thanks, Liz. But the problem exists not only on Win32. I can easily
reproduce it on linux.
Oh? That's news to me. I was under the impression the problem only
exist
Elizabeth Mattijsen wrote:
At 09:37 -0800 1/12/04, Stas Bekman wrote:
Elizabeth Mattijsen wrote:
You might also want to check out my Thread::Detach from CPAN:
Thanks, Liz. But the problem exists not only on Win32. I can easily
reproduce it on linux.
Oh? That's news to me. I was under the imp
At 10:00 -0800 1/12/04, Stas Bekman wrote:
Elizabeth Mattijsen wrote:
Oh? That's news to me. I was under the impression the problem
only existed on Win32.
Could you show me how to reproduce the problem on *nix?
% perl-5.8.3-ithread -le 'use threads; threads->new(sub { sleep
1})->detach for 1..1
Elizabeth Mattijsen wrote:
At 10:00 -0800 1/12/04, Stas Bekman wrote:
Elizabeth Mattijsen wrote:
Oh? That's news to me. I was under the impression the problem only
existed on Win32.
Could you show me how to reproduce the problem on *nix?
% perl-5.8.3-ithread -le 'use threads; threads->new(su
At 10:15 -0800 1/12/04, Stas Bekman wrote:
Elizabeth Mattijsen wrote:
At 10:00 -0800 1/12/04, Stas Bekman wrote:
% perl-5.8.3-ithread -le 'use threads; threads->new(sub { sleep
1})->detach for 1..1'
A thread exited while 2 threads were running.
Ah. That! That is considered to be correct behaviou
12 matches
Mail list logo