crash on async in taint mode

Y

Yohan N. Leder

To replace a fork() which crashes ActivePerl 5.8.8 in taint mode, I've
tried to go through creation of a thread... And it crashes too !

#!/usr/bin/perl -wT
use threads;
print "Content-type: text/html\n\n";
my $thr = async{print "<p>thread in progress...</p>"};
die "thread failure\n" unless defined($thr);
$thr->detach();
sleep(1);
print "<p>main in progress...</p>";
exit 0;

ActivePerl falls in exception on async{} block.
What's wrong again ?
 
B

Brian McCauley

Yohan said:
To replace a fork() which crashes ActivePerl 5.8.8 in taint mode, I've
tried to go through creation of a thread... And it crashes too !

#!/usr/bin/perl -wT
use threads;
print "Content-type: text/html\n\n";
my $thr = async{print "<p>thread in progress...</p>"};
die "thread failure\n" unless defined($thr);
$thr->detach();
sleep(1);
print "<p>main in progress...</p>";
exit 0;

ActivePerl falls in exception on async{} block.
What's wrong again ?

Windows doesn't have a real fork(). It is emulated with threads, so I
suspect you are seeing the same bug.
 
Y

Yohan N. Leder

Windows doesn't have a real fork(). It is emulated with threads, so I
suspect you are seeing the same bug.

Thanks. Then, it sounds I have to go through Win32::process as you said
in the other thread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top