Tags:
create new tag
, view all tags

Bug: Plugin.pm evals plugins w/o checking for errors

Plugin.pm uses eval to load plugins. It doesn't, however, check the error return ($@), which can cause silent and hard to track down problems.

For example, we had a misconfigured mod_perl which was attempting to load a shareable File::Glob (even though it was statically linked into Perl) when MathModePlugin was eval'd. MathModePlugin was compiled (and thus loaded into mod_perl) but the module's initialization code (the part not in subroutines) was never run, causing bizarre behavior when the plugin was used. The only hint of why this was happening was in the error thrown by Perl via $@.

Test case

Environment

TWiki version: 20030201
TWiki plugins:  
Server OS:  
Web server:  
Perl version: 5.6.1
Client OS:  
Web Browser:  

-- DiabJerius - 27 Feb 2003

Follow up

This should have been fixed in the TWikiRelease01Feb2003. This needs to be verified, possibly it got "unfixed" by mistake.

Fix record

Topic revision: r2 - 2003-03-10 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.