srg-imperial / SnapFuzz

MIT License
66 stars 5 forks source link

SaBRe Crash When SnapFuzz Start Fork Server #3

Open flysoar opened 1 year ago

flysoar commented 1 year ago

Hi! SnapFuzz is a meaningful work.

After I build it with the help of README, I use it to test the programs in ProFuzzBench. But it crashed when SnapFuzz start fork server. I used gdb to debug it and found that sabre crashed, as shown in image below.

image

image

The args is /home/ubuntu/afl-fuzz-noaffin-long -A ./libsnapfuzz.so -m 512 -i experiments/in-dtls/ -P DTLS12 -q 3 -s 3 -E -K -R -o out experiments/tinydtls/tests/dtls-server. And my environment is Ubuntu2004.

I have tried sabre with the lasted version according to https://github.com/srg-imperial/SnapFuzz-artefact/issues/1, but the problem still exists.

Due to my lack of knowledge in binary rewriting, I am having difficulty solving this problem on my own.

I would very appreciate your help.

xuesong-bai commented 1 year ago

HI! @flysoar I encountered the same problem when I tried to run SnapFuzz artifact as well. At last, I figured out a temporary workaround that might help you in this case.

Workaround:

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
make -j

Then the artifact should be working. I run the test on dns and dicom, it works fine on my machine.

Please let me know if anything I can help.

Thanks.

Note: The snapfuzz branch has plugins that master branch doesn't have, but snapfuzz branch hasn't fixed the issue. I tried to merge two branches, but the final version cannot be compiled successfully. Maybe someone can take a look when have time.