After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 147641 - [docs] pydoc segfaults when viewing gst package doc
[docs] pydoc segfaults when viewing gst package doc
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
0.8.x
Other Linux
: Normal normal
: 0.8.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-15 11:28 UTC by Edward Hervey
Modified: 2005-10-11 14:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Edward Hervey 2004-07-15 11:28:58 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
Comment 1 Johan (not receiving bugmail) Dahlin 2004-07-26 10:24:58 UTC
Can you provide a traceback?
Comment 2 Edward Hervey 2004-07-26 12:20:13 UTC
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):
  • File "/usr/lib/python2.3/SocketServer.py", line 222 in handle_request
    self.process_request(request, client_address)
  • File "/usr/lib/python2.3/SocketServer.py", line 241 in process_request
    self.finish_request(request, client_address)
  • File "/usr/lib/python2.3/SocketServer.py", line 254 in finish_request
    self.RequestHandlerClass(request, client_address, self)
  • File "/usr/lib/python2.3/SocketServer.py", line 521 in __init__
    self.handle()
  • File "/usr/lib/python2.3/BaseHTTPServer.py", line 324 in handle
    self.handle_one_request()
  • File "/usr/lib/python2.3/BaseHTTPServer.py", line 318 in handle_one_request
    method()
  • File "/usr/lib/python2.3/pydoc.py", line 1851 in do_GET
    self.send_document('Index of Modules', contents)
  • File "/usr/lib/python2.3/pydoc.py", line 1812 in send_document
    self.send_response(200)
  • File "/usr/lib/python2.3/BaseHTTPServer.py", line 377 in send_response
    self.send_header('Server', self.version_string())
  • File "/usr/lib/python2.3/BaseHTTPServer.py", line 383 in send_header
    self.wfile.write("%s: %s\r\n" % (keyword, value))
  • File "/usr/lib/python2.3/socket.py", line 254 in write
    self.flush()
  • File "/usr/lib/python2.3/socket.py", line 241 in 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):
  • File "/usr/lib/python2.3/SocketServer.py", line 222 in handle_request
    self.process_request(request, client_address)
  • File "/usr/lib/python2.3/SocketServer.py", line 241 in process_request
    self.finish_request(request, client_address)
  • File "/usr/lib/python2.3/SocketServer.py", line 254 in finish_request
    self.RequestHandlerClass(request, client_address, self)
  • File "/usr/lib/python2.3/SocketServer.py", line 521 in __init__
    self.handle()
  • File "/usr/lib/python2.3/BaseHTTPServer.py", line 324 in handle
    self.handle_one_request()
  • File "/usr/lib/python2.3/BaseHTTPServer.py", line 318 in handle_one_request
    method()
  • File "/usr/lib/python2.3/pydoc.py", line 1832 in do_GET
    'no Python documentation found for %s' % repr(path))
  • File "/usr/lib/python2.3/pydoc.py", line 1812 in send_document
    self.send_response(200)
  • File "/usr/lib/python2.3/BaseHTTPServer.py", line 377 in send_response
    self.send_header('Server', self.version_string())
  • File "/usr/lib/python2.3/BaseHTTPServer.py", line 383 in send_header
    self.wfile.write("%s: %s\r\n" % (keyword, value))
  • File "/usr/lib/python2.3/socket.py", line 254 in write
    self.flush()
  • File "/usr/lib/python2.3/socket.py", line 241 in flush
    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\$

Comment 3 Johan (not receiving bugmail) Dahlin 2004-07-26 17:41:53 UTC
Sorry, but I actually meant a backtrace from GDB, the python traceback is pretty
much useless.
Comment 4 Stephane Loeuillet 2004-12-18 23:33:32 UTC
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 ?!
Comment 5 Edward Hervey 2005-10-11 14:43:32 UTC
how good it feels to actually close a bug that oneself commited :)