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

bytes.fromhex('') raises SystemError #46265

Closed
pitrou opened this issue Jan 30, 2008 · 3 comments
Closed

bytes.fromhex('') raises SystemError #46265

pitrou opened this issue Jan 30, 2008 · 3 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@pitrou
Copy link
Member

pitrou commented Jan 30, 2008

BPO 1973
Nosy @pitrou, @tiran
Files
  • fromhex.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 = None
    closed_at = <Date 2008-01-30.11:28:52.772>
    created_at = <Date 2008-01-30.10:59:37.745>
    labels = ['interpreter-core', 'type-crash']
    title = "bytes.fromhex('') raises SystemError"
    updated_at = <Date 2008-01-30.11:28:52.770>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2008-01-30.11:28:52.770>
    actor = 'christian.heimes'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-01-30.11:28:52.772>
    closer = 'christian.heimes'
    components = ['Interpreter Core']
    creation = <Date 2008-01-30.10:59:37.745>
    creator = 'pitrou'
    dependencies = []
    files = ['9329']
    hgrepos = []
    issue_num = 1973
    keywords = ['patch']
    message_count = 3.0
    messages = ['61855', '61858', '61860']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'christian.heimes']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue1973'
    versions = ['Python 3.0']

    @pitrou
    Copy link
    Member Author

    pitrou commented Jan 30, 2008

    >>> bytearray.fromhex('')
    bytearray(b'')
    >>> bytes.fromhex('')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    SystemError: Objects/stringobject.c:3131: bad argument to internal function

    @pitrou pitrou added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jan 30, 2008
    @pitrou
    Copy link
    Member Author

    pitrou commented Jan 30, 2008

    Here is a patch. Unittest should be covered by removing the test_bytes
    workaround mentioned in bpo-1972 :)

    @tiran
    Copy link
    Member

    tiran commented Jan 30, 2008

    Thanks! :)

    Fixed in r60439

    @tiran tiran closed this as completed Jan 30, 2008
    @tiran tiran added the type-crash A hard crash of the interpreter, possibly with a core dump label Jan 30, 2008
    @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
    interpreter-core (Objects, Python, Grammar, and Parser dirs) type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants