[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" &lt;hannu@tm.ee&gt;<BR>To: =
&lt;myers@crd.ge.com&gt;<BR>Cc:=20
&lt;zope@zope.org&gt;<BR>Sent: Friday, November 09, 2001 3:02 =
PM<BR>Subject: Re:=20
[Zope] External Methods triggers Zope restart<BR><BR><BR>&gt; =
myers@crd.ge.com=20
wrote:<BR>&gt; &gt; <BR>&gt; &gt; I am having a frustrating problem with =

External Methods.<BR>&gt; &gt; I have regressed to Zope 2.4.0 to try to =
resolve=20
this.<BR>&gt; &gt; <BR>&gt; &gt; Basically, the following external =
method=20
works:<BR>&gt; &gt; <BR>&gt; &gt; def helloWorld():<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; """A simple external method."""<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; return 'Hello World!'<BR>&gt; &gt; <BR>&gt; =
&gt;=20
But the following method causes Zope to restart with no =
traceback:<BR>&gt; &gt;=20
def helloWorld():<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; """A simple =
external=20
method."""<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; a =3D 'Hello =
World!'<BR>&gt;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp; return a<BR>&gt; &gt; <BR>&gt; &gt; If I =
use self.a=20
instead of just a, the method works.<BR>&gt; &gt; I used th epython =
debugger,=20
and the correct HTML is displayed in both<BR>&gt; &gt; cases.&nbsp; I =
don't find=20
anything usefull in the -M log either.<BR>&gt; &gt; <BR>&gt; &gt; Has =
anyone=20
seen anything like this, or have any ideas where I should<BR>&gt; &gt; =
look=20
next.<BR>&gt; <BR>&gt; I have a Zope-2.4.0 + DCOracle + extUserFolder on =
Solaris=20
x86 setup that<BR>&gt; restarts all the time with only this in =
logs:<BR>&gt;=20
<BR>&gt; ------<BR>&gt; 2001-11-09T14:55:32 INFO(0) ZServer PCGI Server =
started=20
at Fri Nov&nbsp; 9<BR>&gt; 12:55:32=20
2001<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unix =
socket:=20
/export/home/hulgi/Zope-2.4.1/var/pcgi.soc<BR>&gt; Traceback (most =
recent call=20
last):<BR>&gt;&nbsp;&nbsp; File "/export/home/hulgi/Zope-2.4.1/z2.py", =
line 774,=20
in ?<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; asyncore.loop()<BR>&gt;&nbsp;&nbsp; =
File=20
"/usr/local/lib/python2.1/asyncore.py", line 194, in=20
loop<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; poll_fun (timeout, =
map)<BR>&gt;&nbsp;&nbsp;=20
File "/usr/local/lib/python2.1/asyncore.py", line 86, in=20
poll<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; r,w,e =3D select.select (r,w,e,=20
timeout)<BR>&gt; select.error: (4, 'Interrupted system call')<BR>&gt;=20
------<BR>&gt; <BR>&gt; I have not yet had time to start looking why it =
does=20
that.<BR>&gt; <BR>&gt; If you find out something I'd be most interested =
to hear=20
about it.<BR>&gt; <BR>&gt; ------------<BR>&gt; Hannu<BR>&gt; <BR>&gt;=20
_______________________________________________<BR>&gt; Zope =
maillist&nbsp;=20
-&nbsp; Zope@zope.org<BR>&gt;=20
http://lists.zope.org/mailman/listinfo/zope<BR>&gt; **&nbsp;&nbsp; No =
cross=20
posts or HTML encoding!&nbsp; **<BR>&gt; (Related lists - <BR>&gt;&nbsp; =

http://lists.zope.org/mailman/listinfo/zope-announce<BR>&gt;&nbsp;=20
http://lists.zope.org/mailman/listinfo/zope-dev )<BR>&gt;=20
</FONT></DIV></BODY></HTML>

------=_NextPart_000_0045_01C1694A.65AB0E10--