GNOME Bugzilla – Bug 147641
[docs] pydoc segfaults when viewing gst package doc
Last modified: 2005-10-11 14:43:32 UTC
1: install gst-python 2: run pydoc as a webserver (-p <portnumber>) 3: click on the "gst (package)" link When you click on that link, pydoc outputs the following lines on the cmdline : Error on option -p: unknown option. Run '/usr/bin/pydoc --help' to see a full list of available command line options. Segmentation fault
Can you provide a traceback?
I made a little test.py containing the same lines as the pydoc program and ran it as follows: bash-2.05b$ python -d test.py -p 9876 pydoc server ready at http://localhost:9876/ ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 33123) Traceback (most recent call last):
+ Trace 48841
self.process_request(request, client_address)
self.finish_request(request, client_address)
self.RequestHandlerClass(request, client_address, self)
self.handle()
self.handle_one_request()
method()
self.send_document('Index of Modules', contents)
self.send_response(200)
self.send_header('Server', self.version_string())
self.wfile.write("%s: %s\r\n" % (keyword, value))
self.flush()
self._sock.sendall(buffer) error: (32, 'Broken pipe') ---------------------------------------- ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 33124) Traceback (most recent call last):
'no Python documentation found for %s' % repr(path))
self._sock.sendall(buffer) error: (32, 'Broken pipe') ---------------------------------------- Error on option -p: unknown option. Run 'test.py --help' to see a full list of available command line options. [1]+ Done emacs test.py Segmentation fault bash-2.05b\$
Sorry, but I actually meant a backtrace from GDB, the python traceback is pretty much useless.
for me, it looks like a crasher bug in the HTTP server part of pydoc (which is shipped with python itself) than a bug in gst-python docs is it still present with current gst-python and python 2.3.4 or 2.4.0 ? could you provide that test.py file also ?!
how good it feels to actually close a bug that oneself commited :)