[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#919102: reportbug: crash if fails to contact debian server



Package: reportbug
Version: 7.1.7+deb9u2
Severity: important

Dear Maintainer,

When trying to report a bug from linux package and the server is under '500
Internal Server Error', reportbug will crash.
Sorry if this is not a reportbug's bug.


I've been having this issue for some time, so decided to run reportbug from
terminal and got the following :

b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>500
Internal Server Error</title>\n</head><body>\n<h1>Internal Server
Error</h1>\n<p>The server encountered an internal error or\nmisconfiguration
and was unable to complete\nyour request.</p>\n<p>Please contact the server
administrator at \n owner@bugs.debian.org to inform them of the time this error
occurred,\n and the actions you performed just before this error.</p>\n<p>More
information about this error may be available\nin the server error
log.</p>\n<hr>\n<address>Apache Server at bugs.debian.org Port
443</address>\n</body></html>\n'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 1077, in
get_reports
    stats = debianbts.get_status(bugs)
  File "/usr/lib/python3/dist-packages/debianbts.py", line 257, in get_status
    reply = soap_client.call('get_status', method_el)
  File "/usr/lib/python3/dist-packages/pysimplesoap/client.py", line 262, in
call
    jetty=self.__soap_server in ('jetty',))
  File "/usr/lib/python3/dist-packages/pysimplesoap/simplexml.py", line 56, in
__init__
    self.__document = xml.dom.minidom.parseString(text)
  File "/usr/lib/python3.5/xml/dom/minidom.py", line 1968, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python3.5/xml/dom/expatbuilder.py", line 925, in parseString
    return builder.parseString(string)
  File "/usr/lib/python3.5/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: syntax error: line 1, column 49

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1049, in
sync_pre_operation
    http_proxy=http_proxy, archived=archived, source=source)
  File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 1079, in
get_reports
    raise QuertBTSError
reportbug.exceptions.QuertBTSError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2264, in <module>
    main()
  File "/usr/bin/reportbug", line 1108, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1722, in user_interface
    latest_first=self.options.latest_first)
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1765, in
func
    args, kwargs = op.sync_pre_operation(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 1051, in
sync_pre_operation
    error_dialog("Unable to connect to %s BTS." % sysinfo['name'])
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 137, in
error_dialog
    _assert_context(ui_context)
  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk2_ui.py", line 92, in
_assert_context
    (_describe_context(really), _describe_context(expected)))
AssertionError: Function should be called in <MainContext of reportbug thread>
but was called in <MainContext of UI thread>



-- Package-specific info:
** Environment settings:
INTERFACE="gtk2"

** /home/raiden/.reportbugrc:
reportbug_version "7.1.7"
mode novice
ui gtk2
realname "Neil"
email "ledufff@hotmail.com"
smtphost "smtp-mail.outlook.com"
smtpuser "ledufff@hotmail.com"
smtptls

-- System Information:
Debian Release: 9.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_CO.UTF-8, LC_CTYPE=es_CO.UTF-8 (charmap=UTF-8), LANGUAGE=es_CO:es (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reportbug depends on:
ii  apt                1.4.8
ii  python3            3.5.3-1
ii  python3-reportbug  7.1.7+deb9u2

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                                 <none>
pn  debconf-utils                              <none>
ii  debsums                                    2.2.2
pn  dlocate                                    <none>
pn  emacs24-bin-common | emacs25-bin-common    <none>
ii  exim4-daemon-light [mail-transport-agent]  4.89-2+deb9u3
ii  file                                       1:5.30-1+deb9u2
ii  gir1.2-gtk-3.0                             3.22.11-1
ii  gir1.2-vte-2.91                            0.46.1-1
ii  gnupg                                      2.1.18-8~deb9u3
ii  python3-gi                                 3.22.0-2
ii  python3-gi-cairo                           3.22.0-2
ii  python3-gtkspellcheck                      4.0.5-1
pn  python3-urwid                              <none>
ii  xdg-utils                                  1.1.1-1+deb9u1

Versions of packages python3-reportbug depends on:
ii  apt                1.4.8
ii  file               1:5.30-1+deb9u2
ii  python3            3.5.3-1
ii  python3-apt        1.4.0~beta3
ii  python3-debian     0.1.30
ii  python3-debianbts  2.6.1
ii  python3-requests   2.12.4-1

python3-reportbug suggests no packages.

-- no debconf information


Reply to: