This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2011年07月01日 12:43 by abacabadabacaba, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg139572 - (view) | Author: Evgeny Kapun (abacabadabacaba) | Date: 2011年07月01日 12:43 | |
This code crashes Python:
import gc
gc.get_referents(object.__dict__)[0].clear()
gc.get_referents(type.__dict__)[0].clear()
type("A", (), {})()
|
|||
| msg139629 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2011年07月02日 10:10 | |
This looks a lot like the crasher described in Lib/test/crashers/underlying_dict.py For the record, the similar issue1517663 was closed even though there was a patch, with a comment of the "if it hurts, don't do it" kind. |
|||
| msg139674 - (view) | Author: Georg Brandl (georg.brandl) * (Python committer) | Date: 2011年07月03日 07:51 | |
Yep. It's no surprise that you can crash Python by abusing the gc module, or the ctypes module, or ... |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:19 | admin | set | github: 56674 |
| 2011年07月03日 07:51:02 | georg.brandl | set | status: open -> closed nosy: + georg.brandl messages: + msg139674 resolution: wont fix |
| 2011年07月02日 11:46:14 | jcea | set | nosy:
+ jcea |
| 2011年07月02日 10:10:53 | amaury.forgeotdarc | set | nosy:
+ amaury.forgeotdarc messages: + msg139629 |
| 2011年07月01日 12:43:55 | abacabadabacaba | create | |