[From nobody Fri Oct 30 21:39:05 2026
Received: (at submit) by bugs.debian.org; 17 May 2026 00:14:07 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-15.1 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
 DKIM_VALID_EF,FOURLA,FREEMAIL_FROM,HAS_PACKAGE,RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 85; hammy, 150; neutral, 185; spammy,
 0. spammytokens: hammytokens:0.000-+--python3,
 0.000-+--HTo:N*Debian, 
 0.000-+--H*Ad:N*Bug, 0.000-+--H*Ad:N*Tracking, 0.000-+--HTo:N*Bug
Return-path: &lt;jeffrey.cliff@gmail.com&gt;
Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]:54767)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
 (Exim 4.96) (envelope-from &lt;jeffrey.cliff@gmail.com&gt;)
 id 1wOP8x-000oGA-2L for submit@bugs.debian.org;
 Sun, 17 May 2026 00:14:07 +0000
Received: by mail-oa1-x2a.google.com with SMTP id
 586e51a60fabf-43a1004f686so383418fac.1
 for &lt;submit@bugs.debian.org&gt;; Sat, 16 May 2026 17:14:07 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1778976840; cv=none;
 d=google.com; s=arc-20240605;
 b=NoS7MuskdmrzSwSEEq42DAbwwYsWqh8beMPR5F5T3MRAWg7wQrBJAN2X2OMADkUnMb
 F4CMIq0UQsZjpm87xjGDQ3wpSNC08bEwJhn1ypcD85BACR3r0xJIVwLwgUfHG8glstQ8
 6EzTqNpO45X8vBv1bvV52TNfc2ZifpH5tpCtmXsGRZtUxSdgOexHS7GVDUB4aO5xdaba
 //6mE7ahm4w9mqa25bzGV0m+dOQ7h0uFbSm29M2pmfSIVWhpf/GaDljmjmlZbyfnifcf
 kkGxBJY7HIjBGHFWxKPtgiQ/GRVlqop2egFGeRn5EbvUZFupV1FKnWhzA5tmaA1T25SN
 sXKA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20240605; 
 h=to:subject:message-id:date:from:mime-version:dkim-signature;
 bh=oXUmvXiFjrj2/XESuBSQ/2h2T9xU+RsdqLMcyt4wWS8=;
 fh=nhnFETacTe5r2a9FNuf5NpwpTQnEaIZDcDOb3f5l+e8=;
 b=KUJzdb/5pSWHnQvjxke8900kfihc0wkc0FwxKwuU9+AePTu4ySDKZbglr1xOmKlEAz
 FFQP00Bq0bZgCna1KyBljIn1LME9Nn0F3MR6LKY5JehxmQd+exi5G12F05/9SYsy9nwz
 +6zctXP+ON+tm35huZXn5MP/auhU8q406WzaLcySSQFjTu8uphLdS/Zc20f2ju1O8i/t
 zpYbAmuf/qEUChF5we+10L5IUp2g14uITLVC6Y3lMsPLdHX2xQxkDbG3dpSpaflzvzRd
 EMXyFsH5km+sSjAS4G6BGrQvhzRGyqSNKyco34AgXxfUQjcfLkoYfAxVJ2ukoOVGlj4X
 xIEA==; darn=bugs.debian.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1778976840; x=1779581640; darn=bugs.debian.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=oXUmvXiFjrj2/XESuBSQ/2h2T9xU+RsdqLMcyt4wWS8=;
 b=n/FiqlLzpRfxafJl3vLD1oYPHTCh1ZL5Zy//JnmfAgSMCp7R+jpC4mHwDbQymQr1RK
 JJuCR1/IulHUhrNhD6d2AwkCrLFbCHi6ftzcODwCM4o9Moan087xkrGttbvN2/DzSAsW
 R5Y2nLXEMNe3oq8Fa/xIQZ8usGkYKRO9BliIWSL+gDGabHTVbs2UMO6lZBZOdEbNflMu
 5oH4FQJk9eG11NhpPk+oY2DNTat3vxDzKV3bgip9tW3gbeWLNsyyvtZUI3pO3Vtz/LYc
 zUeo8w36QbiUDcPghQA2f9MWRzFjYjgk5FsX89HtDLoCU6iCIYK3zZzORkiWv02sLreK
 DosQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1778976840; x=1779581640;
 h=to:subject:message-id:date:from:mime-version:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=oXUmvXiFjrj2/XESuBSQ/2h2T9xU+RsdqLMcyt4wWS8=;
 b=lwpIWlFnqPRGkP6ipRS7rKXJ0Lqe8m+WYY3Db6qfdxnkm3XJE6/oeHCMR5uK6YrKa/
 Grf1/+6Jkd8o90WwSA+naraDfz6m6YUh0Co46Slle8EPmB+t5CgICf79vcIOOEPOjZqB
 dNGOAM7j/9YPPPYmJxQIcQ5Ts1a+i38lBJdGajYSatG9bSUKDCxrHiJ4zabR+Sz5L/iX
 AEsLtN4J/7NAo7GkfF9Ycv5H5oQk2tP2IVNgY2NRJ3Umt2jdtZVhd0FMdUjhyxYLRCQp
 qzAcpR59K50jLJCVM5/KrWn26YvbO1fTC1gIizgsEja7+Yon+YTBqYftkWMY6BtxLMIj
 d5ow==
X-Gm-Message-State: AOJu0Yy01XSpOW8INQwfjIVyCQoUknry4DlyNKEpxKnA/Mc5AF0cn+Ly
 Xt3y7YxWYXglrdVrhVLkyBA1Wgir3IxkfeSrmRV9lP8xb5etvyQqbD94m/YxfLQskeG+fJk1uPl
 J6pvUxMd7LufqGW4AvlHWazq+e2TVTDP+FGELZic=
