Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

libFuzzer on windows

281 views
Skip to first unread message

Sujata Das

unread,
Aug 1, 2022, 4:23:13 PM8/1/22
to libf...@googlegroups.com

Hi,

 

I am trying to build and run libFuzzer based fuzzers that run on Ubuntu on Windows.

- On Ubuntu, I am using clang-11. I can build and run the fuzzers successfully.

- On Windows 10, I have VS 2019 installed with ASAN Sanitizer and CLang enabled. Build succeeds on Windows, but when I run the fuzzer, I get the following error message:

==9800==AddressSanitizer CHECK failed: C:\src\llvm_package_1100-final\llvm-project\compiler-rt\lib\asan\asan_rtl.cpp:401 "((!asan_init_is_running && "ASan init calls itself!")) != (0)" (0x0, 0x0)

    <empty stack>

This issue is systemic and not related to any specific fuzzer.

 

Any idea what could be wrong with my Windows environment and how that can be fixed?

 

Thanks,
Sujata Das

Jonathan Metzman

unread,
Aug 8, 2022, 8:17:59 PM8/8/22
to Sujata Das, libf...@googlegroups.com
I don't know how this is happening. It might be a good idea to reach out to visual studio as not many of us here at Google are windows experts.
If you could give me a reproducer, it would might help.

1. Is this issue caused when using clang-cl or visual studio's c++ compiler.
2. I suspect this issue doesn't have to do with libFuzzer and is ASAN-specific (in which case we may need to put you in touch with the ASAN on Windows experts).
Could you add a main function that passes an offending testcase to LLVMFuzzerTestOneInput and see if the issue persists? If so then it is just an ASAN issue.

--
You received this message because you are subscribed to the Google Groups "libfuzzer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libfuzzer+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/libfuzzer/77F59FBA-89FE-4441-8FA5-32C0816816F2%40adobe.com.
Reply all
Reply to author
Forward
0 new messages