Question
I'm using artive perl 5.8.8 build 817 + SSPI + apache 2.0.58 + Mod-perl 1.99
everything works fine, performance is good also, except only one thing , I can not use any search feature, it always give me error:
TWiki detected an internal error - please check your TWiki logs and webserver
logs for more information.
Can't steal STDERR: Bad file descriptor
When I click
WebSearch the log is
| 11 Jul 2006 - 18:05 | Can't steal STDERR: Bad file descriptor at d:/twiki/lib/TWiki/Sandbox.pm line 375. %BR%
at d:/twiki/lib/TWiki/Sandbox.pm line 375 %BR%
TWiki::Sandbox::sysCommand('TWiki::Sandbox=HASH(0xb80ab8)', 'c:\progra~1\GnuWin32\bin\grep.exe -F -i -l -H -- %TOKEN|U% % %BR%F...', 'TOKEN', 'somethingVeryunLikelyTo+search-for-', 'FILES', 'ARRAY(0x5e7ff4c)') called at d:/twiki/lib/TWiki/Store/RcsFile.pm line 347 %BR%
TWiki::Store::RcsFile::searchInWebContent('TWiki::Store::RcsLite=HASH(0x5c08204)', 'somethingVeryunLikelyTo+search-for-', 'ARRAY(0x5e519dc)', 'HASH(0x5c91050)') called at d:/twiki/lib/TWiki/Store.pm line 1995 %BR%
TWiki::Store::searchInWebContent('TWiki::Store=HASH(0x5c60bdc)', 'somethingVeryunLikelyTo+search-for-', 'Main', 'ARRAY(0x5e519dc)', 'HASH(0x5c91050)') called at d:/twiki/lib/TWiki/Search.pm line 293 %BR%
TWiki::Search::_searchTopicsInWeb('TWiki::Search=HASH(0xa86840)', 'Main', '', '', 'keyword', 0, 'somethingVeryunLikelyTo+search-for-') called at d:/twiki/lib/TWiki/Search.pm line 602 %BR%
TWiki::Search::searchWeb('TWiki::Search=HASH(0xa86840)', 'inline', 1, 'basetopic', 'WebSearch', '_RAW', ' \x{a}"" \x{a}type="keyword" \x{a}scope="" \x{a}web="" \x{a}nosearch="" \x{a}zeroresu...', 'web', '', ...) called at d:/twiki/lib/TWiki.pm line 2927 %BR%
TWiki::_SEARCH('TWiki=HASH(0x5c554a8)', 'TWiki::Attrs=HASH(0x5c0a3a4)', 'WebSearch', 'TWiki') called at d:/twiki/lib/TWiki.pm line 2270%BR%
TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x5c554a8)', 'SEARCH', ' \x{a}"" \x{a}type="keyword" \x{a}scope="" \x{a}web="" \x{a}nosearch="" \x{a}zeroresu...', 'WebSearch', 'TWiki') called at d:/twiki/lib/TWiki.pm line 2189%BR%
TWiki::_processTags('TWiki=HASH(0x5c554a8)', '---+ %MAKETEXT{"Web Search"}%\x{a}\x{a}%SEARCH{ \x{a}"%URLPARAM{search}%"...', 'CODE(0x5485d98)', 16, 'WebSearch', 'TWiki') called at d:/twiki/lib/TWiki.pm line 2115 %BR%
TWiki::_expandAllTags('TWiki=HASH(0x5c554a8)', 'SCALAR(0x5c503c8)', 'WebSearch', 'TWiki') called at d:/twiki/lib/TWiki.pm line 2773 %BR%
TWiki::_INCLUDE('TWiki=HASH(0x5c554a8)', 'TWiki::Attrs=HASH(0x5c60258)', 'WebSearch', 'Main') called at d:/twiki/lib/TWiki.pm line 2270 %BR%
TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x5c554a8)', 'INCLUDE', '"TWiki.WebSearch"', 'WebSearch', 'Main') called at d:/twiki/lib/TWiki.pm line 2189 %BR%
TWiki::_processTags('TWiki=HASH(0x5c554a8)', '%INCLUDE{"%TWIKIWEB%.WebSearch"}%', 'CODE(0x5485d98)', 16, 'WebSearch', 'Main') called at d:/twiki/lib/TWiki.pm line 2115 %BR%
TWiki::_expandAllTags('TWiki=HASH(0x5c554a8)', 'SCALAR(0x5caad94)', 'WebSearch', 'Main') called at d:/twiki/lib/TWiki.pm line 2458 %BR%
TWiki::handleCommonTags('TWiki=HASH(0x5c554a8)', '%INCLUDE{"%TWIKIWEB%.WebSearch"}%', 'Main', 'WebSearch') called at d:/twiki/lib/TWiki/UI/View.pm line 322 %BR%
TWiki::UI::View::_prepare('%INCLUDE{"%TWIKIWEB%.WebSearch"}%', 'TWiki=HASH(0x5c554a8)', 'Main', 'WebSearch', 'TWiki::Meta=HASH(0x753568)', 0) called at d:/twiki/lib/TWiki/UI/View.pm line 306 %BR%
TWiki::UI::View::view('TWiki=HASH(0x5c554a8)') called at d:/twiki/lib/TWiki/UI.pm line 109 %BR%
TWiki::UI::__ANON__() called at d:/twiki/lib/CPAN/lib///Error.pm line 379 %BR%
eval {...} called at d:/twiki/lib/CPAN/lib///Error.pm line 371 %BR%
Error::subs::try('CODE(0x5c601d4)', 'HASH(0x5e2beb0)') called at d:/twiki/lib/TWiki/UI.pm line 158 %BR%
TWiki::UI::run('CODE(0xa86720)') called at D:/twiki/bin/view line 31 %BR%
ModPerl::ROOT::ModPerl::Registry::D_3a_twiki_bin_view::handler('Apache2::RequestRec=SCALAR(0x5af5520)') called at C:/Perl/site/lib/ModPerl/RegistryCooker.pm line 203
eval {...} called at C:/Perl/site/lib/ModPerl/RegistryCooker.pm line 203 %BR%
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x5e369b4)') called at C:/Perl/site/lib/ModPerl/RegistryCooker.pm line 169 %BR%
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x5e369b4)') called at C:/Perl/site/lib/ModPerl/Registry.pm line 30 %BR%
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x5af5520)') called at -e line 0 %BR%
eval {...} called %BR%
but I can run c:\progra~1\GnuWin32\bin\grep.exe from command line
Environment
--
XieXiaopu - 11 Jul 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
See possible answer in
HowToFixBadFileDescriptor, it has the same error message.
--
PeterThoeny - 11 Jul 2006