Tags:
create new tag
view all tags

Question

We have recently upgraded to 4.1.2 Topics including C++ now return an error

C++ToolsForDatabase

TWiki detected an internal error - please check 
your TWiki logs and webserver logs for more information.

Nested quantifiers in regex; marked by 
<-- HERE in m/^.*?/([^/]+)path++ <-- HERE ToolsForDatabase.*$/

I would prefer not to change the topic names. Can anyone suggest a workaround?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH linux
Web server: Apache
Perl version: 5.8
Client OS: Windows, Linux, Mac
Web Browser: IE, Forefox, Safari
Categories: Fatal error

-- PeterJones - 13 Apr 2007

Answer

ALERT! 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.

Nasty. Your apache error log should give more information i.e the module/line where the error happens. Without that it's hard to suggest a workaround.

-- CrawfordCurrie - 14 Apr 2007

This looks like a bug and should be handled as such. Please provide as much detail as possible to reproduce. See Bugs:WebHome.

-- PeterThoeny - 15 Apr 2007

The apache error log shows the following

[Mon Apr 16 12:00:10 2007] [error] [client 137...] Nested quantifiers in regex; marked by <-- HERE in m/^.*?/([^/]+)/CMS/C++ <-- HERE ToolsForDatabase
.*$/ at twiki/4.1.2/lib/TWiki/Plugins/RedDotPlugin.pm line 280.
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::Plugins::RedDotPlugin::getCgiAction() called at twiki/4.1.2
/lib/TWiki/Plugins/RedDotPlugin.pm line 94
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::Plugins::RedDotPlugin::initRedirector() called at twiki/4.1
.2/lib/TWiki/Plugins/RedDotPlugin.pm line 65
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::Plugins::RedDotPlugin::
[Mon Apr 16 12:00:10 2007] [error] [client 137...] commonTagsHandler('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...','C++ToolsForDa
tabase','CMS',0) called at twiki/4.1.2/lib/TWiki/Plugin.pm line 245
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::Plugin::invoke('TWiki::Plugin=HASH(0x8a34714)','commonTagsHandler','<!DOCTYPE html PUBLIC "
-//W3C//DTD XHTML 1.0 Transitional//EN...','C++ToolsForDatabase','CMS',0) called at twiki/4.1.2/lib/TWiki/Plugins.pm line 333
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x925e95
[Mon Apr 16 12:00:10 2007] [error] [client 137...] 0)','commonTagsHandler','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...','C++Tool
sForDatabase','CMS',0) called at twiki/4.1.2/lib/TWiki/Plugins.pm line 470
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::Plugins::commonTagsHandler('TWiki::Plugins=HASH(0x925e950)','<!DOCTYPE html PUBLIC "-//W3C/
/DTD XHTML 1.0 Transitional//EN...','C++ToolsForDatabase','CMS',0) called at twiki/4.1.2/lib/TWiki.pm line 2605
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::handleCommonTags('TWiki=HASH(0x8e39784)','<!DOCTYPE htm
[Mon Apr 16 12:00:10 2007] [error] [client 137...] l PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...','CMS','C++ToolsForDatabase') called at /afs/ce
rn.ch/project/twiki/production/4.1.2/lib/TWiki/UI/View.pm line 375
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::UI::View::_prepare('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...','TWik
i=HASH(0x8e39784)','CMS','C++ToolsForDatabase','TWiki::Meta=HASH(0x8e1c610)',0) called at twiki/4.1.2/lib/TWiki/UI/View.pm li
ne 343
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::UI::View::view('TWiki=HASH(0x8e39784)') called at /afs/cern.ch/project/twik
[Mon Apr 16 12:00:10 2007] [error] [client 137...] i/production/4.1.2/lib/TWiki/UI.pm line 159
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::UI::__ANON__() called at twiki/4.0.4/lib/CPAN/lib//Error.pm
 line 379
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !eval {...} called at twiki/4.1.2/lib/CPAN/lib//Error.pm line 371
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !Error::subs::try('CODE(0x8e2bcf0)','HASH(0x8e56f30)') called at /afs/cern.ch/project/twiki/product
ion/4.1.2/lib/TWiki/UI.pm line 199
[Mon Apr 16 12:00:10 2007] [error] [client 137...] !TWiki::UI::run('CODE(0x80d9ff0)','view',1) called

-- PeterJones - 16 Apr 2007

This looks like an issue with RedDotPlugin. Try to disable this plugin to confirm.

-- PeterThoeny - 16 Apr 2007

Using bin/configure I removed RedDotPlugin. What is starnge is that it still gets referenced.

Nested quantifiers in regex; marked 
by <-- HERE in m/^.*?/([^/]+)/CMS/C++ <-- HERE ToolsForDatabase.*$/ at 
4.1.2/lib/TWiki/Plugins/RedDotPlugin.pm line 280.

RedDotPlugin itself is not used anywhere in these topics (I installed it for the NatSkin).

In lib/LocalSite.cfg

$TWiki::cfg{Plugins}{RedDotPlugin}{Enabled} = 0;
but RedDotPlugin still appears in TWiki/InstalledPlugins.

I removed the .pm from lib/TWiki/Plugins and tried again but RedDotPlugin still get referenced. Could it be loaded from another Plugin?

-- PeterJones - 17 Apr 2007

Do you have ModPerl or SpeedyCGI enabled?

-- PeterThoeny - 17 Apr 2007

Yes SpeedyCGI is used in bin/view and is set to

#!/usr/bin/perperl -wT -- -M6 -r20
However we had 30173 views yesterday and I get the same results this morning.

-- PeterJones - 18 Apr 2007

% touch twiki/bin/view

-- PeterThoeny - 18 Apr 2007

Thanks Peter % touch twiki/bin/view did the trick.

Before closing this question can you confirm how the RedDot had been cached all this time.

-- PeterJones - 19 Apr 2007

You'd need to read the docs on command line parameters of speedy cgi.

-- PeterThoeny - 19 Apr 2007

For reference:

Q How much of perl's state is kept when speedy starts another request? Do globals keep their values? Are destructors run after the request?

A Globals keep their values. Nothing is destroyed after the request. STDIN/STDOUT/STDERR are closed -- other files are not. %ENV and @ARGV are the only globals changed between requests.

Q How can I make sure speedy restarts when I edit a perl library used by the CGI?

A Do a touch on the main cgi file that is executed. The mtime on the main file is checked each time the front-end runs.

-- PeterJones - 20 Apr 2007

Peter T.. I have a smiliar problem I have a customer who is trying to save a page und WYSIWYG but I get this error Software error:

Nested quantifiers in regex; marked by <-- HERE in m/\.Service Level Management ** <-- HERE IN PROGRESS$/ at /usr/local/twiki/lib/TWiki/Plugins/WysiwygPlugin/HTML2TML/Node.pm line 625. Dont quite understand what is wrong why the user can not save his page in this format but works fine for Wiki in edit mode

-- JeanneneSchelski - 21 Sep 2007

Looks like a bug. Please try to isolate the text that causes the issue and file a bug report with steps to reproduce the problem.

-- PeterThoeny - 18 Oct 2007

Change status to:
Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2007-10-18 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.