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

Bug#1034143: reportbug: crashes on unblock request for live-installer (udeb-only package)



Package: reportbug
Version: 11.6.0
Severity: normal
Tags: patch

Hello maintainers of reportbug,

I tried to file an unblock request for live-installer, which is an udeb-only
package.
Reportbug (the gtk-interface) crashed with the following:

```
roland@silent:/dev/shm/live-installer-58$ reportbug
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2369, in <module>
    main()
  File "/usr/bin/reportbug", line 1091, in main
    return iface.user_interface()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/reportbug", line 1755, in user_interface
    res = special_prompts(package, bts, ui, fromaddr,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/reportbug", line 501, in special_prompts
    return pkgprompts(package, bts, ui, fromaddr, timeout, online, http_proxy)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 589, in
handle_debian_release
    info = check_package_info(package)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 252, in
check_package_info
    if info[1]:
       ~~~~^^^
TypeError: 'NoneType' object is not subscriptable
```

Steps to reproduce:
* Start 'reportbug' from the prompt
* The package: release.debian.org
* Sort of request: unblock
* Name of package: live-installer
-> Crash

My hacky fix, which allows me to file the bug:
Change line 252 of /usr/lib/python3/dist-packages/reportbug/debbugs.py from
`if info[1]:`
to
`if info and info[1]:`

With kind regards,
Roland Clobus


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

** /home/roland/.reportbugrc:
reportbug_version "6.5.1"
mode advanced
ui gtk2

-- System Information:
Debian Release: 12.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-security'), (500, 'testing-debug'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-7-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages reportbug depends on:
ii  apt                2.6.0
ii  python3            3.11.2-1
ii  python3-reportbug  11.6.0
ii  sensible-utils     0.0.17+nmu1

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                                 <none>
ii  debconf                                    1.5.82
ii  debsums                                    3.0.2
ii  dlocate                                    1.12
pn  emacs-bin-common                           <none>
ii  exim4                                      4.96-14
ii  exim4-daemon-light [mail-transport-agent]  4.96-14
ii  file                                       1:5.44-3
ii  gnupg                                      2.2.40-1.1
pn  python3-urwid                              <none>
ii  reportbug-gtk                              11.6.0
ii  xdg-utils                                  1.1.3-4.1

Versions of packages python3-reportbug depends on:
ii  apt                2.6.0
ii  file               1:5.44-3
ii  python3            3.11.2-1
ii  python3-apt        2.5.3
ii  python3-debian     0.1.49
ii  python3-debianbts  4.0.1
ii  python3-requests   2.28.1+dfsg-1
ii  sensible-utils     0.0.17+nmu1

python3-reportbug suggests no packages.

-- no debconf information


Reply to: