[ python-Bugs-983311 ] simple attribute access causing segfault in certain cases

SourceForge.net noreply at sourceforge.net
Tue Jul 13 21:33:44 CEST 2004


Bugs item #983311, was opened at 2004-07-01 02:42
Message generated for change (Comment added) made by simon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=983311&group_id=5470

Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Simon Michael (simon)
Assigned to: Nobody/Anonymous (nobody)
Summary: simple attribute access causing segfault in certain cases

Initial Comment:
Reproduce:

 zopectl debug (done in zope debugger to get necessary
imports)
 >>> from AccessControl.tests.testSecurity import
SecurityTests
 >>> SecurityTests.doc_class

Python 2.3.4 crashes silently. Python 2.3.3 works
normally on the same machine. This is some virtual
server variant of debian gnu/linux on intel
(aktiom.net. On another machine (standard debian i386)
Python 2.3.3 shows the same crash.

That attr in
zope/lib/python/AccessControl/tests/testSecurity.py
looks like:

 class SecurityTests (DTMLTests):
     doc_class = UnownedDTML # another class

Cf http://zwiki.org/IssueNo0860 .

----------------------------------------------------------------------

>Comment By: Simon Michael (simon)
Date: 2004-07-13 12:33

Message:
Logged In: YES 
user_id=572

See also discussion at http://collector.zope.org/Zope/1395

----------------------------------------------------------------------

Comment By: Armin Rigo (arigo)
Date: 2004-07-01 13:21

Message:
Logged In: YES 
user_id=4771

What I mean here is that you should report this bug to Zope, not to Python, unless there is a good reason to suspect that a bug in the Python core is causing it.  But to me it really looks like a bug in the Zope extension module, which for some reason shows up only with some version of Python or on some platform.

----------------------------------------------------------------------

Comment By: Simon Michael (simon)
Date: 2004-07-01 12:25

Message:
Logged In: YES 
user_id=572

UnownedDTML is indeed a zope extension class.

----------------------------------------------------------------------

Comment By: Armin Rigo (arigo)
Date: 2004-07-01 08:20

Message:
Logged In: YES 
user_id=4771

If this bug involves C extension modules specific to Zope
then I'd first consider it as a bug in one of these modules.
 I would be particularly suspicious that this is the case in
a file called testSecurity: isn't its goal to check some
C-implemented security feature of Zope?

If I am wrong please try to provide a Python code sample. 
Reading a class attribute out of some class tends to work
just fine.

----------------------------------------------------------------------

Comment By: Andreas Jung (ajung)
Date: 2004-07-01 03:34

Message:
Logged In: YES 
user_id=11084

Works for me with Python 2.3.3/4 on three different Linux
systems.


----------------------------------------------------------------------

Comment By: Simon Michael (simon)
Date: 2004-07-01 02:52

Message:
Logged In: YES 
user_id=572

> Python 2.3.3 works normally on the same machine.

I meant:  Python 2.3.3 works normally on another, similar
machine (virtual linux host).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=983311&group_id=5470


More information about the Python-bugs-list mailing list