Bad file descriptor when running under WOW64

Posted by snwbrdwndsrf on 2007-01-24 15:09

Suddenly, perl has become unable to spawn processes, but only when running under the Wow64. A small repro such as:

#!perl -w
my $sFileVer = `dir`;
if (!defined($sFileVer)) { print "$!\n"; }
else { print "$sFileVer\n"; }

results in "Bad file descriptor". Frustratingly, things work just fine when running the x64 version of ActiveState Perl.

Can anyone offer any suggestions?


snwbrdwndsrf | Fri, 2007-01-26 10:58

Something had royally messed up my environment block, and perl was just the first app I encountered that was unable to handle this fact.

ActiveState Staff
Fri, 2007-01-26 11:15

Thanks for reporting back the cause of the problem -- it's good to have that information handy.