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

ModuleType.__new__ crash #36246

Closed
nascheme opened this issue Mar 12, 2002 · 3 comments
Closed

ModuleType.__new__ crash #36246

nascheme opened this issue Mar 12, 2002 · 3 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@nascheme
Copy link
Member

BPO 529050
Nosy @gvanrossum, @nascheme

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 = 'https://github.com/gvanrossum'
closed_at = <Date 2002-03-12.20:37:41.000>
created_at = <Date 2002-03-12.18:12:28.000>
labels = ['interpreter-core']
title = 'ModuleType.__new__ crash'
updated_at = <Date 2002-03-12.20:37:41.000>
user = 'https://github.com/nascheme'

bugs.python.org fields:

activity = <Date 2002-03-12.20:37:41.000>
actor = 'gvanrossum'
assignee = 'gvanrossum'
closed = True
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2002-03-12.18:12:28.000>
creator = 'nascheme'
dependencies = []
files = []
hgrepos = []
issue_num = 529050
keywords = []
message_count = 3.0
messages = ['9656', '9657', '9658']
nosy_count = 3.0
nosy_names = ['gvanrossum', 'nobody', 'nascheme']
pr_nums = []
priority = 'high'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue529050'
versions = ['Python 2.2']

@nascheme
Copy link
Member Author

Submitted on behalf of Gustavo Cordova
<gcordova@hebmex.com>:

Hi all, sorry for posting to this list.

I found a (maybe?) new bug, which crashes the interpreter.
Just do this (is't repeatable):

>> from types import *
>> mod = ModuleType.__new__(ModuleType)
>> mod

Upon trying to do a str(mod) to print it (I believe),
the VM crashes and burns.

I was searching for a way to construct a new module
from it's file's compiled bytecode (just read() the
"*.pyc" file),
so I thought maybe the ModuleType had some kind of
constructor
which could use the compiled byte code.

I don't have web access, so I couldn't post it as a bug
report in sourceforge.

@nascheme nascheme added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Mar 12, 2002
@nobody
Copy link
Mannequin

nobody mannequin commented Mar 12, 2002

Logged In: NO

I've got a fix. Will check in soon. --Guido

@gvanrossum
Copy link
Member

Logged In: YES
user_id=6380

Fixed in CVS, moduleobject.c rev 2.41.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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)
Projects
None yet
Development

No branches or pull requests

2 participants