Skip to content

Valgrind suppression file #75675

Closed
Closed

Description

@AaronMichaux
BPO 31494
Nosy @terryjreedy, @skrah
Files
  • valgrind.log
  • 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 2017-09-22.18:12:48.691>
    created_at = <Date 2017-09-16.20:50:30.108>
    labels = ['interpreter-core', 'invalid']
    title = 'Valgrind suppression file'
    updated_at = <Date 2017-09-22.18:12:48.689>
    user = 'https://bugs.python.org/AaronMichaux'

    bugs.python.org fields:

    activity = <Date 2017-09-22.18:12:48.689>
    actor = 'skrah'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-09-22.18:12:48.691>
    closer = 'skrah'
    components = ['Interpreter Core']
    creation = <Date 2017-09-16.20:50:30.108>
    creator = 'Aaron Michaux'
    dependencies = []
    files = ['47140']
    hgrepos = []
    issue_num = 31494
    keywords = []
    message_count = 4.0
    messages = ['302353', '302759', '302760', '302761']
    nosy_count = 3.0
    nosy_names = ['terry.reedy', 'skrah', 'Aaron Michaux']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue31494'
    versions = ['Python 3.5']

    Activity

    1. AaronMichaux commented on Sep 16, 2017

      AaronMichauxmannequin
      MannequinAuthor

      The file "Misc/valgrind-python.supp" doesn't work on Linux x64, running Python3.5.2, when configured as such:

      --with-pydebug --with-valgrind --without-pymalloc

      Running the interpreter

      echo "x = 1; print(x)" | valgrind --tool=memcheck --leak-check=full --track-origins=yes --verbose --log-file=valgrind.log --suppressions=Misc/valgrind-python.supp /path/to/built/python3

      Gives the attached valgrind.log file. The tail of this file says:

      ==22828==
      ==22828== LEAK SUMMARY:
      ==22828== definitely lost: 0 bytes in 0 blocks
      ==22828== indirectly lost: 0 bytes in 0 blocks
      ==22828== possibly lost: 298,529 bytes in 690 blocks
      ==22828== still reachable: 605,872 bytes in 4,874 blocks
      ==22828== suppressed: 0 bytes in 0 blocks
      ==22828== Reachable blocks (those to which a pointer was found) are not shown.
      ==22828== To see them, rerun with: --leak-check=full --show-leak-kinds=all
      ==22828==
      ==22828== ERROR SUMMARY: 256 errors from 256 contexts (suppressed: 0 from 0)
      ==22828== ERROR SUMMARY: 256 errors from 256 contexts (suppressed: 0 from 0)

    2. added
      interpreter-core
      on Sep 16, 2017
    3. terryjreedy commented on Sep 22, 2017

      @terryjreedy
      Member

      3.5 only gets security fixes, and this does not seem to be a security issue. Please retest with 3.6 or 3.7.

    4. skrah commented on Sep 22, 2017

      skrahmannequin
      Mannequin

      The suppressions are mainly for "invalid access" due to a gc trick.

      The primary goal is to be definitely-lost-clean.

      I would say it works as expected.

    5. skrah commented on Sep 22, 2017

      skrahmannequin
      Mannequin

      Also, I don't think --with-pydebug works well with valgrind.

      It's either:

      1. --with-pydebug
      2. CFLAGS="-O0 -g" --with-valgrind
      3. CFLAGS="-O0 -g" --without-pymalloc

      Combining 2) and 3) probably does not hurt, but is not necessary.

    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-core

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions