Item8266: Fails with FastCGI
Priority: Normal
Current State: Closed
Released In:
Target Release:
Applies To: Engine
Component: Sandbox
Branches:
See related
Tasks.Item1315, with WinXP/Apache/mod_fastcgi finally working this extension now fails.
This is what my browser shows:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
Can't steal STDERR: Bad file descriptor
And the apache error log:
[Mon Sep 07 11:34:13 2009] [error] [client 24.132.183.240] FastCGI: server "C:/Program Files/Foswiki/Foswiki/bin/foswiki.fcgi" stderr: Can't steal STDERR: Bad file descriptor at C:/Program Files/Foswiki/Foswiki/lib/Foswiki/Sandbox.pm line 580., referer: http://jules/foswiki/bin/view/Main/WebChanges
--
JulianLevens - 07 Sep 2009
This is probably a core issue with Sandbox on Windows. Which version of perl are you using on windows? Strawberry, Active State, cygwin?
Sandbox attempts to intercept STDOUT and STDERR so that results from external programs like GraphViz can be returned to the user. I expect that any plugin that runs an external application might run into this same error. The Sandbox code is sensitive to perl versions, so another perl might have more success.
--
GeorgeClark - 12 Sep 2009
I'm using strawberry perl. Basically the Windows MSI of foswiki 1.0.5.
Although perl versions could be the issue. I know that FastCGI has to intercept these items, so that may (or may not) complicate the issue. This plugin works fine with plain CGI.
--
JulianLevens - 15 Sep 2009
George
I've 'fixed' this by commenting out the steal code, but as you say this is core issue with Sandbox.
--
JulianLevens - 10 Jun 2010