Tags:
create new tag
view all tags

Question

When including a TOC from another Topic, and then include back the parent topiclist, Twiki hangs on save. Viewauth takes most of the cpu time.

See testcase in SaveHangUsingTOC.

Note: In the testcase, i disabled the last TOC in SaveHangUsingTOCHeadOne %TOC{"SaveHangUsingTOC"}% to avoid the hangup. (which can be reproduced on twiki.org)

The apache log shows the following error:

[Tue Feb 22 22:01:41 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3160.
[Tue Feb 22 22:01:41 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3160.
[Tue Feb 22 22:01:54 2005] view: Scalar value @_[0] better written as $_[0] at ../lib/TWiki/Plugins/XpTrackerPlugin.pm line 176.
[Tue Feb 22 22:01:58 2005] viewauth: Scalar value @_[0] better written as $_[0] at ../lib/TWiki/Plugins/XpTrackerPlugin.pm line 176.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleCommonTags" at ../lib/TWiki.pm line 2454.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3161.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleCommonTags" at ../lib/TWiki.pm line 2454.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3161.
[Tue Feb 22 22:02:33 2005] viewauth: Deep recursion on subroutine "TWiki::handleCommonTags" at ../lib/TWiki.pm line 2454.
[Tue Feb 22 22:02:34 2005] viewauth: Deep recursion on subroutine "TWiki::handleToc" at ../lib/TWiki.pm line 3160.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian Testing
Web server: Apache 1.3.33
Perl version: 5.8.4
Client OS: Windows, Linux
Web Browser: Mozilla, Firefox
Categories: Hosting, System logs, Performance, Fatal error

-- WolfgangAlper - 22 Feb 2005

Answer

Nice catch Wolfgang, and you'll get high karma from Crawford and friends for including a testcase smile This should be a BugReport though.

-- MattWilkie - 22 Feb 2005

Bug report has been created: SaveHangUsingTOC

-- WolfgangAlper - 23 Feb 2005

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-04-06 - 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.