Skip to content

Not working in oss-fuzz #128

@ndmitchell

Description

@ndmitchell

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70230 shows that Starlark no longer works in oss-fuzz. The error is:

Step #3 - "compile-libfuzzer-address-x86_64": �[0m�[1m�[38;5;9merror[E0658]�[0m�[0m�[1m: `#[diagnostic]` attribute name space is experimental�[0m
Step #3 - "compile-libfuzzer-address-x86_64": �[0m   �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/rust/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.208/src/de/mod.rs:537:5�[0m
Step #3 - "compile-libfuzzer-address-x86_64": �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
Step #3 - "compile-libfuzzer-address-x86_64": �[0m�[1m�[38;5;12m537�[0m�[0m �[0m�[0m�[1m�[38;5;12m|�[0m�[0m �[0m�[0m    diagnostic::on_unimplemented(�[0m
Step #3 - "compile-libfuzzer-address-x86_64": �[0m    �[0m�[0m�[1m�[38;5;12m| �[0m�[0m    �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^�[0m
Step #3 - "compile-libfuzzer-address-x86_64": �[0m    �[0m�[0m�[1m�[38;5;12m|�[0m
Step #3 - "compile-libfuzzer-address-x86_64": �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: see issue #111996 <https://github.com/rust-lang/rust/issues/111996> for more information�[0m
Step #3 - "compile-libfuzzer-address-x86_64": �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mhelp�[0m�[0m: add `#![feature(diagnostic_namespace)]` to the crate attributes to enable�[0m
Step #3 - "compile-libfuzzer-address-x86_64": �[0m    �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: this compiler was built on 2024-02-11; consider upgrading it if it is out of date�[0m

So the compiler defaults to coming from February which no longer works with the latest version of serde. The right solution would be to use the most recent version of Rust. I don't know why oss-fuzz doesn't do that by default? CC @silvergasp who set this up originally and might have some ideas.

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