Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-1116

Consider running tests with MallocScribble=1 on osx

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: unversioned
    • Fix Version/s: unversioned
    • Component/s: Coin (obsolete)
    • Labels:
    • Commits:
      743af4393d38a2f942904da05e7f8bc0a2d25b6c

      Description

      Setting MallocScribble=1 in the environment enables malloc debugging, which helps catch use-after-free, an often hard-to-reproduce sort of crash. See for instance https://codereview.qt-project.org/#/c/183740/2 which addresses a problem which from some quick history digging may have been lurking since around July. With MallocScribble enabled, this test crashes reliably.

      See https://developer.apple.com/library/content/documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html for more information.

      There may be a performance cost involved in setting this, so it would need some care taken, but I think that the added benefit (in spotting bugs like this early) could be worthwhile.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            aakeskimo Aapo Keskimölö
            Reporter:
            w00t Robin Burchell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes