[Zope] Zope-2.6.0-solaris dumps core
Johan Lübcke
johan.lubcke@appload.net
06 Dec 2002 12:08:16 +0100
--=-fJffherkLxxseoCaFLrw
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
Hi
I have a few helper scripts to do some ZODB modifications from the
outside, using "import Zope; a=3DZope.app()" but after upgrading to 2.6.0
they stopped working. I can reproduce the core dump with:
--- 8< --- 8< ---
bash-2.03# /usr/local/bin/tar xfz
~peter/Zope-2.6.0-solaris-2.8-sparc.tgz
bash-2.03# cd Zope-2.6.0-solaris-2.8-sparc/
bash-2.03# ./install
---------------------------------------------------------------------------=
---
Compiling python modules
---------------------------------------------------------------------------=
---
---------------------------------------------------------------------------=
---
creating default inituser file
Note:
The initial user name and password are 'admin'
and 'Te7iq1Ud'.
You can change the name and password through the web
interface or using the 'zpasswd.py' script.
chmod 0600 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/inituser
chmod 0711 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/var
---------------------------------------------------------------------------=
---
setting dir permissions
---------------------------------------------------------------------------=
---
creating default database
chmod 0600 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/var/Data.fs
---------------------------------------------------------------------------=
---
Writing the pcgi resource file (ie cgi script),
/tmp/junk/Zope-2.6.0-solaris-2.8-sparc/Zope.cgi
chmod 0755 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/Zope.cgi
---------------------------------------------------------------------------=
---
Creating start script, start
chmod 0711 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/start
---------------------------------------------------------------------------=
---
Creating stop script, stop
chmod 0711 /tmp/junk/Zope-2.6.0-solaris-2.8-sparc/stop
---------------------------------------------------------------------------=
---
Done!
bash-2.03# export PYTHONPATH=3Dlib/python
bash-2.03# bin/python -i -c "import Zope"
>>> a=3DZope.app()
>>> ^D
bash-2.03# bin/python -i -c "import Zope; a=3DZope.app()"
ZODB/cPickleCache.c:445: failed assertion `key !=3D Py_None'
Abort (core dumped)
bash-2.03#
--- 8< --- 8< ---
The confusing part is that it works if I do it manualy from the python
prompt, but fail to execute if I do it in a script...
Any clues for a workaround?
/ Johan
--=20
Johan L=FCbcke <johan.lubcke@appload.net>
Appload Nordic AB
--=-fJffherkLxxseoCaFLrw
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQA98IUf9BeRmxxhT98RAnAoAJ95aJJCHq3GRbAAUy7iihwiMIz6nQCfcTI7
lWpj54Xtwb1NEIPLeAn8A/I=
=VhdT
-----END PGP SIGNATURE-----
--=-fJffherkLxxseoCaFLrw--