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 think how to create it. But if I fail I'll try to analyze whether we CLONE is needed. If you don't know what CLONE is please see:
http://apache.org/~stas/Example-CLONE-0.02.tar.gz



I had a look at Example-CLONE. When I run "nmake test" it passes all tests successfully, but then I get an application error popup, and it spits out "A thread exited while 2 threads were running" on the console. It's OK if I run the two tests, basic.t and threads.t, individually.


Yes, that's a known problem in perl threads. Try replacing detach call with join:


You might also want to check out my Thread::Detach from CPAN:

http://search.cpan.org/~elizabeth/Thread-Detach-0.01/lib/Thread/Detach.pm

that should allow you to keep your source code unchanged (just add Thread::Detach to PERL5OPTS).

Thanks, Liz. But the problem exists not only on Win32. I can easily reproduce it on linux. So I don't think your doc is correct to say: "All of this happens on Windows only and if the version of the Perl executor is known to have the problem."


In any case, for my test using join instead of detach does the trick just fine.


__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to