This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:bionic | |
RUN apt-get update | |
RUN apt-get install -y git wget gcc build-essential automake python | |
RUN mkdir /code | |
# build, install valgrind | |
RUN wget -O /code/valgrind.tar.bz2 https://sourceware.org/pub/valgrind/valgrind-3.16.0.tar.bz2 | |
RUN cd /code && \ | |
tar jxf /code/valgrind.tar.bz2 && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Trace two variables and check if the offset/pointer value has grown beyond the end | |
# We assume/know that rl_point > rl_end is true as we use reverse debugging with rr | |
# We want to find the point were everything was okay. | |
# enter "interactive" python shell with 'pi' and exit after pasting with 'ctrl+d' | |
POINT_VAR_NAME = 'rl_point' | |
END_VAR_NAME = 'rl_end' | |
class bcolors: | |
FAIL = '\033[91m' |