https://bugs.kde.org/show_bug.cgi?id=399584

Heath <heathnay...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |heathnay...@gmail.com

--- Comment #27 from Heath <heathnay...@gmail.com> ---
(In reply to Louis Brunner from comment #14)
> Rhys,
> 
> I have been working on a series of patches based on your GitHub repository
> that allow Valgrind to work on macOS Mojave (albeit fairly experimentally).
> 
> The following are included:
>  - Empty stub for `mach_msg_destroy` which is required by the new mig
>  - A bunch of suppressions for dyld related functions (which are probably
> way too generic)
>  - `openat` support
>  - `thread_get_special_reply_port` support
>  - Output/check improvements for a handful of syscalls
>  - Multi-threading support (signals are still buggy)
> 
> I also added a README.md containing the result of `make regtest` for
> reference.
> 
> The code is available here: https://github.com/LouisBrunner/valgrind-macos

I can confirm that this installed successfully for OSX 10.14, but the leak
report didn't look right, I know I had memory leaks but it was showing 0 bytes
of loss. I upgraded to OSX 10.15 and now the binary errors with the following:

==7852== Memcheck, a memory error detector
==7852== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==7852== Using Valgrind-3.16.0.GIT and LibVEX; rerun with -h for copyright info
==7852== Command: test
==7852== 
--7852-- UNKNOWN fcntl 101!
--7852-- UNKNOWN fcntl 101! (repeated 2 times)
--7852-- UNKNOWN fcntl 101! (repeated 4 times)
--7852-- UNKNOWN fcntl 101! (repeated 8 times)
--7852-- UNKNOWN fcntl 101! (repeated 16 times)
--7852-- UNKNOWN fcntl 101! (repeated 32 times)
==7852== Use of uninitialised value of size 8
==7852==    at 0x10005A6E3: bcmp (in /usr/lib/dyld)
==7852==    by 0x100022475:
ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int,
unsigned char const*, unsigned long, long long, ImageLoader::LinkContext
const&) (in /usr/lib/dyld)
==7852==    by 0x100028335:
ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char
const*, unsigned long, unsigned long long, unsigned long long, stat const&,
unsigned int, unsigned int, linkedit_data_command const*,
encryption_info_command const*, ImageLoader::LinkContext const&) (in
/usr/lib/dyld)
==7852==    by 0x1000214FF: ImageLoaderMachO::instantiateFromFile(char const*,
int, unsigned char const*, unsigned long, unsigned long long, unsigned long
long, stat const&, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==7852==    by 0x10000CEEE: dyld::loadPhase6(int, stat const&, char const*,
dyld::LoadContext const&) (in /usr/lib/dyld)
==7852==    by 0x1000149B1: dyld::loadPhase5(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x100014496: dyld::loadPhase4(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x1000141F0: dyld::loadPhase3(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x100013912: dyld::loadPhase1(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x10000CA7C: dyld::loadPhase0(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x10000C639: dyld::load(char const*, dyld::LoadContext const&,
unsigned int&) (in /usr/lib/dyld)
==7852==    by 0x100015084: dyld::libraryLocator(char const*, bool, char
const*, ImageLoader::RPathChain const*, unsigned int&) (in /usr/lib/dyld)
==7852== 
==7852== Use of uninitialised value of size 8
==7852==    at 0x10005A6E8: bcmp (in /usr/lib/dyld)
==7852==    by 0x100022475:
ImageLoaderMachO::validateFirstPages(linkedit_data_command const*, int,
unsigned char const*, unsigned long, long long, ImageLoader::LinkContext
const&) (in /usr/lib/dyld)
==7852==    by 0x100028335:
ImageLoaderMachOCompressed::instantiateFromFile(char const*, int, unsigned char
const*, unsigned long, unsigned long long, unsigned long long, stat const&,
unsigned int, unsigned int, linkedit_data_command const*,
encryption_info_command const*, ImageLoader::LinkContext const&) (in
/usr/lib/dyld)
==7852==    by 0x1000214FF: ImageLoaderMachO::instantiateFromFile(char const*,
int, unsigned char const*, unsigned long, unsigned long long, unsigned long
long, stat const&, ImageLoader::LinkContext const&) (in /usr/lib/dyld)
==7852==    by 0x10000CEEE: dyld::loadPhase6(int, stat const&, char const*,
dyld::LoadContext const&) (in /usr/lib/dyld)
==7852==    by 0x1000149B1: dyld::loadPhase5(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x100014496: dyld::loadPhase4(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x1000141F0: dyld::loadPhase3(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x100013912: dyld::loadPhase1(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x10000CA7C: dyld::loadPhase0(char const*, char const*,
dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*,
std::__1::allocator<char const*> >*) (in /usr/lib/dyld)
==7852==    by 0x10000C639: dyld::load(char const*, dyld::LoadContext const&,
unsigned int&) (in /usr/lib/dyld)
==7852==    by 0x100015084: dyld::libraryLocator(char const*, bool, char
const*, ImageLoader::RPathChain const*, unsigned int&) (in /usr/lib/dyld)
==7852== 
--7852-- UNKNOWN task message [id 8000, to mach_task_self(), reply 0x707]

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to