-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such file or directory: '../afl_out/cov/lcov/trace.lcov_info_final' #31
Comments
are you sure that you've added |
By default, afl-cov tries to determine whether the fuzzed binary has been compiled with '-fprofile-arcs -ftest-coverage' by using readelf. It looks to me as though the lcov command is throwing an error. Can you manually execute the two lcov commands you have above from the terminal and post any errors: /usr/bin/lcov --no-checksum --capture --directory ../ --output-file ../afl_out/cov/lcov/trace.lcov_info |
Also, the very first lcov command generated an error in your initial bug report - try executing the manually and post any errors. I'll update afl-cov to detect whatever error condition lcov seems to be warning about: /usr/bin/lcov --no-checksum --capture --initial --directory ../ --output-file ../afl_out/cov/lcov/trace.lcov_base |
@mrash I'm getting the same error here is the output of the two commands on my system original command to launch afl-cov
1st command and output below
2nd command error
|
I just had the same problem and I think I have figured out what was wrong for me. To make this work I just used |
I think i ended up fixing this btw. I ended up compiling a newer version of gcc and replacing 4.8 that was installed via apt-get. That fixed the issue. |
@PaulCher That is an excellent point about using _exit() vs. exit() and the ELF destructors. There might be other factors too, if upgrading gcc seems to fix the problem as noted by @grumpycatfb. Not sure what afl-cov can do to minimize this sort of behavior though. |
Hi @mrash , I meet the same problem. Here is the 1st command and output below:
The version of lcov on my computer is 1.13. |
@zzzssseee how is this the same problem? it looks very different to me. |
@umlaeute I don't know why this happened. When I tried to run afl-cov , I got the same error :
So I tried to find the cause of the problem and then entered the above command as you see,and then got the “out of memory” error. |
I have run into this error a number of times, and have figured out that it is exclusively caused by a failure in compiling with gcov profiling support. The following fixed this issue:
|
I come across the same problems. Those who can run the afl-cov successfully. Could you please share your system and compiler version or any specific configurations. Many Thanks |
@spencerwuwu Thank you very much Actually, I don't have so much time and I have to catch the deadline. Thus, I hope those who can run the afl-cov successfully to provide me the specific version of the compiler, system and binary version so that I can try this tool now. Many Thanks. |
Ok, can you try the latest afl-cov from git master? This commit will likely help: 7d0b064 since afl-cov will log command errors to the afl-cov.log logfile, so if lcov is having a problem then the error should appear in this file. |
I'd like to share my experience in this matter. |
I had the same problem, but managed to solve it because of hint from @hullale comment. In my case the biggest flaw was that .gcda files were not generated in the same directory that .gcno and <afl-gcov_binary>. I solved it by producing my gcov binary (<afl-gcov_binary>) with afl-gcc -fprofile-arcs -ftest-coverage in the same folder (folder_with_source_code) where my source code (only the main .c file not all of dependency code) and <afl_binary> (on which I used afl-fuzz) were and made sure that all *.gcno and *.gcda files were generated there too. ( *.gcda files are generated only when you execute afl-cov) I used command:
In my case afl-fuzzer take input from binary rerouted to stdin that's why ".../folder_with_source_code/<afl-gcov_binary> < AFL_FILE " |
same. Would afl-cov add support to clang? Many thx! |
Hey, I run into the same problem when trying to use afl-cov.
This is the output I get from running the lcov command
2nd command:
I have GCC (Ubuntu 7.5.0-3ubuntu1~18.04) and LCOV(1.13) versions. Could someone suggest me where I am going wrong? |
@r-2007 would you mind posting text-output of the error-messages, rather than images? it makes it so much easier to search for. |
I just had this problem too. |
Hello,
I am running the newest version of
afl-cov
andafl
on64-bit Ubuntu 14.04
. I followed the tutorial here, and I am able to successfully fuzz a test code withafl
.However, when I tried to run
afl-cov
, I got the following error:Could anyone shed some lights on what/how does this error happen? Thank you!
The text was updated successfully, but these errors were encountered: