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

Interrupt/kill threads w/exception #43528

Closed
oliverbock mannequin opened this issue Jun 20, 2006 · 3 comments
Closed

Interrupt/kill threads w/exception #43528

oliverbock mannequin opened this issue Jun 20, 2006 · 3 comments
Labels
3.9 only security fixes 3.10 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@oliverbock
Copy link
Mannequin

oliverbock mannequin commented Jun 20, 2006

BPO 1509060

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 = None
created_at = <Date 2006-06-20.04:30:39.000>
labels = ['interpreter-core', 'type-feature', '3.9', '3.10']
title = 'Interrupt/kill threads w/exception'
updated_at = <Date 2020-10-30.23:30:21.544>
user = 'https://bugs.python.org/oliverbock'

bugs.python.org fields:

activity = <Date 2020-10-30.23:30:21.544>
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2006-06-20.04:30:39.000>
creator = 'oliverbock'
dependencies = []
files = []
hgrepos = []
issue_num = 1509060
keywords = []
message_count = 2.0
messages = ['61241', '61242']
nosy_count = 1.0
nosy_names = ['oliverbock']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue1509060'
versions = ['Python 3.9', 'Python 3.10']

@oliverbock
Copy link
Mannequin Author

oliverbock mannequin commented Jun 20, 2006

When unsophisticated (but not evil) users write Python
macros, they occasionally write infinite loops. It
would be nice if it was possible to interrupt threads
to break these loops. The safety of rasing an
exception in another thread was noted in

http://sourceforge.net/tracker/?func=detail&atid=305470&aid=452266&group_id=5470

Anton Wilson wrote a patch for this some time ago:

http://mail.python.org/pipermail/python-list/2003-February/148999.html

Note that this won't help if the thread is blocked on I/O.

@oliverbock oliverbock mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Jun 20, 2006
@josiahcarlson
Copy link
Mannequin

josiahcarlson mannequin commented Jun 23, 2006

Logged In: YES
user_id=341410

It would be nice to be able to kill runaway threads, though
I have no comment on the patch that Anton Wilson offers
(which will no doubt need to be updated for more recent
Pythons).

@iritkatriel iritkatriel added 3.9 only security fixes 3.10 only security fixes labels Oct 30, 2020
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@iritkatriel
Copy link
Member

Closing as this is 15 years old, both links in the original post are no longer leading to anything, and it's not clear what the relevance of this is now.

@iritkatriel iritkatriel closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9 only security fixes 3.10 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
Projects
Development

No branches or pull requests

1 participant