Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1361112

Summary: `detected unhandled Python exception` error could be of more use
Product: Red Hat Enterprise Linux 6 Reporter: Piyush Bhoot <pbhoot>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9CC: cww, dkochuka, mkutlak, msuchy
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1361116 1437956 (view as bug list) Environment:
Last Closed: 2017-06-05 18:41:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1437956    
Bug Blocks: 1361116    

Description Piyush Bhoot 2016-07-28 11:10:18 UTC
Description of problem:
The "detected unhandled Python exception" message could be more verbose.
It denotes Python exceptions raised in interactive python or python executing script via "python -c "...""

Version-Release number of selected component (if applicable):
abrt-2.0.8-40.el6.x86_64
abrt-python-2.0.8-40.el6.x86_64

How reproducible:
Always


Steps to Reproduce:
1.'python -c "1/0"'
2. check /var/log/messages
3.

Actual results:
abrt: detected unhandled Python exception

Expected results:
Origin of exception may be?

Comment 3 Martin Kutlak 2017-04-03 12:33:00 UTC
Technically we could change the message from the current form to:

"detected unhandled Python exception in 'interactive mode (python -c)'"
when "python -c ..." is executed, and:

"detected unhandled Python exception in 'interactive mode'"
when "python" or "python -i".


Since RHEL 7 you can get more information about the origin of the exception from systemd journal by typing:
journalctl -a -S '1 day ago' -o verbose _COMM=python | grep 'MESSAGE\|_CMDLINE'

This will print out log messages and commands that were launched and in which unhandled Python exception occurred.

"MESSAGE=detected unhandled Python exception"
"_CMDLINE=python -c 1/0"

Comment 4 Chris Williams 2017-06-05 18:41:35 UTC
Red Hat Enterprise Linux 6 transitioned to the Production 3 Phase on May 10, 2017.  During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not appear to meet the inclusion criteria for the Production Phase 3 and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification.  Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com