Skip to content
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

init_forkserver() crash #20

Closed
jonahmvp opened this issue May 17, 2022 · 3 comments
Closed

init_forkserver() crash #20

jonahmvp opened this issue May 17, 2022 · 3 comments

Comments

@jonahmvp
Copy link

Ran LightFTP tutorial exactly as described to fuzz with AFLNet on WSL2 Kali Linux with docker desktop wsl integration. Running into the following error. Wondering if this issue is happening on anyone else's end.

Command:
profuzzbench_exec_common.sh lightftp 1 results-lightftp aflnet out-lightftp-aflnet "-P FTP -D 10000 -q 3 -s 3 -K" 60 5

Docker logs:

/home/ubuntu/experiments/LightFTP/Source/Release
out-lightftp-aflnet
afl-fuzz 2.56b by lcamtuf@google.com
[+] You have 4 CPU cores and 6 runnable tasks (utilization: 150%).
[!] WARNING: Not binding to a CPU core (AFL_NO_AFFINITY set).
[] Checking core_pattern...
[
] Setting up output directories...
[] Scanning '/home/ubuntu/experiments/in-ftp'...
[+] No auto-generated dictionary tokens to reuse.
[
] Creating hard links for all input files...
[] Loading extra dictionary from '/home/ubuntu/experiments/ftp.dict' (level 0)...
[+] Loaded 32 extra tokens, size range 3 B to 4 B.
[
] Validating target binary...
[] Attempting dry run with 'id:000000,orig:ftp_requests_full_anonymous.raw'...
[
] Spinning up the fork server...

[-] Whoops, the target binary crashed suddenly, before receiving any input
    from the fuzzer! Since it seems to be built with ASAN and you have a
    restrictive memory limit configured, this is expected; please read
    docs/notes_for_asan.txt for help.

[-] PROGRAM ABORT : Fork server crashed with signal 6
         Location : init_forkserver(), afl-fuzz.c:3064

rm: cannot remove '/home/ubuntu/experiments/LightFTP/Source/Release/out-lightftp-aflnet/cov_over_time.csv': No such file or directory
rm: cannot remove '/home/ubuntu/fftplog': No such file or directory
stat: cannot stat '/home/ubuntu/experiments/LightFTP/Source/Release/out-lightftp-aflnet//replayable-queue/.raw': No such file or directory
rm: cannot remove '/home/ubuntu/fftplog': No such file or directory
/home/ubuntu/experiments/cov_script: line 40:    39 Segmentation fault      $replayer $f FTP $pno 1 > /dev/null 2>&1
stat: cannot stat '/home/ubuntu/experiments/LightFTP/Source/Release/out-lightftp-aflnet//replayable-queue/id
': No such file or directory
/home/ubuntu/experiments/cov_script: line 62:    91 Segmentation fault      $replayer $f FTP $pno 1 > /dev/null 2>&1
stat: cannot stat '/home/ubuntu/experiments/LightFTP/Source/Release/out-lightftp-aflnet//replayable-queue/id*': No such file or directory
out-lightftp-aflnet/
out-lightftp-aflnet/replayable-crashes/
out-lightftp-aflnet/replayable-hangs/
out-lightftp-aflnet/replayable-new-ipsm-paths/
out-lightftp-aflnet/replayable-queue/
out-lightftp-aflnet/.cur_input
out-lightftp-aflnet/cov_over_time.csv
out-lightftp-aflnet/regions/
out-lightftp-aflnet/regions/ftp_requests_full_anonymous.raw
out-lightftp-aflnet/regions/ftp_requests_full_normal.raw
out-lightftp-aflnet/cov_html/
out-lightftp-aflnet/cov_html/index.x_malloc.c.html
out-lightftp-aflnet/cov_html/index.ftpserv.c.html
out-lightftp-aflnet/cov_html/index.main.c.html
out-lightftp-aflnet/cov_html/index.cfgparse.c.html
out-lightftp-aflnet/cov_html/index.html
out-lightftp-aflnet/plot_data
out-lightftp-aflnet/queue/
out-lightftp-aflnet/queue/id:000000,orig:ftp_requests_full_anonymous.raw
out-lightftp-aflnet/queue/id:000001,orig:ftp_requests_full_normal.raw
out-lightftp-aflnet/queue/.state/
out-lightftp-aflnet/queue/.state/variable_behavior/
out-lightftp-aflnet/queue/.state/redundant_edges/
out-lightftp-aflnet/queue/.state/auto_extras/
out-lightftp-aflnet/queue/.state/deterministic_done/

@thuanpv
Copy link
Collaborator

thuanpv commented May 17, 2022

Thanks for reporting this. We have tested AFLNet and ProFuzzBench on Ubuntu only and unfortunately we don't have any plan to extend the support to other platforms due to our limited resources. Have you tried to run some experiments on Ubuntu?

@rnatella
Copy link
Collaborator

Hi, you can try by removing the memory limit, using the option "-m none"

@jonahmvp
Copy link
Author

Thanks for the response, got it working by removing the memory limit as instructed by @rnatella !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants