Debian Bug report logs - #893399
crashes with uncaught ValueError and IndexError

version graph

Package: urlscan; Maintainer for urlscan is Marcin Kulisz <[email protected]>; Source for urlscan is src:urlscan (PTS, buildd, popcon).

Reported by: Ryan Kavanagh <[email protected]>

Date: Sun, 18 Mar 2018 17:00:02 UTC

Severity: important

Found in version urlscan/0.8.2-1

Full log


Message #5 received at [email protected] (full text, mbox, reply):

Received: (at submit) by bugs.debian.org; 18 Mar 2018 16:58:09 +0000
From [email protected] Sun Mar 18 16:58:09 2018
X-Spam-Checker-Version: SpamAssassin 3.4.1-bugs.debian.org_2005_01_02
	(2015-04-28) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-20.9 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,FOURLA,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FROMDEVELOPER,
	HAS_PACKAGE,HEADER_FROM_DIFFERENT_DOMAINS,PGPSIGNATURE,RCVD_IN_DNSWL_NONE,
	SPF_PASS,TXREP,URIBL_CNKR,X_DEBBUGS_CC autolearn=ham autolearn_force=no
	version=3.4.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 34; hammy, 150; neutral, 144; spammy,
	0. spammytokens: hammytokens:0.000-+--H*c:pgp-sha512, 0.000-+--python3,
	0.000-+--H*u:NeoMutt, 0.000-+--H*UA:NeoMutt, 0.000-+--en_cautf8
Return-path: <[email protected]>
Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.89)
	(envelope-from <[email protected]>)
	id 1exbdJ-00039X-EP
	for [email protected]; Sun, 18 Mar 2018 16:58:09 +0000
Received: by mail-qt0-x231.google.com with SMTP id v11so7793442qtj.6
        for <[email protected]>; Sun, 18 Mar 2018 09:58:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=sender:date:from:to:subject:message-id:mime-version
         :content-disposition:user-agent;
        bh=LQCJGRyHTl3jDllQJcM1VuCa9W211HK103Ob0hy3MHo=;
        b=QjXNUeBqHxHdoiW5mKyZTM2rJEw8L1h6gVJIrlTqHPqI4sei6E8h/Ouys8PDP0HPgB
         JduFU3GwU8pvqa8jvNfeZMbwlKRgFzNGtBYSQwXg1B0nM1qQ+c+e5mCuP00kyh0Fw3N3
         1KiyA5W4eLp+/Lhpu3bom04iU63suFKJIHvDqQpl06zRP0N2YRuBUNQzS51hhvJDKoHm
         +ZbMqf2h97MTVYjW3pJ1701/9VTdoUZpyyuaEdb99RGscyvClcQtFPbenpq4gEgG4vT4
         QnnlnN2RLgsj1NgOyPU6EiVVgEfKUUJZNzm4Op8hZgKWOshbNrs6iY3aAQq7k6JQJYsv
         4lIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:sender:date:from:to:subject:message-id
         :mime-version:content-disposition:user-agent;
        bh=LQCJGRyHTl3jDllQJcM1VuCa9W211HK103Ob0hy3MHo=;
        b=uoaOy0fw7iG+6U2MVWZspCVJMV71Q7UAAPBb6YSAEGTe4mdknzTgqzMgj5EQ+3MxIC
         Efl9ZIjfpF5peF1S6JwZqjxRQQ9vSiFjzoGF42h7mTbMaEOAdOehzNJ87Z80j7E3b12D
         iTqkD2bpuMW9T/gjo6SueFqoZDWbr+i31B00HKYMLMi0bT5fxPDCxWdBstk29OaQG89W
         BWESaSbgbzHiryvp567L6K+A62ZEPnGxXR7rzr83uKXBdyT4jFIQJ0G/bAp/7e1OUEQb
         LCTJN/brk0mNmBVS4eRCpVd2INfOckdESK8FxywyOapYwMiM4NGsY+zzUM60jCAegagQ
         0RKQ==
X-Gm-Message-State: AElRT7F6CIugZM8yudjSCkub4Mq4vuOTXCyh2wfCIzlUeRQAWHikgkjq
	H1d5lqco7O005M2ExUzU0oZddzOU
X-Google-Smtp-Source: AG47ELvi5In+PO/JRkt7ZLsTaEW22OSAeN6HJshrcVyq/VEqyVkExMEkaU/TAA68bTPFBXCo8B5pwQ==
X-Received: by 10.237.35.10 with SMTP id h10mr14159150qtc.147.1521392286996;
        Sun, 18 Mar 2018 09:58:06 -0700 (PDT)
Received: from zeta.ryanak.ca (c-67-186-58-244.hsd1.pa.comcast.net. [67.186.58.244])
        by smtp.gmail.com with ESMTPSA id 16sm9140757qtp.88.2018.03.18.09.58.05
        for <[email protected]>
        (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
        Sun, 18 Mar 2018 09:58:05 -0700 (PDT)
Sender: Ryan Kavanagh <[email protected]>
Date: Sun, 18 Mar 2018 12:58:04 -0400
From: Ryan Kavanagh <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: crashes with uncaught ValueError and IndexError
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="xe5ljrj2vimgvbie"
Content-Disposition: inline
X-Reportbug-Version: 7.1.10
X-Debbugs-Cc: [email protected],
X-message-flag: Please do NOT send HTML e-mail or MS Word attachments - use
 plain text instead
X-GPG-ID: 0x4A11C97A
X-GPG-Fingerprint: 4E46 9519 ED67 7734 268F  BD95 8F7B F8FC 4A11 C97A
User-Agent: NeoMutt/20180223
Delivered-To: [email protected]
[Message part 1 (text/plain, inline)]
Package: urlscan
Version: 0.8.2-1
Severity: important 

urlscan now crashes with the following error at startup on certain messages,
rendering it unusable:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urwid/listbox.py", line 177, in set_focus
    raise ValueError
ValueError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/urlscan", line 134, in <module>
    compact_mode=args.compact)
  File "/usr/lib/python3/dist-packages/urlscan/urlchoose.py", line 135, in __init__
    self.listbox.set_focus(firstbutton)
  File "/usr/lib/python3/dist-packages/urwid/listbox.py", line 581, in set_focus
    self._body.set_focus(position)
  File "/usr/lib/python3/dist-packages/urwid/listbox.py", line 179, in set_focus
    raise IndexError("No widget at position %s" % (position,))
IndexError: No widget at position 1

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_CA.UTF-8), LANGUAGE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_CA.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages urlscan depends on:
ii  libcanberra-gtk3-module  0.30-6
ii  python3                  3.6.4-1
ii  python3-urwid            2.0.1-1

urlscan recommends no packages.

Versions of packages urlscan suggests:
ii  chromium [www-browser]              65.0.3325.146-1
ii  firefox-esr [www-browser]           52.7.0esr-1
ii  google-chrome-stable [www-browser]  65.0.3325.162-1
ii  lynx [www-browser]                  2.8.9dev16-3
pn  mutt                                <none>
ii  uzbl [www-browser]                  0.0.0~git.20120514-1.2
ii  w3m [www-browser]                   0.5.3-36

-- no debconf information

-- 
|)|/  Ryan Kavanagh      | GPG: 4E46 9519 ED67 7734 268F
|\|\  https://rak.ac     |      BD95 8F7B F8FC 4A11 C97A
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:18:34 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.