Closed icefoxen closed 3 years ago
Thanks for the report. Note that the instructions specifically say "Go to a bash shell".
Ok. I looked at this and RNG_test is built with the following command...
(unzip -qo PractRand_0.93.zip -d build && cd build && cat ../practrand-0.93-bigbuffer.patch | patch -p0 && $(CXX) -std=c++14 -c src/*.cpp src/RNGs/*.cpp src/RNGs/other/*.cpp -O3 -Iinclude -pthread && ar rcs libPractRand.a *.o && $(CXX) -std=c++14 -o RNG_test tools/RNG_test.cpp libPractRand.a -O3 -Iinclude -pthread && cp RNG_test ..
It runs without issue for me, but if you are encountering memory corruption in RNG_test, then you should report the issue to the PractRand project.
I will add bash markers to the script, but I cannot fix memory corruption in RNG_test.
To be clear, I did not write a single line of code that gets compiled into RNG_test. It is entirely from the PractRand project.
Thank you! I'll do some more testing and forward it on to PractRand.
Hi, I was playing around with this and couldn't reproduce the results. Minor issue was that
runtests.sh
was missing the#!/bin/bash
at the beginning, so non-standard shells chokoe on it... but the bigger issue was that often tests aborted with a double-free, while being reported as successful. Example:I tracked the double-free down enough to this backtrace:
but unfortunately looking at
show_checkpoint()
didn't show anything obviously wrong and I don't have time to keep digging into this problem.Thank you for your work!
Platform: Debian 11 Linux, x86_64, gcc