Skip to content

Test Windows configuration with Valgrind using Wine, or Winelib #8426

Closed

Description

@mstewartgallus

Valgrind does not run under Windows so there are two options for testing the Windows configuration of Rust with Valgrind: on a Valgrind supported platform; cross-compile to Windows, and then run the build using Wine, or compile under the Windows configuration using Winelib.

I'm not really sure which approach would be easiest. I have struggled for a while with both approaches. Personally, I think it is most logical to compile using Winelib though.

I would really appreciate if some who are more knowledgeable about the build system like @graydon, or @pnkfelix could give me some help with this.

Also, I do not know how best to expose these option to configuration.

Activity

  1. emberian commented on Dec 23, 2013

    @emberian
    Contributor

    cc @klutzy @vadimcn @brson

    Testing our memory-correctness on Windows seems pretty important to me. Nominating.

  2. pnkfelix commented on Jan 9, 2014

    @pnkfelix
    Contributor

    just a bug, denominating.

  3. vadimcn commented on Jan 9, 2014

    @vadimcn
    Contributor

    cc #749

  4. steveklabnik commented on Sep 3, 2015

    @steveklabnik
    Contributor

    @retep998 what do you think here? What's the current state of this, and shouldn't we be using some sort of windows-native tooling rather than valgrind?

  5. retep998 commented on Sep 3, 2015

    @retep998
    Contributor

    What Windows native tooling? The only thing I know of is LLVM's sanitizers.

    Maybe there's something good on this list: https://en.wikipedia.org/wiki/Memory_debugger

  6. steveklabnik commented on Sep 3, 2015

    @steveklabnik
    Contributor

    The only thing I know of is LLVM's sanitizers.

    Question answered :)

  7. alexcrichton commented on Aug 1, 2016

    @alexcrichton
    Member

    This is a pretty ancient bug, and now that we have a ton of Windows automation set up, I doubt we're going to do this. We barely even run valgrind on Linux, much less OSX, much less Windows, so I don't think that this is particularly pressing.

  8. added a commit that references this issue on Aug 21, 2026
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

    O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions