Skip to content

Instantly share code, notes, and snippets.

@tpoechtrager
Created October 23, 2015 14:23
Show Gist options
  • Save tpoechtrager/6537a058dfb4d587fff4 to your computer and use it in GitHub Desktop.
Save tpoechtrager/6537a058dfb4d587fff4 to your computer and use it in GitHub Desktop.
$ valgrind ld -demangle -dynamic -arch arm64 -iphoneos_version_min 8.4.0 -syslibroot [...] -o a.out test.o -lSystem
==32068== Memcheck, a memory error detector
==32068== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==32068== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==32068== Command: ld -demangle -dynamic -arch arm64 -iphoneos_version_min 8.4.0 -syslibroot [...] -o a.out test.o -lSystem
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463)
==32068== by 0x4397B8: Options::reconfigureDefaults() (Options.cpp:4168)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x4397BB: Options::reconfigureDefaults() (Options.cpp:4168)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463)
==32068== by 0x43A97E: Options::reconfigureDefaults() (Options.cpp:4510)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43A981: Options::reconfigureDefaults() (Options.cpp:4510)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463)
==32068== by 0x43AAF6: Options::reconfigureDefaults() (Options.cpp:4552)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43AAF9: Options::reconfigureDefaults() (Options.cpp:4552)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463)
==32068== by 0x43AB27: Options::reconfigureDefaults() (Options.cpp:4556)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43AB2A: Options::reconfigureDefaults() (Options.cpp:4556)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x443DBA: Options::min_iOS(ld::IOSVersionMin) (Options.cpp:1474)
==32068== by 0x43AD73: Options::reconfigureDefaults() (Options.cpp:4611)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43AD76: Options::reconfigureDefaults() (Options.cpp:4611)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463)
==32068== by 0x43B11E: Options::reconfigureDefaults() (Options.cpp:4678)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43B121: Options::reconfigureDefaults() (Options.cpp:4678)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463)
==32068== by 0x43B31F: Options::reconfigureDefaults() (Options.cpp:4724)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43B322: Options::reconfigureDefaults() (Options.cpp:4724)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463)
==32068== by 0x43B5D8: Options::reconfigureDefaults() (Options.cpp:4780)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43B5DB: Options::reconfigureDefaults() (Options.cpp:4780)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463)
==32068== by 0x43B8EF: Options::reconfigureDefaults() (Options.cpp:4835)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43B8F2: Options::reconfigureDefaults() (Options.cpp:4835)
==32068== by 0x430CE6: Options::Options(int, char const**) (Options.cpp:205)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43FDD9: Options::minOS(ld::MacVersionMin, ld::IOSVersionMin) (Options.cpp:1463)
==32068== by 0x43D8C5: Options::checkIllegalOptionCombinations() (Options.cpp:5253)
==32068== by 0x430CF4: Options::Options(int, char const**) (Options.cpp:206)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068== Conditional jump or move depends on uninitialised value(s)
==32068== at 0x43D8D9: Options::checkIllegalOptionCombinations() (Options.cpp:5253)
==32068== by 0x430CF4: Options::Options(int, char const**) (Options.cpp:206)
==32068== by 0x421DCA: main (ld.cpp:1177)
==32068==
==32068==
==32068== HEAP SUMMARY:
==32068== in use at exit: 17,598,367 bytes in 19,635 blocks
==32068== total heap usage: 20,932 allocs, 1,297 frees, 19,030,727 bytes allocated
==32068==
==32068== LEAK SUMMARY:
==32068== definitely lost: 124,767 bytes in 6,311 blocks
==32068== indirectly lost: 25,102 bytes in 81 blocks
==32068== possibly lost: 17,341,627 bytes in 12,666 blocks
==32068== still reachable: 106,871 bytes in 577 blocks
==32068== suppressed: 0 bytes in 0 blocks
==32068== Rerun with --leak-check=full to see details of leaked memory
==32068==
==32068== For counts of detected and suppressed errors, rerun with: -v
==32068== Use --track-origins=yes to see where uninitialised values come from
==32068== ERROR SUMMARY: 20 errors from 20 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment