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

test_gdb in Python3: No stack #52725

Closed
loewis mannequin opened this issue Apr 21, 2010 · 4 comments
Closed

test_gdb in Python3: No stack #52725

loewis mannequin opened this issue Apr 21, 2010 · 4 comments
Assignees

Comments

@loewis
Copy link
Mannequin

loewis mannequin commented Apr 21, 2010

BPO 8479
Nosy @loewis, @vstinner, @davidmalcolm
Superseder
  • bpo-8380: Port of the gdb7 debugging hooks to the "py3k" branch
  • Files
  • test_gdb.txt
  • 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/davidmalcolm'
    closed_at = <Date 2010-04-21.15:23:31.766>
    created_at = <Date 2010-04-21.06:17:03.961>
    labels = []
    title = 'test_gdb in Python3: No stack'
    updated_at = <Date 2010-04-21.15:23:31.765>
    user = 'https://github.com/loewis'

    bugs.python.org fields:

    activity = <Date 2010-04-21.15:23:31.765>
    actor = 'dmalcolm'
    assignee = 'dmalcolm'
    closed = True
    closed_date = <Date 2010-04-21.15:23:31.766>
    closer = 'dmalcolm'
    components = []
    creation = <Date 2010-04-21.06:17:03.961>
    creator = 'loewis'
    dependencies = []
    files = ['17019']
    hgrepos = []
    issue_num = 8479
    keywords = []
    message_count = 4.0
    messages = ['103802', '103831', '103846', '103852']
    nosy_count = 3.0
    nosy_names = ['loewis', 'vstinner', 'dmalcolm']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '8380'
    type = None
    url = 'https://bugs.python.org/issue8479'
    versions = ['Python 3.2']

    @loewis
    Copy link
    Mannequin Author

    loewis mannequin commented Apr 21, 2010

    test_gdb currently fails on 3k; some tests with a "No stack" message. I'll attach the full output, but would like this issue to focus on the "No stack" failures.

    @loewis loewis mannequin assigned davidmalcolm Apr 21, 2010
    @vstinner
    Copy link
    Member

    I may be related to bpo-8482 (compiler optimization level?).

    @vstinner
    Copy link
    Member

    The problem is that test_gdb is not compatible with Python3.

    test_gdb uses "print x" syntax instead of "print(x)", and "except XXX, xxx:" instead of "except XXX as xxx:". Note: "print range(1000)" => "print(list(range(1000)))".

    DebuggerOutput.run_gdb() should also convert the output to unicode, maybe using out = out.decode("ascii"); err = err.decode("ascii");.

    @vstinner vstinner changed the title test_gdb: No stack test_gdb in Python3: No stack Apr 21, 2010
    @davidmalcolm
    Copy link
    Member

    bpo-8380 contains a port of the code and tests to python 3; it's awaiting review.

    @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
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants