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).


Liz


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



Reply via email to