When Running twiki on windows using mod_perl.
Embedded Perl version v5.8.8 for Apache/2.0.59 (Win32) mod_perl/2.0.3 Perl/v5.8.
TWiki Release 4.3.1 (Georgetown) released on 2009-04-29
Sandbox.pm fails on line 479 when attempting to `steal` the STDERR handle.
I have read the documentation detailed at http://twiki.org/cgi-bin/view/Support/HowToFixBadFileDescriptor
however this does not provide a fix for my variation of the error.
The error appears to be caused by the redirection of STDERR when running in mod_perl, I have attached a solution based on that described in the mod_perl cookbook.
The solution works by creating a code block then overriding STDERR within the block (using local) where the command is executed, once the code leaves the block STDERR reverts to the previous version.
This method is compatible with mod_perl and is a much better multi-process solution.
Please find attached, the original Sandbox.pm, the fixed Sandbox.pm and a patch.