Skip to content

Misoptimization, crasher 1957 #2692

@proppy

Description

@proppy

Repro:

bazel test -c opt  //xls/fuzzer:run_crasher_test_2025-07-25_1957

Error message:

E0725 08:01:12.260726     385 sample_runner.cc:824] Exception when running sample: INVALID_ARGUMENT: SampleError: Result miscompare for sample 0:
args: bits[32]:0x0; [bits[40]:0x1_0000_0000, bits[40]:0x8_4440_1080, bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4, bits[40]:0xf8_ebb1_e710, bits[40]:0x60_0408_8102, bits[40]:0x22_0000_006a]; bits[19]:0x6_4ffc; bits[38]:0x3f_ffff_ffff
evaluated opt IR (JIT), evaluated opt IR (interpreter), simulated, simulated_ng =
   ([bits[40]:0x8_4440_1080, bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4], [bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4, bits[40]:0xf8_ebb1_e710, bits[40]:0x60_0408_8102, bits[40]:0x22_0000_006a, bits[40]:0x1_0000_0000, bits[40]:0x8_4440_1080])
evaluated unopt IR (JIT), evaluated unopt IR (interpreter), interpreted DSLX =
   ([bits[40]:0x8_4440_1080, bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4], [bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4])
Error: INVALID_ARGUMENT: SampleError: Result miscompare for sample 0:
args: bits[32]:0x0; [bits[40]:0x1_0000_0000, bits[40]:0x8_4440_1080, bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4, bits[40]:0xf8_ebb1_e710, bits[40]:0x60_0408_8102, bits[40]:0x22_0000_006a]; bits[19]:0x6_4ffc; bits[38]:0x3f_ffff_ffff
evaluated opt IR (JIT), evaluated opt IR (interpreter), simulated, simulated_ng =
   ([bits[40]:0x8_4440_1080, bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4], [bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4, bits[40]:0xf8_ebb1_e710, bits[40]:0x60_0408_8102, bits[40]:0x22_0000_006a, bits[40]:0x1_0000_0000, bits[40]:0x8_4440_1080])
evaluated unopt IR (JIT), evaluated unopt IR (interpreter), interpreted DSLX =
   ([bits[40]:0x8_4440_1080, bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4], [bits[40]:0x55_5555_5555, bits[40]:0x3f_3a33_e2b8, bits[40]:0x21_1054_3246, bits[40]:0x2, bits[40]:0x83_0200_00ff, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4, bits[40]:0x2_8208_26c4])
=== Source Location Trace: ===
xls/fuzzer/cpp_sample_runner.cc:119
third_party/xls/fuzzer/run_fuzz.cc:233

Metadata

Metadata

Labels

bugSomething isn't working or is incorrectfuzz

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions