Created
August 26, 2022 20:31
-
-
Save erplsf/f1395abbf40f5373f35f6501c3b8de7d to your computer and use it in GitHub Desktop.
reproducible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
binary was built under nixos, against 8bcb962ada2ea5cfeeff303e1063937ee13af6ad. | |
to reproduce: | |
1. `zig build-exe test.zig` | |
2. `valgrind ./test` | |
3. observe that there are no names of functions | |
4. `valgrind --tool=callgrind ./test` | |
5. `kcachegrind` | |
6. observe that the call stack doesn't show any names. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
pub fn main() !void { | |
var gpa = std.heap.GeneralPurposeAllocator(.{}){}; | |
defer _ = gpa.deinit(); | |
const allocator = gpa.allocator(); | |
const buffer = try allocator.alloc(u8, 100); | |
_ = buffer; | |
std.log.info("All your memory belongs to us.", .{}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
valgrind reports this version:
valgrind-3.19.0