Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemError accessing uninitialised cell contents #45786

Closed
kupuguy mannequin opened this issue Nov 15, 2007 · 3 comments
Closed

SystemError accessing uninitialised cell contents #45786

kupuguy mannequin opened this issue Nov 15, 2007 · 3 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@kupuguy
Copy link
Mannequin

kupuguy mannequin commented Nov 15, 2007

BPO 1445
Nosy @gvanrossum, @kupuguy, @amauryfa

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-11-24.13:54:26.982>
created_at = <Date 2007-11-15.10:27:48.220>
labels = ['interpreter-core', 'type-bug']
title = 'SystemError accessing uninitialised cell contents'
updated_at = <Date 2007-11-24.13:54:26.898>
user = 'https://github.com/kupuguy'

bugs.python.org fields:

activity = <Date 2007-11-24.13:54:26.898>
actor = 'amaury.forgeotdarc'
assignee = 'none'
closed = True
closed_date = <Date 2007-11-24.13:54:26.982>
closer = 'amaury.forgeotdarc'
components = ['Interpreter Core']
creation = <Date 2007-11-15.10:27:48.220>
creator = 'duncanb'
dependencies = []
files = []
hgrepos = []
issue_num = 1445
keywords = []
message_count = 3.0
messages = ['57525', '57559', '57805']
nosy_count = 3.0
nosy_names = ['gvanrossum', 'duncanb', 'amaury.forgeotdarc']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1445'
versions = ['Python 2.6', 'Python 2.5']

@kupuguy
Copy link
Mannequin Author

kupuguy mannequin commented Nov 15, 2007

The following code throws a SystemError exception. cell_get_contents in
Objects\cellobject.c should check for a null op->ob_ref value and throw
an appropriate exception.

>>> def oops():
	def f(): cell
	f.func_closure[0].cell_contents
	cell = None

>> oops()

Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    oops()
  File "<pyshell#8>", line 3, in oops
    f.func_closure[0].cell_contents
SystemError: error return without exception set
>>>

@kupuguy kupuguy mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error labels Nov 15, 2007
@gvanrossum
Copy link
Member

Patch anyone?

@amauryfa
Copy link
Member

Fixed in r59170 (trunk) and r59171 (release25-maint).

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants