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

Errors in printing exceptions raised in a thread #66613

Closed
serhiy-storchaka opened this issue Sep 16, 2014 · 4 comments
Closed

Errors in printing exceptions raised in a thread #66613

serhiy-storchaka opened this issue Sep 16, 2014 · 4 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

BPO 22423
Nosy @terryjreedy, @pitrou, @serhiy-storchaka
Files
  • threading_print_exception.patch
  • 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/serhiy-storchaka'
    closed_at = <Date 2014-10-04.13:31:52.281>
    created_at = <Date 2014-09-16.08:37:10.068>
    labels = ['type-bug', 'library']
    title = 'Errors in printing exceptions raised in a thread'
    updated_at = <Date 2014-10-04.13:31:52.280>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2014-10-04.13:31:52.280>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2014-10-04.13:31:52.281>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2014-09-16.08:37:10.068>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['36629']
    hgrepos = []
    issue_num = 22423
    keywords = ['patch']
    message_count = 4.0
    messages = ['226944', '227227', '227229', '227230']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'pitrou', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue22423'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    @serhiy-storchaka
    Copy link
    Member Author

    Proposed patch fixes some bugs in printing exceptions in the threading module.

    1. Fixed names of private variables in initialization. This caused unhandled AttributeError. The regression was introduced in changeset e71c3223810f. This part of the patch shouldn't be applied to 2.7.

    2. Handled the case when sys.stderr is None. Perhaps this caused a crash when Python program run with pythonw.exe.

    3. Added missed test.

    @serhiy-storchaka serhiy-storchaka added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Sep 16, 2014
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 21, 2014

    New changeset 4baa474b4f31 by Serhiy Storchaka in branch '2.7':
    Issue bpo-22423: Unhandled exception in thread no longer causes unhandled
    https://hg.python.org/cpython/rev/4baa474b4f31

    New changeset 176579df4edd by Serhiy Storchaka in branch '3.4':
    Issue bpo-22423: Unhandled exception in thread no longer causes unhandled
    https://hg.python.org/cpython/rev/176579df4edd

    New changeset 644b677c2ae5 by Serhiy Storchaka in branch 'default':
    Issue bpo-22423: Unhandled exception in thread no longer causes unhandled
    https://hg.python.org/cpython/rev/644b677c2ae5

    @serhiy-storchaka
    Copy link
    Member Author

    Thank you Senthil for your review. Committed with you suggestion.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 21, 2014

    New changeset c925b436467a by Serhiy Storchaka in branch '2.7':
    Issue bpo-22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the re
    https://hg.python.org/cpython/rev/c925b436467a

    New changeset e99a1df8db36 by Serhiy Storchaka in branch '3.4':
    Issue bpo-22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the re
    https://hg.python.org/cpython/rev/e99a1df8db36

    New changeset fe287268e97b by Serhiy Storchaka in branch 'default':
    Issue bpo-22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the re
    https://hg.python.org/cpython/rev/fe287268e97b

    @serhiy-storchaka serhiy-storchaka self-assigned this Oct 4, 2014
    @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
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant