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

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



Your message dated Sat, 29 Apr 2023 07:19:46 +0000
with message-id <E1psery-00GqMC-QV@fasolo.debian.org>
and subject line Bug#1034143: fixed in reportbug 12.0.0
has caused the Debian Bug report #1034143,
regarding reportbug: crashes on unblock request for live-installer (udeb-only package)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1034143: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034143
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Source: reportbug
Source-Version: 12.0.0
Done: Nis Martensen <nis.martensen@web.de>

We believe that the bug you reported is fixed in the latest version of
reportbug, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1034143@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nis Martensen <nis.martensen@web.de> (supplier of updated reportbug package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 29 Apr 2023 08:38:45 +0200
Source: reportbug
Architecture: source
Version: 12.0.0
Distribution: unstable
Urgency: medium
Maintainer: Reportbug Maintainers <debian-reportbug@lists.debian.org>
Changed-By: Nis Martensen <nis.martensen@web.de>
Closes: 1031924 1034143 1034260
Changes:
 reportbug (12.0.0) unstable; urgency=medium
 .
   [ Benjamin Drung ]
   * Make Python version PEP440 compliant
 .
   [ Paul Wise ]
   * Update Linux kernel taint list and location
 .
   [ Nis Martensen ]
   * debian/control: update standards-version (no changes needed)
   * reportbug.utils.get_package_status: force literal package name match when
     calling apt-cache show. Thanks to David Kalnischkies for comprehensive
     explanations on apt's command line argument features.
     (Closes: #1031924)
 .
   [ Roland Clobus ]
   * reportbug.debbugs.check_package_info: fix crash with udeb-only pkg
     (Closes: #1034143)
 .
   [ Nis Martensen ]
   * reportbug/utils.py: update CODENAME2SUITE for bookworm (Closes: #1034260)
Checksums-Sha1:
 168dfb5d979bc52dc516ff21ed3f6264ac10fe27 1888 reportbug_12.0.0.dsc
 0c842756cec52e3b565abb9c41cd204b7a246d89 213432 reportbug_12.0.0.tar.xz
 6ef465fd9f586cdf79f9acae77984425a8900da2 7658 reportbug_12.0.0_amd64.buildinfo
Checksums-Sha256:
 0189782fcc128634c4fe0fad3291f35571b80573d1c8a6dc30c2a1c95ba12486 1888 reportbug_12.0.0.dsc
 920cf15a22193cb392d29dca8c4c70484503c89cf37714ff429b5a055b9c069a 213432 reportbug_12.0.0.tar.xz
 a5e21f08fa4709cf1e5521bc7d09991f6acd7d30cf72b2f006b2fd9c31bf423d 7658 reportbug_12.0.0_amd64.buildinfo
Files:
 4bbcbad244c39591f3423619a6da0b05 1888 utils standard reportbug_12.0.0.dsc
 94d7ad7af7cf1fc2064b370bfe508f5a 213432 utils standard reportbug_12.0.0.tar.xz
 88adb49f3f97a8f48b235687ef621af6 7658 utils standard reportbug_12.0.0_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEElwagcOR0bw2C8YAgINUE/crqn1AFAmRMvdkACgkQINUE/crq
n1BdRQ/+Le68gxDtQdVsUbMW+W+4bID8I0L/WYSJS0wcn4tfbblGS4jWogVjH9rj
MWlPci9dyxsRk4BMtl6yYKiI7zD88SfitjDdCzzHKM4+SyFKfP2Lxmuxg1kJAfz4
PXHwH4BUeaiH6rIyepxRDLwdFNrxAgRbAXN2j5/EMR5+Ggs3O44UKCz3O4dH9h6b
NTpalusxgzJglskfvvW+R8G0F2NuD2lWdJRS0yTpQFiMZsQVzPph93j7ChcvbsCW
beBWEeRtDivM7wownB5O9ncHAFjfEXyVKo8i+TT1ljgHXRyPdkcavTqxY4WeemKL
jVJgQD0WL98cGs3f6om85gv9IpiDQ2BUCZYR91CAi36wQFHY50J/0BL3+po1B75g
i5desW3t2rVlteo76/xZxJXnI+1JsTazPFVsI4ZBio9618HF7nR7X4V2vXsu5mjp
l+G/aiwdYHmZxp9PfkfSCS0uy2LkZrG37cjhZr2OLZk4FVisV5xFjg8Om2xXpjcf
dhaLqCZTB32RvaXQZ+fSaiXFTa8sqhbu8GVYUd+PuWJcZlFJbx+HSC2Yvs1H8SzB
NIPIdwT2Lf+xdnNH4brv4N3NPaJXu2FETVWzCritJlMCFkqnmTZaETwXHjR1YsMN
v9d7ojXM1yQkDU/ytLWbfszVxH95CqHmzshIB1nzBm9pUsR+eOk=
=uoFS
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: