oss-fuzz icon indicating copy to clipboard operation
oss-fuzz copied to clipboard

base-runner: bump python to 3.10

Open DavidKorczynski opened this issue 1 year ago • 6 comments

Fixes: https://github.com/google/oss-fuzz/issues/11419

DavidKorczynski avatar Dec 29 '23 15:12 DavidKorczynski

I guess an alternative would be to bump the base image to Ubuntu 22.04, similar to https://github.com/google/oss-fuzz/pull/6305 . However, that may be more of a breaking change, so maybe it is less painful by bumping to 24.04 in one go, in the future.

edit: Though, I guess changing the Ubuntu version may be blocked on https://github.com/google/clusterfuzz/issues/3290 ?

maflcko avatar Jan 05 '24 11:01 maflcko

@DavidKorczynski Anything we can do to help move this forward?

apollo13 avatar Feb 09 '24 14:02 apollo13

I guess an alternative would be to bump the base image to Ubuntu 22.04, similar to #6305 . However, that may be more of a breaking change, so maybe it is less painful by bumping to 24.04 in one go, in the future.

I think this would probably be preferred -- it would be nice to not fall to far behind the latest distro. But I'm not sure about the impact on all the projects.

DavidKorczynski avatar Feb 13 '24 00:02 DavidKorczynski

For reference, I did a quick try with Ubuntu 22.04, but it failed to compile honggfuzz. Not sure why, yet.

...
clang -c -O3 -funroll-loops -D_HF_LINUX_NO_BFD -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Werror -Wno-format-truncation -Wno-override-init -I. -D_FILE_OFFSET_BITS=64 -Wno-initializer-overrides -Wno-unknown-warning-option -Wno-gnu-empty-initializer -Wno-format-pedantic -Wno-gnu-statement-expression -mllvm -inline-threshold=2000 -D_HF_ARCH_LINUX -fPIC -fno-stack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0   -o libhfcommon/util.o libhfcommon/util.c
ar rcs libhfcommon/libhfcommon.a libhfcommon/files.o libhfcommon/log.o libhfcommon/ns.o libhfcommon/util.o
clang -o honggfuzz cmdline.o display.o fuzz.o honggfuzz.o input.o mangle.o report.o sanitizers.o socketfuzzer.o subproc.o linux/arch.o linux/bfd.o linux/perf.o linux/pt.o linux/trace.o linux/unwind.o libhfcommon/libhfcommon.a -pthread -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lm -L/usr/local/include -Wl,-Bstatic `pkg-config --libs --static libunwind-ptrace libunwind-generic` -lopcodes -lbfd -liberty -lz -Wl,-Bdynamic -lrt -ldl -lm -Wl,-Bstatic -lBlocksRuntime -Wl,-Bdynamic
/usr/bin/ld: /lib/x86_64-linux-gnu/libunwind-ptrace.a(_UPT_access_fpreg.o): relocation R_X86_64_32S against symbol `_UPT_reg_offset' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:295: honggfuzz] Error 1
The command '/bin/sh -c precompile_honggfuzz' returned a non-zero code: 2

maflcko avatar Apr 01 '24 13:04 maflcko

It will probably be a year before we update Ubuntu image

jonathanmetzman avatar Apr 03 '24 14:04 jonathanmetzman

@DavidKorczynski I took a slightly different approach at this in #12027.

Would you please take a look and let me know what you think whenever you get a chance?

Thanks!

DaveLak avatar Jun 04 '24 18:06 DaveLak