8000 pdb exits unexpectedly when calling args · Issue #86350 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

pdb exits unexpectedly when calling args #86350

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

Closed
xgenadam mannequin opened this issue Oct 28, 2020 · 3 comments
Closed

pdb exits unexpectedly when calling args #86350

xgenadam mannequin opened this issue Oct 28, 2020 · 3 comments
Labels
3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@xgenadam
Copy link
Mannequin
xgenadam mannequin commented Oct 28, 2020
BPO 42184
Nosy @iritkatriel
Files
  • bug_example.py: simple reproduction
  • 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 2020-10-28.18:07:15.566>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = 'pdb exits unexpectedly when calling args'
    updated_at = <Date 2020-10-30.23:07:36.784>
    user = 'https://bugs.python.org/xgenadam'

    bugs.python.org fields:

    activity = <Date 2020-10-30.23:07:36.784>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-10-28.18:07:15.566>
    creator = 'xgenadam'
    dependencies = []
    files = ['49546']
    hgrepos = []
    issue_num = 42184
    keywords = []
    message_count = 2.0
    messages = ['379838', '380011']
    nosy_count = 2.0
    nosy_names = ['iritkatriel', 'xgenadam']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42184'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @xgenadam
    Copy link
    Mannequin Author
    xgenadam mannequin commented Oct 28, 2020

    When an objects repr or str methods return None a TypeError is raised. However if this object is passed to a function and args is called from within pdb, pdb will immediately exit.

    Attached to this is bug_example.py which contains a simple example of how to reproduce this.

    Depending on circumstances this can make debugging difficult.

    exact python version that this happened with:
    Python 3.6.11

    @xgenadam xgenadam mannequin added 8000 type-bug An unexpected behavior, bug, or error labels Oct 28, 2020
    @iritkatriel
    Copy link
    Member

    This is true in 3.10 as well. The same happens if __repr__ raises an exception. do_args command doesn't handle exceptions from repr.

    See also bpo-37022.

    @iritkatriel iritkatriel added stdlib Python modules in the Lib dir 3.8 (EOL) end of life 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
    @kumaraditya303
    Copy link
    Contributor

    Duplicate of #28400

    @kumaraditya303 kumaraditya303 marked this as a duplicate of #28400 Jul 14, 2022
    @kumaraditya303 kumaraditya303 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants
    0