Building / installing Zope on AIX 5.3
Hello, I compiled Python 2.4.4 on AIX 5.3, with cc_r compiler, installed Zope-2.9.8and Plone-2.5.1. Everything seems work well, excepted when I call Plone on the browser or click on the "view tab" inside one Plone site at the ZMI. When I do this, I get a "Segmentation fault" on the server. Can anyone help me with this issue? Are there many AIX and Zope box running Plone? I found this text in at Zope-2.9/doc/PLATFORMS/AIX.txt : "from Wolfgang Roesner (reporting segfaults and a fix) The default stack size for a pthread on AIX (at least in my configuration) is 96kB. On Solaris it's 1M. As soon as I explicitly set the initial stack size to 1M the problem went away and it appears as if Zope is up and running. Unfortunately I really had to change "thread_pthread.h" in Python which obviously is not a nice thing to do as I now have a need for my own private version of Python. But at least I have a running version of Zope on AIX." Is this really something to try? Thank you, Marcello Bax
--On 19. März 2008 09:31:42 -0300 Marcello Bax <marcello.bax@gmail.com> wrote:
Hello,
I compiled Python 2.4.4 on AIX 5.3, with cc_r compiler, installed Zope-2.9.8and Plone-2.5.1.
Everything seems work well, excepted when I call Plone on the browser or click on the "view tab" inside one Plone site at the ZMI. When I do this, I get a "Segmentation fault" on the server.
Can anyone help me with this issue? Are there many AIX and Zope box running Plone?
no
I found this text in at Zope-2.9/doc/PLATFORMS/AIX.txt :
"from Wolfgang Roesner (reporting segfaults and a fix)
The default stack size for a pthread on AIX (at least in my configuration) is 96kB. On Solaris it's 1M. As soon as I explicitly set the initial stack size to 1M the problem went away and it appears as if Zope is up and running.
Unfortunately I really had to change "thread_pthread.h" in Python which obviously is not a nice thing to do as I now have a need for my own private version of Python. But at least I have a running version of Zope on AIX."
I tested Plone on AIX lately with some pre-build binary from IBM...pretty much unusable. After compiling Python on my own: no further problems. Private Python installations are in general considered being best-practice. -aj
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marcello Bax wrote:
Hello,
I compiled Python 2.4.4 on AIX 5.3, with cc_r compiler, installed Zope-2.9.8and Plone-2.5.1.
Everything seems work well, excepted when I call Plone on the browser or click on the "view tab" inside one Plone site at the ZMI. When I do this, I get a "Segmentation fault" on the server.
Can anyone help me with this issue? Are there many AIX and Zope box running Plone?
I found this text in at Zope-2.9/doc/PLATFORMS/AIX.txt :
"from Wolfgang Roesner (reporting segfaults and a fix)
The default stack size for a pthread on AIX (at least in my configuration) is 96kB. On Solaris it's 1M. As soon as I explicitly set the initial stack size to 1M the problem went away and it appears as if Zope is up and running.
Unfortunately I really had to change "thread_pthread.h" in Python which obviously is not a nice thing to do as I now have a need for my own private version of Python. But at least I have a running version of Zope on AIX."
Is this really something to try?
Yes. If the 'configure' script for Python has an option to bump the stack size, that would be better, but patching the Python sources to increase the stack size is a reasonable workaround, which used to be required (IIRC) on FreeBSD, too. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH4UVu+gerLs4ltQ4RAuG2AKDNU5BhsDT4kov3aYHO4eTxoXFP5QCeOTfj 1zoDfC1WkgC+AddP/li3riI= =TPcL -----END PGP SIGNATURE-----
Marcello Bax wrote at 2008-3-19 09:31 -0300:
... I compiled Python 2.4.4 on AIX 5.3, with cc_r compiler, installed Zope-2.9.8and Plone-2.5.1.
Everything seems work well, excepted when I call Plone on the browser or click on the "view tab" inside one Plone site at the ZMI. When I do this, I get a "Segmentation fault" on the server.
Looks very much like a C runtime stack overflow.
... I found this text in at Zope-2.9/doc/PLATFORMS/AIX.txt :
"from Wolfgang Roesner (reporting segfaults and a fix)
The default stack size for a pthread on AIX (at least in my configuration) is 96kB. On Solaris it's 1M. As soon as I explicitly set the initial stack size to 1M the problem went away and it appears as if Zope is up and running.
Unfortunately I really had to change "thread_pthread.h" in Python which obviously is not a nice thing to do as I now have a need for my own private version of Python. But at least I have a running version of Zope on AIX."
Is this really something to try?
Definitely. Almost surely, you see precisely this problem (C runtime stack too small). -- Dieter
Thank you for the help. The unifiedInstaller from plone.org seems to have a Python package that corrects this "stack size" issue. After installing GNU versions of "tar", "make", "gcc" and "ln" on AIX-5.3, I followed, step by step, the install.sh script from unifiedInstaller bundle using bash shell. I continued progressing and correcting some small AIX environment differences. It worked very well. Many thanks to the Plone community and the unifiedinstaller! Marcello Bax Paradigma.com.br On Wed, Mar 19, 2008 at 3:54 PM, Dieter Maurer <dieter@handshake.de> wrote:
Marcello Bax wrote at 2008-3-19 09:31 -0300:
... I compiled Python 2.4.4 on AIX 5.3, with cc_r compiler, installed Zope-2.9.8and Plone-2.5.1.
Everything seems work well, excepted when I call Plone on the browser or click on the "view tab" inside one Plone site at the ZMI. When I do this, I get a "Segmentation fault" on the server.
Looks very much like a C runtime stack overflow.
... I found this text in at Zope-2.9/doc/PLATFORMS/AIX.txt :
"from Wolfgang Roesner (reporting segfaults and a fix)
The default stack size for a pthread on AIX (at least in my configuration) is 96kB. On Solaris it's 1M. As soon as I explicitly set the initial stack size to 1M the problem went away and it appears as if Zope is up and running.
Unfortunately I really had to change "thread_pthread.h" in Python which obviously is not a nice thing to do as I now have a need for my own private version of Python. But at least I have a running version of Zope on AIX."
Is this really something to try?
Definitely. Almost surely, you see precisely this problem (C runtime stack too small).
-- Dieter
participants (4)
-
Andreas Jung -
Dieter Maurer -
Marcello Bax -
Tres Seaver