X-Gm-Gg: Acq92OGzFKTrRhxmdQMklVcoKXbhrFDn2GkEfmyQ3OPoBBHNAdOcajdMqQ3emzIc7cI
 yOmTEskr3dcGmJ3/EEyPFvZjuIWPqkWIHvu5QoRoAu42JMFp04NsxCgJQuvGqKI9A2rty3tHmVH
 ru0gCHiP0KRPMttSPgX85ZVpfgZVL74cOWz5LSZ/uW7xlCZH2aig+ALoK111XkBRptm4KNguGB5
 GufcKUetXmEQxMtfWwsBppAieyxd1/RvNCpqssTsVOmeBk9DYDtotQ0kMhwjryN7L5j7URVnIq5
 8dvd44vWTHtVB+GRo68Xp7yrDWwcDELtSjT12z1okO9sSB8J0qu2o2k1k7lzdec/xYRww26dQN2
 /+nl8tTqD
X-Received: by 2002:a05:6820:4b8c:b0:69b:b52c:c9b9 with SMTP id
 006d021491bc7-69c9bfb0322mr5846858eaf.50.1778976840107; Sat, 16 May 2026
 17:14:00 -0700 (PDT)
MIME-Version: 1.0
From: Jeffrey Cliff &lt;jeffrey.cliff@gmail.com&gt;
Date: Sat, 16 May 2026 18:13:50 -0600
X-Gm-Features: AVHnY4IJL5-gvaQqCxzukNeO52MF86xMWbfSqc6wzmMhxhK7wcA-SRcQ0VqkD-s
Message-ID: &lt;CAAR2Wu86aVW=jG=-qnips4w2Qqgw=psc7+2nkKyPHYRv_cJ__A@mail.gmail.com&gt;
Subject: onionshare: during handling of other exception IndexError: tuple
 index out of range
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Content-Type: text/plain; charset=&quot;UTF-8&quot;
Delivered-To: submit@bugs.debian.org

Package: onionshare
Version: 2.6.3-3
Severity: normal

Dear Maintainer,

While onionshare had been running with a share for awhile, I went to
stop it from running by
clicking on the button that would normally stop it from running: but
once clicked it said
'starting...  ('which was a little weird).  It seemed to be stuck there.

on the console this is what was displayed

unhandled close event
Error calling Python override of QThread::run(): Traceback (most
recent call last):
  File &quot;/usr/lib/python3/dist-packages/onionshare/threads.py&quot;, line 82, in run
    self.mode.app.start_onion_service(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        self.mode.get_type(), self.mode.settings, await_publication=True
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File &quot;/usr/lib/python3/dist-packages/onionshare_cli/onionshare.py&quot;,
line 80, in start_onion_service
    self.onion_host = self.onion.start_onion_service(
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        mode, mode_settings, self.port, await_publication
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File &quot;/usr/lib/python3/dist-packages/onionshare_cli/onion.py&quot;, line
746, in start_onion_service
    res = self.c.create_ephemeral_hidden_service(
        {80: port},
    ...&lt;4 lines&gt;...
        client_auth_v3=client_auth_pub_key,
    )
  File &quot;/usr/lib/python3/dist-packages/stem/control.py&quot;, line 3057, in
create_ephemeral_hidden_service
    if self.get_version() &lt; stem.version.Requirement.ADD_ONION:
       ~~~~~~~~~~~~~~~~^^
  File &quot;/usr/lib/python3/dist-packages/stem/control.py&quot;, line 489, in wrapped
    return func(self, *args, **kwargs)
  File &quot;/usr/lib/python3/dist-packages/stem/control.py&quot;, line 1277, in
get_version
    version_str = self.get_info('version')
  File &quot;/usr/lib/python3/dist-packages/stem/control.py&quot;, line 489, in wrapped
    return func(self, *args, **kwargs)
  File &quot;/usr/lib/python3/dist-packages/stem/control.py&quot;, line 1208, in get_info
    response = self.msg('GETINFO %s' % ' '.join(params))
  File &quot;/usr/lib/python3/dist-packages/stem/control.py&quot;, line 662, in msg
    self._socket.send(message)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^
  File &quot;/usr/lib/python3/dist-packages/stem/socket.py&quot;, line 460, in send
    self._send(message, lambda s, sf, msg: send_message(sf, msg))
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3/dist-packages/stem/socket.py&quot;, line 243, in _send
    raise stem.SocketClosed()
stem.SocketClosed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;/usr/lib/python3/dist-packages/onionshare/threads.py&quot;, line 111, in run
    message = strings._(&quot;error_generic&quot;).format(e.args[0])
                                                ~~~~~~^^^
IndexError: tuple index out of range

So what is the bug here that I'm reporting?  That last bit.

If something is going on internal to onionshare, some internal
exception being generated
*at the very least* it should be caught at
/usr/lib/python3/dist-packages/onionshare/threads.py

a test should be made before e.args[0] is invoked to ensure that it
*has* something to index.
it should not be possible for there to be an index error while
handling another error


-- System Information:
Distributor ID:    Devuan
Description:    Devuan GNU/Linux 7 (freia/ceres)
Release:    7
Codename:    freia ceres
Architecture: x86_64

Kernel: Linux 6.19.14+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8),
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages onionshare depends on:
ii  onionshare-cli             2.6.3-3
ii  python3                    3.13.9-3+b1
ii  python3-gnupg              0.5.4-1
ii  python3-pyside6.qtcore     6.10.3-2
ii  python3-pyside6.qtwidgets  6.10.3-2
ii  python3-qrcode             8.2-1
ii  python3-werkzeug           3.1.8-1

onionshare recommends no packages.

onionshare suggests no packages.

-- no debconf information
]