Issue1250

classification
Title: Trace function is not called with return events when frames are exited due to exceptions
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, jha, zyasoft
Priority: normal Keywords:

Created on 2009-01-27.08:15:22 by jha, last changed 2018-03-23.22:42:53 by jeff.allen.

Files
File name Uploaded Description Edit Remove
trace_exc.py jha, 2009-01-27.08:15:20
Messages
msg4085 (view) Author: (jha) Date: 2009-01-27.08:15:20
Running the attached script with Jython (r5984) produces:

~> java -jar jython.jar /tmp/trace_exc.py
<trace> call in bar @ 13
<trace> line in bar @ 14
<trace> call in foo @ 7
<trace> line in foo @ 9
<trace> line in foo @ 11
<trace> exception in foo @ 11
<trace> exception in bar @ 14

..and running with CPython (2.5.1, 2.5.2, 2.6) produces:

 ~> python /tmp/trace_exc.py
<trace> call in bar @ 13
<trace> line in bar @ 14
<trace> call in foo @ 7
<trace> line in foo @ 8
<trace> line in foo @ 9
<trace> exception in foo @ 9
<trace> line in foo @ 11
<trace> return in foo @ 11
<trace> exception in bar @ 14
<trace> return in bar @ 14

Jython does not call the trace function when a frame is exited due to an
unhandled exception.
msg10428 (view) Author: Jim Baker (zyasoft) Date: 2015-11-02.03:19:24
Presumably same as #1751
History
Date User Action Args
2018-03-23 22:42:53jeff.allensetmilestone: Jython 2.7.2 ->
2015-11-02 03:19:25zyasoftsetnosy: + zyasoft
messages: + msg10428
milestone: Jython 2.7.1 -> Jython 2.7.2
2015-04-23 16:35:45zyasoftsetversions: + Jython 2.7, - Jython 2.5
2015-04-23 16:35:41zyasoftsetpriority: low -> normal
2015-04-23 16:35:30zyasoftsetmilestone: Jython 2.7.1
2013-02-25 19:02:28fwierzbickisetnosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.1
2009-03-14 14:49:29fwierzbickisetpriority: low
versions: + 2.5.1, - 2.5b1
2009-01-27 08:15:22jhacreate