[Zope] Houston, we have forked - ZMySQLDA keeps braking

Dieter Maurer dieter@handshake.de
Thu, 14 Feb 2002 22:18:03 +0100


Micah Martin writes:
 > I realize that this has been discussed here before but I was not able to
 > find the information needed.  I've tried the ZOPE_SECURITY_POLICY=PYTHON
 > trick to no avail.
 > 
 > The sympton is that zope restarts for some reason and when it restarts, it
 > cannot import the ZMySQLDA product....   Any Ideas?
 > 
 > log = 
 > 
 > 2002-02-13T18:41:56 ERROR(200) zdaemon zdaemon: Wed Feb 13 12:41:56 2002:
 > Aiieee! 31297 exited with error code: 4
That's a SIGILL (Illegal Instruction Signal).

Usually a very serious problem (memory corruption or array bounds violation
led to a buggy return address, or something similar)...

 > ....
 > 2002-02-13T18:41:59 ERROR(200) Zope Could not import Products.ZMySQLDA
 > Traceback (innermost last):
 >   File /usr/local/zope/lib/python/OFS/Application.py, line 531, in
 > import_product
 >   File /usr/local/zope/lib/python/Products/ZMySQLDA/__init__.py, line 106,
 > in ?
 >     (Object: os)
 >   File /usr/local/zope/lib/python/Products/ZMySQLDA/DA.py, line 108, in ?
 >   File /usr/local/zope/lib/python/Products/ZMySQLDA/db.py, line 106, in ?
 >   File /usr/local/zope/lib/python2.1/warnings.py, line 39, in warn
 >   File /usr/local/zope/lib/python2.1/warnings.py, line 92, in warn_explicit
 >   File /usr/local/zope/lib/python2.1/warnings.py, line 98, in showwarning
 > IOError: [Errno 5] Input/output error
Python want to issue a warning, probably a deprecation warning (in my
view a stupid invention...), and it cannot because the file descriptor
is in an unheathy state. This may happen, when a process is started
in a terminal session and the session is later terminated (but
the process is still running).
An explicit redirect of stdout and stderr may help with this.

The two problems are almost surely not related.

By the way: did you already upgrade to Python 2.1.2 and Zope 2.4.4 or
Zope 2.5?
There are known memory management problems in earlier Python/Zope versions.


Dieter