debug info audit - many virtual memory addresses have strange source locations #20989
Labels
backend-llvm
The LLVM backend outputs an LLVM IR Module.
bug
Observed behavior contradicts documented or intended behavior
debug-info
Debug information of binary generated by Zig is not as expected.
fuzzing
Milestone
Extracted from #20958.
This problem is very noticeable with the new fuzz web interface, however, it is probably an old existing issue.
In the following screenshot it looks like returning from the function never happened, which should be impossible, given that it did get to the struct initialization expression:

In this one, one of the switch prong edges is missing a point of interest (

.state = .pipe;
):For a more concrete example, here's a zig source file:
Let's look at the dump-cov output:
In particular, some source locations go backwards as the PC marches forwards, and they should not do that. It should not go forward a line then backward a line. If you look at the UI it shows a green dot in a location that it should not:

Above, it shows a green dot next to
@panic
when it definitely has not hit that line yet. Those two dots correspond to the lines above ending in32:41
, which you can see are out of order. Probably that point of interest should be the end curly brace of the function.Related:
-OReleaseSafe
breaks fuzzing entry points feature; incorrect already-sorted assumption #20990The text was updated successfully, but these errors were encountered: