public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Matej Habrnal <mhabrnal@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/abrt] update-2.17.9-f44: python3 addon: workaround a bug in traceback
Date: Mon, 03 Aug 2026 11:04:35 GMT	[thread overview]
Message-ID: <178575507591.1.3017729649373591816.rpms-abrt-a22abdb1f3ac@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/abrt
            Branch : update-2.17.9-f44
            Commit : a22abdb1f3ac47479fc539a0dc520b2fa812dce7
            Author : Matej Habrnal <mhabrnal@redhat.com>
            Date   : 2016-03-07T15:33:46+01:00
            Stats  : +39/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/abrt/c/a22abdb1f3ac47479fc539a0dc520b2fa812dce7?branch=update-2.17.9-f44

            Log:
            python3 addon: workaround a bug in traceback

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>

---
diff --git a/0009-python3-addon-workaround-a-bug-in-traceback.patch b/0009-python3-addon-workaround-a-bug-in-traceback.patch
new file mode 100644
index 0000000..e0290c6
--- /dev/null
+++ b/0009-python3-addon-workaround-a-bug-in-traceback.patch
@@ -0,0 +1,34 @@
+From cc20fe4e6223c6d7092ba6c4b1bb2cf902e795b3 Mon Sep 17 00:00:00 2001
+From: Jakub Filak <jfilak@redhat.com>
+Date: Mon, 7 Mar 2016 15:21:14 +0100
+Subject: [PATCH] python3 addon: workaround a bug in traceback
+
+This commit re-enables the python3 exception handler for python >= 3.5
+without it, no Python3 uncaught exceptions can be detected.
+
+See the following Bugzilla bug for more details:
+https://bugzilla.redhat.com/show_bug.cgi?id=1315228
+
+Signed-off-by: Jakub Filak <jfilak@redhat.com>
+---
+ src/hooks/abrt_exception_handler3.py.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/hooks/abrt_exception_handler3.py.in b/src/hooks/abrt_exception_handler3.py.in
+index f45af86..2800975 100644
+--- a/src/hooks/abrt_exception_handler3.py.in
++++ b/src/hooks/abrt_exception_handler3.py.in
+@@ -173,8 +173,8 @@ def handle_exception(etype, value, tb):
+ 
+         if tb is not None and etype != IndentationError:
+             tblast = traceback.extract_tb(tb, limit=None)
+-            if len(tblast):
+-                tblast = tblast[len(tblast) - 1]
++            if tblast:
++                tblast = tuple(tblast[-1])
+             extxt = traceback.format_exception_only(etype, value)
+             if tblast and len(tblast) > 3:
+                 ll = []
+-- 
+2.5.0
+

diff --git a/abrt.spec b/abrt.spec
index e0a1056..df70a39 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -49,7 +49,7 @@
 Summary: Automatic bug detection and reporting tool
 Name: abrt
 Version: 2.8.0
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2+
 Group: Applications/System
 URL: https://abrt.readthedocs.org/
@@ -67,6 +67,7 @@ Patch0005: 0005-Fix-minor-typo-possition-position.patch
 Patch0006: 0006-a-a-save-package-data-blacklist-usr-lib-64-firefox-p.patch
 #Patch0007: 0007-testsuite-add-concurrent-processing-test-for-abrtd.patch
 Patch0008: 0008-CCpp-turn-off-compat-cores.patch
+Patch0009: 0009-python3-addon-workaround-a-bug-in-traceback.patch
 
 # '%%autosetup -S git' -> git
 BuildRequires: git
@@ -1094,6 +1095,9 @@ killall abrt-dbus >/dev/null 2>&1 || :
 %config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh
 
 %changelog
+* Mon Mar 7 2016 Matej Habrnal <mhabrnal@redhat.com> 2.8.0-4
+- python3 addon: workaround a bug in traceback
+
 * Tue Feb 23 2016 Matej Habrnal <mhabrnal@redhat.com> 2.8.0-3
 - translation updates
 - blacklist Firefox's plugin-container

                 reply	other threads:[~2026-08-03 11:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178575507591.1.3017729649373591816.rpms-abrt-a22abdb1f3ac@fedoraproject.org \
    --to=mhabrnal@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox