Skip to content

Commit

Permalink
pest: remove +nightly from cargo fuzz build (#11654)
Browse files Browse the repository at this point in the history
this should hopefully resolve the recent build issue:
```
Step #5: warning: /workspace/out/libfuzzer-coverage-x86_64/dumps/parser.14845295624977050394_0.profraw: unsupported instrumentation profile format version
Step #5: error: no profile can be merged
Step #5: [2024-02-28 06:09:14,766 INFO] Finding shared libraries for targets (if any).
Step #5: [2024-02-28 06:09:14,775 INFO] Finished finding shared libraries for targets.
Step #5: error: parser: Failed to load coverage: No such file or directory
Step #5: error: Could not load coverage information
Step #5: error: No such file or directory: Could not read profile data!
Step #5: Traceback (most recent call last):
Step #5:   File "/usr/local/bin/profraw_update.py", line 129, in <module>
Step #5:     sys.exit(main())
Step #5:   File "/usr/local/bin/profraw_update.py", line 120, in main
Step #5:     profraw_latest = upgrade(profraw_base, sect_prf_cnts, sect_prf_data)
Step #5:   File "/usr/local/bin/profraw_update.py", line 87, in upgrade
Step #5:     relativize_address(data, offset + 16, dataref, sect_prf_cnts, sect_prf_data)
Step #5:   File "/usr/local/bin/profraw_update.py", line 35, in relativize_address
Step #5:     value = struct.unpack('Q', data[offset:offset + 8])[0]
Step #5: struct.error: unpack requires a buffer of 8 bytes
```
  • Loading branch information
tomtau committed Mar 1, 2024
1 parent b45ceb9 commit 1dcc6c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/pest/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
################################################################################
cd $SRC/pest/meta
RUSTFLAGS="" cargo bootstrap
cargo +nightly fuzz build
cargo fuzz build
cd $SRC/pest/grammars
cargo +nightly fuzz build
cargo fuzz build
cp $SRC/pest/meta/fuzz/target/x86_64-unknown-linux-gnu/release/parser $OUT/
cp $SRC/pest/grammars/fuzz/target/x86_64-unknown-linux-gnu/release/toml $OUT/
cp $SRC/pest/grammars/fuzz/target/x86_64-unknown-linux-gnu/release/json $OUT/
Expand Down

0 comments on commit 1dcc6c5

Please sign in to comment.