[Zope-dev] Re: Very serious problem with Zope 2.4.x !!

Chris McDonough chrism@zope.com
Fri, 14 Dec 2001 09:51:34 -0500


Thanks so much for the excellent repeatable test case.  Hopefully we can=20
get it fixed soon.  There's no workaround for now except for maybe not=20
creating and returning a list with so many elements.


Stefano Noferi wrote:
> Hi,
> I've a very serious problem with Zope 2.4.x and Python 2.1/2.1.1/2.2b2
> running on linux.
> Zope auto restart when I call a simple python script with this contents=
:
> ------------------start--------------
> province =3D
> [('AG','Agrigento'),('AL','Alessandria'),('AN','Ancona'),('AO','Aosta')=
,('AR
> ','Arezzo'),('AP','Ascoli
> Piceno'),('AT','Asti'),('AV','Avellino'),('BA','Bari'),('BL','Belluno')=
,('BN
> ','Benevento'),('BG','Bergamo'),('BI','Biella'),('BO','Bologna'),('BZ',=
'Bolz
> ano'),('BS','Brescia'),('BR','Brindisi'),('CA','Cagliari'),('CL','Calta=
nisse
> tta'),('CB','Campobasso'),('CE','Caserta'),('CT','Catania'),('CZ','Cata=
nzaro
> '),('CH','Chieti'),('CO','Como'),('CS','Cosenza'),('CR','Cremona'),('KR=
','Cr
> otone'),('CN','Cuneo'),('EN','Enna'),('FE','Ferrara'),('FI','Firenze'),=
('FG'
> ,'Foggia'),('FO','Forl=EC'),('FR','Frosinone'),('GE','Genova'),('GO','G=
orizia'
> ),('GR','Grosseto'),('IM','Imperia'),('IS','Isernia'),('AQ',"L'Aquila")=
,('SP
> ','La
> Spezia'),('LT','Latina'),('LE','Lecce'),('LC','Lecco'),('LI','Livorno')=
,('LO
> ','Lodi'),('LU','Lucca'),('MC','Macerata'),('MN','Mantova'),('MS','Mass=
a
> Carrara'),('MT','Matera'),('ME','Messina'),('MI','Milano'),('MO','Moden=
a'),(
> 'NA','Napoli'),('NO','Novara'),('NU','Nuoro'),('OR','Oristano'),('PD','=
Padov
> a'),('PA','Palermo'),('PR','Parma'),('PV','Pavia'),('PG','Perugia'),('P=
S','P
> esaro e
> Urbino'),('PE','Pescara'),('PC','Piacenza'),('PI','Pisa'),('PT','Pistoi=
a'),(
> 'PN','Pordenone'),('PZ','Potenza'),('PO','Prato'),('RG','Ragusa'),('RA'=
,'Rav
> enna'),('RC','Reggio Calabria'),('RE','Reggio
> Emilia'),('RI','Rieti'),('RN','Rimini'),('RM','Roma'),('RO','Rovigo'),(=
'SA',
> 'Salerno'),('SS','Sassari'),('SV','Savona'),('SI','Siena'),('SR','Sirac=
usa')
> ,('SO','Sondrio'),('TA','Taranto'),('TE','Teramo'),('TR','Terni'),('TO'=
,'Tor
> ino'),('TP','Trapani'),('TN','Trento'),('TV','Treviso'),('TS','Trieste'=
),('U
> D','Udine'),('VA','Varese'),('VE','Venezia'),('VB','Verbania'),('VC','V=
ercel
> li'),('VR','Verona'),('VV','Vibo
> Valentia'),('VI','Vicenza'),('VT','Viterbo'),('EE','Stato Estero')]
>=20
> return province
> ------------------end---------------
> Zope restart with a DTML Method version of this script too.
> It's a very serious problem because Zope restart with a segmentation fa=
ult.
> I've tested this "bug" in Zope 2.4.1, 2.4.2, 2.4.3, 2.5.x... the same
> result. ; (
> I've posted this bug in Zope Collector ( http://collector.zope.org/Zope=
/76 )
> but I've got no reply..
>=20
> I suppose it's a problem of Restricted Python machinery that PythonScri=
pt
> and DTML share.
>=20
> Compiling python with "--without-pymalloc" option Zope autorestart itse=
lf
> with a minor frequency.. but it restart.. ; ((
>=20
> IMPORTANT: I tested it with a NEW Zope instance with simply only one
> PythonScript in the root folder with the content I specified.. It resta=
rt!!
>=20
> Solutions?
>=20
>  ----------------------------------------------------------
>     Stefano Noferi
>     n o z e  S.r.l.
>     Soluzioni Open-Source
>     Via Caduti del Lavoro, 32
>     56122 Pisa (PI) - Italy
>     Tel: +39 (0)50 533320
>     Fax: +39 (0)50 526604
>     Email: stefano@noze.it
>     Web: http://www.noze.it
>=20
>     -=3D  "Whatever you like it to be, it will be"  =3D-
> ----------------------------------------------------------
>=20
>=20


--=20
Chris McDonough                    Zope Corporation
http://www.zope.org             http://www.zope.com
"Killing hundreds of birds with thousands of stones"