Skip to content

fuzzer failing to link #1961

@johannkoenig

Description

@johannkoenig

libvpx currently builds asan, msan, and another fuzzer. The first two are still building, but the last one just started having a linking error and I'm not sure what's going on. The part that is failing to link has not been changed recently and I'm not sure how it could be changed to induce the error I'm seeing.

Because the other fuzzer configurations are building, this looks like a toolchain issue to me.

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11437

Step #21: CC=clang
Step #21: CXX=clang++
Step #21: CFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,unsigned-integer-overflow,vla-bound,vptr -fno-sanitize-recover=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,vla-bound,vptr -fsanitize=fuzzer-no-link
Step #21: CXXFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,unsigned-integer-overflow,vla-bound,vptr -fno-sanitize-recover=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,vla-bound,vptr -fsanitize=fuzzer-no-link -stdlib=libc++
<...>
Step #21: + LDFLAGS='-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,unsigned-integer-overflow,vla-bound,vptr -fno-sanitize-recover=bool,array-bounds,float-divide-by-zero,function,integer-divide-by-zero,return,shift,signed-integer-overflow,vla-bound,vptr -fsanitize=fuzzer-no-link -stdlib=libc++'
Step #21: + LD=clang
Step #21: + /src/libvpx/configure --disable-unit-tests --size-limit=12288x12288 --extra-cflags=-DVPX_MAX_ALLOCABLE_MEMORY=1073741824 --disable-webm-io --enable-debug
<...>
Step #21: [LD] vpxenc
Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFviiPiE[_ZTIFviiPiE]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info' Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFivE[_ZTIFivE]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info'
Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFiPKcE[_ZTIFiPKcE]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info' Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFiPKcS0_E[_ZTIFiPKcS0_E]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info'
Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFiiE[_ZTIFiiE]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info' Step #21: third_party/libyuv/source/planar_functions.cc.o:(.rodata._ZTIFvPKhiPhiiiE[_ZTIFvPKhiPhiiiE]+0x0): more undefined references to vtable for __cxxabiv1::__function_type_info' follow
Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFviiPiE[_ZTIFviiPiE]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info' Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFivE[_ZTIFivE]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info'
Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFiPKcE[_ZTIFiPKcE]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info' Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFiPKcS0_E[_ZTIFiPKcS0_E]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info'
Step #21: third_party/libyuv/source/cpu_id.cc.o:(.rodata._ZTIFiiE[_ZTIFiiE]+0x0): undefined reference to vtable for __cxxabiv1::__function_type_info' Step #21: third_party/libyuv/source/planar_functions.cc.o:(.rodata._ZTIFvPKhiPhiiiE[_ZTIFvPKhiPhiiiE]+0x0): more undefined references to vtable for __cxxabiv1::__function_type_info' follow
Step #21: clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
Step #21: make[1]: *** [vpxdec] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions