python2.7 crashes with SegFault when running Zope
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| python2.7 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Source package / Package:
python2.
System:
Description: Ubuntu 16.04 LTS
Release: 16.04
This is a bug report originating from the findings documented in
https:/
The expected behaviour is this:
- Upon installing Zope2 in a virtualenv a default instance should work with no issues.
What happens instead:
- The freshly installed Zope instance causes Python to SegFault after only a few requests.
But Python should never SegFault.
The following program produces the error:
#!/bin/bash
set -e
# Call this testing script with an argument "setup" for the first time
# to build the testing case
#
# After that, the script only performs the test as described below.
#
# Requirements: apt-get install virtualenv python2.7-dbg
#
# This script needs internet access when running.
# The python version to test:
python=
# This part builds the testing environment
if [ "$1" == "setup" ] ; then
# Virtual environment with the chosen python
virtualenv --python ${python} --no-site-packages zope-virtualenv
cd zope-virtualenv
# Basic Zope installation
./bin/
# Simplest possible Zope instance
./bin/
cd ..
fi
# THE TEST
# Run Zope instance in the background
zope-virtualenv
# Give Zope some time to start up
sleep 3
# Call a few management URLs, nothing too fancy...
urls="
http://
http://
http://
http://
http://
http://
http://
"
while true ; do
for url in ${urls} ; do
echo ${url}
curl -s $url -o /dev/null
done
done
# This test fails after about 10 requests with
# Fatal Python error: ../Objects/

Important additional information:
Stock pythons from python.org do not exhibit the problem.
Tested with:
- Python 2.7.9
- Python 2.7.10
- Python 2.7.11