Re: early perl startup in vhost on win32

2004-01-12 Thread Steve Hay
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.

Re: [mp2] slow log_error()

2004-01-12 Thread Kurt George Gjerde
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.

Re: early perl startup in vhost on win32

2004-01-12 Thread Stas Bekman
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

Re: early perl startup in vhost on win32

2004-01-12 Thread Steve Hay
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

Re: early perl startup in vhost on win32

2004-01-12 Thread Stas Bekman
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

Re: early perl startup in vhost on win32

2004-01-12 Thread Elizabeth Mattijsen
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

Re: early perl startup in vhost on win32

2004-01-12 Thread Stas Bekman
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

Re: early perl startup in vhost on win32

2004-01-12 Thread Elizabeth Mattijsen
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

Re: early perl startup in vhost on win32

2004-01-12 Thread Stas Bekman
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

Re: early perl startup in vhost on win32

2004-01-12 Thread Elizabeth Mattijsen
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

Re: early perl startup in vhost on win32

2004-01-12 Thread Stas Bekman
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

Re: early perl startup in vhost on win32

2004-01-12 Thread Elizabeth Mattijsen
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