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

Python 2.x breaks with address sanitizer #68249

Closed
hannob mannequin opened this issue Apr 26, 2015 · 2 comments
Closed

Python 2.x breaks with address sanitizer #68249

hannob mannequin opened this issue Apr 26, 2015 · 2 comments
Labels
type-feature A feature request or enhancement

Comments

@hannob
Copy link
Mannequin

hannob mannequin commented Apr 26, 2015

BPO 24061
Nosy @benjaminp, @hannob
Files
  • python-2.7.9-workaround-asan.diff: patch / address sanitizer workaround
  • 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 2015-04-27.00:35:05.899>
    created_at = <Date 2015-04-26.13:17:30.067>
    labels = ['type-feature']
    title = 'Python 2.x breaks with address sanitizer'
    updated_at = <Date 2015-04-27.00:35:05.801>
    user = 'https://github.com/hannob'

    bugs.python.org fields:

    activity = <Date 2015-04-27.00:35:05.801>
    actor = 'python-dev'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-04-27.00:35:05.899>
    closer = 'python-dev'
    components = []
    creation = <Date 2015-04-26.13:17:30.067>
    creator = 'hanno'
    dependencies = []
    files = ['39208']
    hgrepos = []
    issue_num = 24061
    keywords = ['patch']
    message_count = 2.0
    messages = ['242055', '242088']
    nosy_count = 3.0
    nosy_names = ['benjamin.peterson', 'python-dev', 'hanno']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue24061'
    versions = ['Python 2.7']

    @hannob
    Copy link
    Mannequin Author

    hannob mannequin commented Apr 26, 2015

    Right now it is not possible to build python 2.7.9 with address sanitizer. This issue has been worked around for python 3 in bug bpo-18596 by marking some functions with attributes to tell address sanitizer to ignore them.

    I have attached a patch that will apply the same workaround to python 2.7. I'd apprechiate if this could be applied before the next python 2 release. Although it's the "old" python 2 version I think this is important enough to be backported.

    @hannob hannob mannequin added the type-feature A feature request or enhancement label Apr 26, 2015
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Apr 27, 2015

    New changeset 4234b0dd2a54 by Benjamin Peterson in branch '2.7':
    allow 2.7 to be built with asan (closes bpo-24061)
    https://hg.python.org/cpython/rev/4234b0dd2a54

    @python-dev python-dev mannequin closed this as completed Apr 27, 2015
    @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
    type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants