[issue4724] setting f_exc_traceback aborts in debug builds

2020-12-01 Thread Irit Katriel


Irit Katriel  added the comment:

2.7-only issue.

--
nosy: +iritkatriel
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4724] setting f_exc_traceback aborts in debug builds

2019-12-01 Thread Batuhan


Batuhan  added the comment:

This issue looks like specific to 2.7, which is almost dead. Is there any 
interest about adding this to 2.7 branch?

--
nosy: +BTaskaya

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4724] setting f_exc_traceback aborts in debug builds

2011-02-02 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Not applicable to 3.x because the frame object does not have f_exc_traceback 
attribute anymore:

 import sys;sys._getframe(0).f_exc_traceback = 23
Traceback (most recent call last):
  File stdin, line 1, in module
AttributeError: 'frame' object has no attribute 'f_exc_traceback'

The issue is present in 2.7 but appears to be rather benign.   It looks like 
the worst that can happen in non-debug build is a reference leak in 
set_exc_info().

I am not sure if this is worth fixing.  If this was affecting development 
version, I would argue that the simplest fix is to disallow setting 
f_exc_traceback or f_exc_value before f_exc_type is set.  In a bug-fix reliase, 
however this is probably not acceptable.

Given that sys._getframe() screams beware, expert use only, I am not sure 
anything should be done other than possibly documenting that assigning to 
f_exc_* attributes of a transient frame object is not a good idea.

Note that the following works:

 f = sys._getframe(0)
 f.f_exc_traceback = 23

If there is a legitimate use for setting f_exc_traceback, the user should know 
to set f.f_exc_type and f.f_exc_value as well.

--
nosy: +belopolsky -BreamoreBoy
versions:  -Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4724
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4724] setting f_exc_traceback aborts in debug builds

2010-07-29 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

As no response to msg109476 I'll close unless anyone objects.

--
priority: high - normal
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4724
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4724] setting f_exc_traceback aborts in debug builds

2010-07-29 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Lack of response is not an appropriate reason to close.

--
status: pending - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4724
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4724] setting f_exc_traceback aborts in debug builds

2010-07-29 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Yup, still active:

$ ./python.exe 
Python 2.7.0+ (release27-maint:83247, Jul 30 2010, 00:41:50) 
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type help, copyright, credits or license for more information.
 import sys
[35067 refs]
 sys._getframe(0).f_exc_traceback = 23
Assertion failed: (tstate-frame-f_exc_traceback == NULL), function 
PyEval_EvalFrameEx, file Python/ceval.c, line 2998.
Abort trap

--
nosy: +michael.foord

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4724
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4724] setting f_exc_traceback aborts in debug builds

2010-07-07 Thread Mark Lawrence

Mark Lawrence breamore...@yahoo.co.uk added the comment:

Anybody willing and able to run with this?

--
nosy: +BreamoreBoy
stage:  - needs patch
type:  - crash
versions: +Python 3.1, Python 3.2 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4724
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4724] setting f_exc_traceback aborts in debug builds

2008-12-22 Thread Benjamin Peterson

New submission from Benjamin Peterson musiccomposit...@gmail.com:

$ ./python.exe 
Python 2.7a0 (trunk:67899, Dec 22 2008, 11:17:09) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type help, copyright, credits or license for more information.
 import sys
[36275 refs]
 sys._getframe(0).f_exc_traceback = 23
Python/ceval.c:2720: failed assertion `tstate-frame-f_exc_traceback ==
NULL'
Abort trap

--
components: Interpreter Core
messages: 78199
nosy: benjamin.peterson
priority: high
severity: normal
status: open
title: setting f_exc_traceback aborts in debug builds
versions: Python 2.6, Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4724
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com