[Zope] HELP: popen2.Popen3 on solaris 2.6 failing

Li Dongfeng mavip5@inet.polyu.edu.hk
Sat, 20 Nov 1999 15:16:56 +0800


popen2.Popen3 caused exception in solaris 2.6.

I had a Zope product using popen2.Popen3 to open a 
long running sub-process and use select.select to
get status. Now our sun sparc machine upgraded to solaris 2.6
so I had to re-install all(I'm not root). I downloaded
  Zope-2_1_0b2-solaris-2_6-sparc.tgz
and installed it in my home directory, started using only
Z Server. All work OK but my product.

The following is a testing external method that broke the server:

from popen2 import Popen3
def test_popen3(self):
    print "Inside test_popen3"
    lp = Popen3("echo This is a test", 0, 0)
    print "After Popen3"
    return "test_select\n"

When trying the method, the server give the following error message
and restarts, the error message is at the end of the mail.

Anyone met the same kind of problem before? Using popen2.Popen3 worked
in my old solaris 2.5 installation.



==========================
1999-11-20T07:03:59 PROBLEM(100) ZServer Computing default hostname
------
1999-11-20T07:03:59 INFO(0) ZServer Medusa (V1.13) started at Sat Nov 20
15:03:59 1999
	Hostname: maun03.ma.polyu.edu.hk
	Port:8080

------
1999-11-20T07:03:59 INFO(0) ZServer FTP server started at Sat Nov 20
15:03:59 1999
	Authorizer:None
	Hostname: hilbert
	Port: 8021
------
1999-11-20T07:03:59 INFO(0) ZServer PCGI Server started at Sat Nov 20
15:03:59 1999
	Unix socket: /home/maldf/Zope-2.1.0b2-solaris-2.6-sparc/var/pcgi.soc
------
1999-11-20T07:03:59 INFO(0) ZServer Monitor Server (V1.5) started on
port 8099
Inside test_popen3
Traceback (innermost last):
  File "/home/maldf/Zope-2.1.0b2-solaris-2.6-sparc/z2.py", line 583, in
?
    asyncore.loop()
  File
"/home/maldf/Zope-2.1.0b2-solaris-2.6-sparc/ZServer/medusa/asyncore.py",
line 107, in loop
    poll_fun (timeout)
  File
"/home/maldf/Zope-2.1.0b2-solaris-2.6-sparc/ZServer/medusa/asyncore.py",
line 55, in poll
    (r,w,e) = select.select (r,w,e, timeout)
select.error: (4, 'Interrupted system call')
------
1999-11-20T07:05:23 ERROR(200) ZServer uncaptured python exception,
closing channel <zhttp_channel connected 158.132.82.114:2037 at 567b10
channel#: 0 requests:1> (socket.error:(11, 'Resource temporarily
unavailable')
[/home/maldf/Zope-2.1.0b2-solaris-2.6-sparc/ZServer/medusa/asynchat.py|handle_read|80]
[/home/maldf/Zope-2.1.0b2-solaris-2.6-sparc/ZServer/medusa/http_server.py|recv|406]
[/home/maldf/Zope-2.1.0b2-solaris-2.6-sparc/ZServer/medusa/asyncore.py|recv|256])
------
1999-11-20T07:05:27 PROBLEM(100) ZServer Computing default hostname