[Zope] External Methods triggers Zope restart
Chris McDonough
chrism@zope.com
Fri, 9 Nov 2001 18:14:39 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0045_01C1694A.65AB0E10
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Anthony Baxter sent a message to the list lately with patches for this =
particular problem.. it's a Solaris-specific interaction with asyncore.
----- Original Message -----=20
From: "Hannu Krosing" <hannu@tm.ee>
To: <myers@crd.ge.com>
Cc: <zope@zope.org>
Sent: Friday, November 09, 2001 3:02 PM
Subject: Re: [Zope] External Methods triggers Zope restart
> myers@crd.ge.com wrote:
> >=20
> > I am having a frustrating problem with External Methods.
> > I have regressed to Zope 2.4.0 to try to resolve this.
> >=20
> > Basically, the following external method works:
> >=20
> > def helloWorld():
> > """A simple external method."""
> > return 'Hello World!'
> >=20
> > But the following method causes Zope to restart with no traceback:
> > def helloWorld():
> > """A simple external method."""
> > a =3D 'Hello World!'
> > return a
> >=20
> > If I use self.a instead of just a, the method works.
> > I used th epython debugger, and the correct HTML is displayed in =
both
> > cases. I don't find anything usefull in the -M log either.
> >=20
> > Has anyone seen anything like this, or have any ideas where I should
> > look next.
>=20
> I have a Zope-2.4.0 + DCOracle + extUserFolder on Solaris x86 setup =
that
> restarts all the time with only this in logs:
>=20
> ------
> 2001-11-09T14:55:32 INFO(0) ZServer PCGI Server started at Fri Nov 9
> 12:55:32 2001
> Unix socket: /export/home/hulgi/Zope-2.4.1/var/pcgi.soc
> Traceback (most recent call last):
> File "/export/home/hulgi/Zope-2.4.1/z2.py", line 774, in ?
> asyncore.loop()
> File "/usr/local/lib/python2.1/asyncore.py", line 194, in loop
> poll_fun (timeout, map)
> File "/usr/local/lib/python2.1/asyncore.py", line 86, in poll
> r,w,e =3D select.select (r,w,e, timeout)
> select.error: (4, 'Interrupted system call')
> ------
>=20
> I have not yet had time to start looking why it does that.
>=20
> If you find out something I'd be most interested to hear about it.
>=20
> ------------
> Hannu
>=20
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -=20
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>=20
------=_NextPart_000_0045_01C1694A.65AB0E10
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff background=3D"">
<DIV><FONT face=3D"Courier New" size=3D2>Anthony Baxter sent a message =
to the list=20
lately with patches for this particular problem.. it's a =
Solaris-specific=20
interaction with asyncore.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><BR>----- Original Message =
----- <BR>From:=20
"Hannu Krosing" <hannu@tm.ee><BR>To: =
<myers@crd.ge.com><BR>Cc:=20
<zope@zope.org><BR>Sent: Friday, November 09, 2001 3:02 =
PM<BR>Subject: Re:=20
[Zope] External Methods triggers Zope restart<BR><BR><BR>> =
myers@crd.ge.com=20
wrote:<BR>> > <BR>> > I am having a frustrating problem with =
External Methods.<BR>> > I have regressed to Zope 2.4.0 to try to =
resolve=20
this.<BR>> > <BR>> > Basically, the following external =
method=20
works:<BR>> > <BR>> > def helloWorld():<BR>>=20
> """A simple external method."""<BR>>=20
> return 'Hello World!'<BR>> > <BR>> =
>=20
But the following method causes Zope to restart with no =
traceback:<BR>> >=20
def helloWorld():<BR>> > """A simple =
external=20
method."""<BR>> > a =3D 'Hello =
World!'<BR>>=20
> return a<BR>> > <BR>> > If I =
use self.a=20
instead of just a, the method works.<BR>> > I used th epython =
debugger,=20
and the correct HTML is displayed in both<BR>> > cases. I =
don't find=20
anything usefull in the -M log either.<BR>> > <BR>> > Has =
anyone=20
seen anything like this, or have any ideas where I should<BR>> > =
look=20
next.<BR>> <BR>> I have a Zope-2.4.0 + DCOracle + extUserFolder on =
Solaris=20
x86 setup that<BR>> restarts all the time with only this in =
logs:<BR>>=20
<BR>> ------<BR>> 2001-11-09T14:55:32 INFO(0) ZServer PCGI Server =
started=20
at Fri Nov 9<BR>> 12:55:32=20
2001<BR>> Unix =
socket:=20
/export/home/hulgi/Zope-2.4.1/var/pcgi.soc<BR>> Traceback (most =
recent call=20
last):<BR>> File "/export/home/hulgi/Zope-2.4.1/z2.py", =
line 774,=20
in ?<BR>> asyncore.loop()<BR>> =
File=20
"/usr/local/lib/python2.1/asyncore.py", line 194, in=20
loop<BR>> poll_fun (timeout, =
map)<BR>> =20
File "/usr/local/lib/python2.1/asyncore.py", line 86, in=20
poll<BR>> r,w,e =3D select.select (r,w,e,=20
timeout)<BR>> select.error: (4, 'Interrupted system call')<BR>>=20
------<BR>> <BR>> I have not yet had time to start looking why it =
does=20
that.<BR>> <BR>> If you find out something I'd be most interested =
to hear=20
about it.<BR>> <BR>> ------------<BR>> Hannu<BR>> <BR>>=20
_______________________________________________<BR>> Zope =
maillist =20
- Zope@zope.org<BR>>=20
http://lists.zope.org/mailman/listinfo/zope<BR>> ** No =
cross=20
posts or HTML encoding! **<BR>> (Related lists - <BR>> =
http://lists.zope.org/mailman/listinfo/zope-announce<BR>> =20
http://lists.zope.org/mailman/listinfo/zope-dev )<BR>>=20
</FONT></DIV></BODY></HTML>
------=_NextPart_000_0045_01C1694A.65AB0E10--