Skip to content

[BUG] Fuzz tests failure in profiling with labels #958

@morrisonlevi

Description

@morrisonlevi

Describe the bug
This has triggered in CI and also for me locally:

Error: 
panicked at profiling/src/internal/profile/fuzz_tests.rs:365:13:
assertion `left == right` failed
  left: [Label { key: "\0ܔ", str: None, num: 0, num_unit: None }, Label { key: "\0\0", str: None, num: 0, num_unit: None }]
 right: [Label { key: "\0\0", str: Some(""), num: 1125900712148992, num_unit: Some("") }, Label { key: "\0ܔ", str: Some(""), num: 0, num_unit: Some("") }]
Error: 
panicked at profiling/src/internal/profile/fuzz_tests.rs:359:13:
assertion `left == right` failed
  left: [Label { key: "", str: None, num: 0, num_unit: None }, Label { key: "\0I", str: None, num: 0, num_unit: None }]
 right: [Label { key: "\0I", str: None, num: 0, num_unit: Some("") }, Label { key: "", str: Some(""), num: 0, num_unit: Some("") }]

To Reproduce
Steps to reproduce the behavior:

  1. Check out a recent version of the repo.
  2. Run cargo +nightly bolero test -p datadog-profiling internal::profile::fuzz_tests::test_fuzz_add_sample
  3. Wait forever, it'll probably find it too

Expected behavior
Don't expect a fuzz test failure here.

Errors or warnings received
None, just a fuzz failure.

Metadata

Metadata

Assignees

Labels

profilingRelates to the profiling* modules.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions