Package: python-speechd
Version: 0.7-5.1
Severity: normal

At the end of /usr/share/pyshared/speechd_config/config.py the snippet
  if __name__ == "__main__":
      sys.exit(main())
  else:
      main()
causes the main function to be run e.g. when pydoc is used on the module.

Either when running pydoc directly:
zbys...@muja ~$ pydoc speechd_config
Speech Dispatcher configuration tool
Do you want to setup a completely new configuration? [yes] :
>

Or when running pydoc through with the graphical interface:
zbys...@muja ~$ pydoc -g
Usage: A simple tool for basic configuration of Speech Dispatcher
and problem diagnostics

usage: pydoc [options]

pydoc: error: no such option: -g

This also causes pydoc to hang, without reacting to ^C or kill -TERM,
so that only kill -KILL works...

I'm reporting this as a bug in speechd not pydoc because while pydoc
could degrade more gracefuly, it must import the module to look at it,
and there isn't any sensible way for pydoc to prevent the module
from executing arbitrary code if the module wants to. The module just
should do that.


-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.20-1-486
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to