From 02bce71cab92f5d95734599d65837cb2fbcfa373 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 25 Oct 2021 00:53:12 +0200 Subject: mtrace: init at 2.33-50 `mtrace(1)` is a small Perl script that interprets and provides human-readable output for `malloc(3)` traces. Even though this is actually part of `glibc` itself I decided to place this into its own package. The main reason for this is that this script has a runtime dependency on Perl which would complicate `stdenv` bootstrapping since we'd have to compile another Perl that doesn't depend on the bootstrap tools that is used as runtime dependency for the stage2 glibc. Since this is only a dev/debugging tool, splitting this up seemed like a reasonable choice to me. On a leaking C program, this can be used like this: $ env MALLOC_TRACE=$(pwd)/trace ./a.out $ ./result/bin/mtrace ./trace Memory not freed: ----------------- Address Size Caller 0x0000000001875690 0x4 at 0x401151 Closes #141924 --- pkgs/development/libraries/glibc/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/development/libraries/glibc/common.nix') diff --git a/pkgs/development/libraries/glibc/common.nix b/pkgs/development/libraries/glibc/common.nix index a715ba752ec1b..580f989c53cce 100644 --- a/pkgs/development/libraries/glibc/common.nix +++ b/pkgs/development/libraries/glibc/common.nix @@ -198,7 +198,7 @@ stdenv.mkDerivation ({ BASH_SHELL = "/bin/sh"; # Used by libgcc, elf-header, and others to determine ABI - passthru = { inherit version; }; + passthru = { inherit version; minorRelease = version; }; } // (removeAttrs args [ "withLinuxHeaders" "withGd" ]) // -- cgit 1.4.1