qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd] Issue 25164 in oss-fuzz: qemu: Fuzzing build failure


From: Paolo Bonzini
Subject: Re: [Fwd] Issue 25164 in oss-fuzz: qemu: Fuzzing build failure
Date: Wed, 26 Aug 2020 17:15:42 +0200

On Wed, Aug 26, 2020 at 3:56 PM Alexander Bulekov <alxndr@bu.edu> wrote:
>
> On 200825 0958, Paolo Bonzini wrote:
> > Il lun 24 ago 2020, 00:58 Alexander Bulekov <alxndr@bu.edu> ha scritto:
> >
> > > Hi Paolo,
> > > Our oss-fuzz builds started failing, after the meson merge. I think I
> > > tracked down the issues:
> > > 1.) Looking at the build-log here:
> > >
> > > https://oss-fuzz-build-logs.storage.googleapis.com/log-d43d402c-1ce5-4422-b3db-ccbf83a862a0.txt
> > > The error happens at link-time. Re-running the build with V=1:
> > > "/usr/bin/ld" ...
> > > --whole-archive /usr/local/lib/clang/12.0.0/.../libclang_rt.asan-x86_64.a 
> > > \
> > > --start-group ..... -T /src/qemu/tests/qtest/fuzz/fork_fuzz.ld  \
> > > -wrap qtest_inb -wrap qtest_inw ..... --end-group .....
> > >
> >
> > I think you can put everything into a response for and include it with
> > @fuzz.cmd in the command line.
>
> I don't think I understand. Should I provide the entire linker command,
> by email?

You can create a file fuzz.cmd.in containing

-Wl,-T,@FUZZING_LINKER_SCRIPT@
-Wl,-wrap,qtest_inb
-Wl,-wrap,qtest_inw

etc.

Create a fuzz.cmd that includes the correct path to fuzz.ld in the
source tree (using configure_file) and pass this file to the linker
using @tests/libqtest/fuzz/fuzz.cmd in link_args (and also
link_depends). See libblock and block for an example.

Paolo

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]