[ZCM] [ZC] 2329/ 2 Edit "Redefining view as view causes Zope crash"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Sun, 27 May 2007 04:40:22 -0400
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2329 Update (Edit) "Redefining view as view causes Zope crash"
 ** Security Related ** (Public)
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2329

==============================================================
= Edit - Entry #2 by mj on May 27, 2007 4:40 am

 Changes: submitter email, security_related set
________________________________________
= Request - Entry #1 by mj on May 27, 2007 10:25 am


Uploaded:  "viewcrash.tgz"
 - http://www.zope.org/Collectors/Zope/2329/viewcrash.tgz/view
Re-defining view as view in a tal:define statement causes a bus error, instead of an infinite recursion exception. See the attached test case (drop in $INSTANCESHOME/lib/python, copy or link viewcrash-configure.zcml into $INSTANCE_HOME/etc/package-includes, visit /viewcrash).

What happens is that 'view' is called, ending up in a deepening recursion, but somewhere along the way python crashes with a bus error. Apart from the fact that redefining view as view is silly, bus errors indicate a serious C extension or python interpreter bug.
==============================================================