We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80adb27 commit 9de6f9aCopy full SHA for 9de6f9a
2 files changed
Dockerfile
@@ -0,0 +1,8 @@
1
+FROM debian:bullseye-slim
2
+
3
+RUN apt-get update && apt-get install -y curl valgrind build-essential clang
4
+# Install Rust
5
+ENV RUST_VERSION=stable
6
+RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=$RUST_VERSION
7
+# Install cargo-valgrind
8
+RUN /bin/bash -c "source /root/.cargo/env && cargo install cargo-valgrind"
run-docker.sh
+#!/bin/sh
+NAME="valgrind:1.0"
+docker image inspect "$NAME" || docker build -t "$NAME" .
+docker run -it -v $PWD:/tmp -w /tmp valgrind:1.0
+# see https://github.com/jfrimmel/cargo-valgrind/pull/58/commits/1c168f296e0b3daa50279c642dd37aecbd85c5ff#L59
+# scan for double frees and leaks
+# VALGRINDFLAGS="--leak-check=yes --trace-children=yes" cargo valgrind test
0 commit comments