Hello,

I've installed package trac-0.10.5p0 on OpenBSD 4.5 RELEASE. I'm
managing several projects and starting it (in a screen for debugging
purposes) as follows:

sudo -u _trac tracd  -p 8080 --basic-auth="*",/srv/www/.htpasswd, -e
/srv/trac

The problem is that it always eventually segfaults for reasons I can't
quite work out (maybe a client disconnecting too fast?):

----------------------------------------
127.0.0.1 - - [24/Aug/2009 22:36:14] "GET
/4gcube-packages/browser/libogg?order=size HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 4214)
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/SocketServer.py", line 464, in
process_request_thread
    self.finish_request(request, client_address)
  File "/usr/local/lib/python2.5/SocketServer.py", line 254, in
finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python2.5/SocketServer.py", line 522, in __init__
    self.handle()
  File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/usr/local/lib/python2.5/site-packages/trac/web/wsgi.py", line 174, in
handle_one_request
    gateway.run(self.server.application)
  File "/usr/local/lib/python2.5/site-packages/trac/web/wsgi.py", line 87, in
run
    response = application(self.environ, self._start_response)
  File "/usr/local/lib/python2.5/site-packages/trac/web/standalone.py", line
56, in __call__
    return self.application(environ, start_response)
  File "/usr/local/lib/python2.5/site-packages/trac/web/standalone.py", line
88, in __call__
    return self.application(environ, start_response)
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 440, in
dispatch_request
    req.send_error(sys.exc_info(), status=500)
  File "/usr/local/lib/python2.5/site-packages/trac/web/api.py", line 394, in
send_error
    exc_info)
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 406, in
dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 244, in
dispatch
    req.display(template, content_type or 'text/html')
  File "/usr/local/lib/python2.5/site-packages/trac/web/api.py", line 368, in
display
    self.write(data)
  File "/usr/local/lib/python2.5/site-packages/trac/web/api.py", line 460, in
write
    self._write(data)
  File "/usr/local/lib/python2.5/site-packages/trac/web/wsgi.py", line 195, in
_write
    self.handler.send_response(int(status[:3]))
  File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 370, in
send_response
    self.send_header('Server', self.version_string())
  File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 376, in send_header
    self.wfile.write("%s: %s\r\n" % (keyword, value))
  File "/usr/local/lib/python2.5/socket.py", line 274, in write
    self.flush()
  File "/usr/local/lib/python2.5/socket.py", line 261, in flush
    self._sock.sendall(buffer)
error: (32, 'Broken pipe')
----------------------------------------
127.0.0.1 - - [24/Aug/2009 22:36:16] "GET
/chalmers/browser/trunk/ec/home_problems?rev=83&order=size HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 14693)
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/SocketServer.py", line 464, in
process_request_thread
    self.finish_request(request, client_address)
  File "/usr/local/lib/python2.5/SocketServer.py", line 254, in
finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python2.5/SocketServer.py", line 522, in __init__
    self.handle()
  File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/usr/local/lib/python2.5/site-packages/trac/web/wsgi.py", line 174, in
handle_one_request
    gateway.run(self.server.application)
  File "/usr/local/lib/python2.5/site-packages/trac/web/wsgi.py", line 87, in
run
    response = application(self.environ, self._start_response)
  File "/usr/local/lib/python2.5/site-packages/trac/web/standalone.py", line
56, in __call__
    return self.application(environ, start_response)
  File "/usr/local/lib/python2.5/site-packages/trac/web/standalone.py", line
88, in __call__
    return self.application(environ, start_response)
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 440, in
dispatch_request
    req.send_error(sys.exc_info(), status=500)
  File "/usr/local/lib/python2.5/site-packages/trac/web/api.py", line 394, in
send_error
    exc_info)
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 406, in
dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 244, in
dispatch
    req.display(template, content_type or 'text/html')
  File "/usr/local/lib/python2.5/site-packages/trac/web/api.py", line 368, in
display
    self.write(data)
  File "/usr/local/lib/python2.5/site-packages/trac/web/api.py", line 460, in
write
    self._write(data)
  File "/usr/local/lib/python2.5/site-packages/trac/web/wsgi.py", line 195, in
_write
    self.handler.send_response(int(status[:3]))
  File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 370, in
send_response
    self.send_header('Server', self.version_string())
  File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 376, in send_header
    self.wfile.write("%s: %s\r\n" % (keyword, value))
  File "/usr/local/lib/python2.5/socket.py", line 274, in write
    self.flush()
  File "/usr/local/lib/python2.5/socket.py", line 261, in flush
    self._sock.sendall(buffer)
error: (32, 'Broken pipe')
----------------------------------------
Segmentation fault

I'm proxying the connection from Apache to tracd. For some reason, I do
not find matching log entries in the Apache access_log for these
specific times, event though some other can definitely be found.

It's an amd64 OpenBSD, but I've noticed the sames issues with i386 and
previous versions as well (still with trac-0.10.5, though).

Any thought about what may be causing the problem (I suspect the
GoogleBot) or how to solve it?

--
Olivier Mehani <sht...@ssji.net>
PGP fingerprint: 4435 CF6A 7C8D DD9B E2DE  F5F9 F012 A6E2 98C6 6655

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to