Re: Pool Module Question (Now Proxy Server Question)
"Ben Ringold" <ben-3GbDDtM/[email protected]>
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
>Wow, that's really interesting. That means you've found a bug in the
>Python interpreter, or one of the C modules (stdlib or otherwise, such
>as MySql driver) your Spyce code uses.
>
>If you run it from gdb you should be able to see what exactly is
>breaking. I'd be interested in seeing this since it has the potential
>to impact other Spyce users!
Jonathan,
I went ahead and tried running the spyce proxy server through gdb as you suggested. It dies much quicker than it did when running as a daemon or from console. So, I'm not sure if I'm looking at the same segmentation fault.
Here is my gdb session:
(gdb) file /usr/local/bin/python
Reading symbols from /usr/local/bin/python...done.
(gdb) run spyceCmd.py -l --conf /usr/share/spyce/spyceconf.py
Starting program: /usr/local/bin/python spyceCmd.py -l --conf /usr/share/spyce/spyceconf.py
[New Thread 1074859648 (LWP 16522)]
Spyce 2.0.3 starting
# Starting web server with configuration specified by /usr/share/spyce/spyceconf.py
# Server IP:Port: :80
# Server Root: /var/www/html
# (server root is set by the "root = " line in your configuration file)
# MIME file: /usr/share/spyce/spyce.mime
# Ready.
[New Thread 1089072320 (LWP 16523)]
crawl-66-249-65-72.googlebot.com - - [17/Apr/2006 23:33:23] "GET /map/actor/alibi.spy?id=1&suspectid=9660204 HTTP/1.1" - -
[Thread 1089072320 (LWP 16523) exited]
[New Thread 1100188736 (LWP 16525)]
210.177.141.237 - - [17/Apr/2006 23:33:24] "GET /map/suspect/clue.spy?id=9660146&targetid=9660148 HTTP/1.1" - -
58.69.228.17 - - [17/Apr/2006 23:33:24] "GET /map/index.spy HTTP/1.1" - -
[New Thread 1116941248 (LWP 16526)]
[New Thread 1125329728 (LWP 16527)]
adsl-70-132-7-128.dsl.snfc21.sbcglobal.net - - [17/Apr/2006 23:33:26] "GET /map/suspect/index2.spy?id=9660188 HTTP/1.1" - -
210.177.141.237 - - [17/Apr/2006 23:33:26] "GET /map/suspect/clue.spy?id=9660146&targetid=9660148&skill=jdg HTTP/1.1" - -
[New Thread 1133718208 (LWP 16528)]
----------------------------------------
Exception happened during processing of request from ('210.177.141.237', 58071)
Traceback (most recent call last):
File "/usr/local/lib/python2.3/SocketServer.py", line 463, in process_request_thread
[New Thread 1142106688 (LWP 16529)]
bbcache-16.singnet.com.sg - - [17/Apr/2006 23:33:26] "GET /detective/detective.spy HTTP/1.1" - -
[New Thread 1150495168 (LWP 16530)]
self.finish_request(request, client_address)
File "/usr/local/lib/python2.3/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/lib/python2.3/SocketServer.py", line 521, in __init__
self.handle()
File "/usr/local/lib/python2.3/BaseHTTPServer.py", line 324, in handle
crawl-66-249-65-72.googlebot.com - - [17/Apr/2006 23:33:27] "GET /map/suspect/clue.spy?id=9660059&targetid=9660058 HTTP/1.1" - -
self.handle_one_request()
File "/usr/local/lib/python2.3/BaseHTTPServer.py", line 318, in handle_one_request
method()
File "/usr/share/spyce/spyceWWW.py", line 157, in do_GET
return handler(self, path)
File "/usr/share/spyce/spyceWWW.py", line 172, in handler_spyce
response.close()
File "/usr/share/spyce/spyceWWW.py", line 92, in close
spyceCmd.spyceCmdlineResponse.close(self)
File "/usr/share/spyce/spyceCmd.py", line 109, in close
self.flush()
File "/usr/share/spyce/spyceCmd.py", line 145, in flush
self.sendHeaders()
File "/usr/share/spyce/spyceWWW.py", line 89, in sendHeaders
self.origout.write('%s %s %s\n' % (self._httpdHandler.request_version, self.returncode, resultText))
File "/usr/local/lib/python2.3/socket.py", line 254, in write
self.flush()
File "/usr/local/lib/python2.3/socket.py", line 241, in flush
self._sock.sendall(buffer)
error: (104, 'Connection reset by peer')
----------------------------------------
[Thread 1100188736 (LWP 16525) exited]
[Thread 1150495168 (LWP 16530) exited]
----------------------------------------
Exception happened during processing of request from ('165.21.154.16', 6008)
Traceback (most recent call last):
File "/usr/local/lib/python2.3/SocketServer.py", line 463, in process_request_thread
self.finish_request(request, client_address)
File "/usr/local/lib/python2.3/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/lib/python2.3/SocketServer.py", line 521, in __init__
self.handle()
File "/usr/local/lib/python2.3/BaseHTTPServer.py", line 324, in handle
self.handle_one_request()
File "/usr/local/lib/python2.3/BaseHTTPServer.py", line 318, in handle_one_request
method()
File "/usr/share/spyce/spyceWWW.py", line 157, in do_GET
return handler(self, path)
File "/usr/share/spyce/spyceWWW.py", line 172, in handler_spyce
response.close()
File "/usr/share/spyce/spyceWWW.py", line 92, in close
spyceCmd.spyceCmdlineResponse.close(self)
File "/usr/share/spyce/spyceCmd.py", line 109, in close
self.flush()
File "/usr/share/spyce/spyceCmd.py", line 146, in flush
self.out.flush()
File "/usr/share/spyce/spyceUtil.py", line 225, in flush
self.out.write(self.buf.getvalue())
File "/usr/local/lib/python2.3/socket.py", line 254, in write
self.flush()
File "/usr/local/lib/python2.3/socket.py", line 241, in flush
self._sock.sendall(buffer)
error: (104, 'Connection reset by peer')
----------------------------------------
[Thread 1142106688 (LWP 16529) exited]
[Thread 1116941248 (LWP 16526) exited]
[Thread 1125329728 (LWP 16527) exited]
adsl-70-132-7-128.dsl.snfc21.sbcglobal.net - - [17/Apr/2006 23:33:28] "GET /common/js/popups.js HTTP/1.1" 200 -
Couldn't get registers: No such process.
(gdb) bt 10
Cannot fetch general-purpose registers for thread 1074859648: generic error
Ben Ringold
Hypothetical Software
________________________________________________________________
Sent via the WebMail system at hypotheticalsoftware.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642