[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [valgrind] [Bug 365327] Support macOS Sierra (10.12)
From:       Austin English <bugzilla_noreply () kde ! org>
Date:       2017-04-26 0:03:28
Message-ID: bug-365327-17878-vxrjQ0FsG0 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

--- Comment #15 from Austin English <austinenglish@gmail.com> ---
(In reply to Louis Brunner from comment #12)
> Created attachment 104964 [details]
> macOS Sierra incomplete support
> 
> I have been working on a patch to support macOS Sierra.
> At the moment, it works for a variety of programs (python, GIMP, most basic
> commands like ls, mkdir) but it is still incomplete (warnings in dyld,
> libsystem_kernel... crash for some GUI programs).
> 
> The patch adds a few required syscalls with placeholder implementations
> (faccessat, fstatat64, csrctl, getentropy and ulock_wake) and the new way of
> loading dylib (placing them at the end of the currently loaded segments).
> The second change means we need to know where the last segment was loaded,
> which means carrying around one more pointer on pointer in every function
> (which already have 6-9 arguments), that's why I created a structure
> (load_info_t) to store all this information and easily carry it around.
> 
> It also adds one assert in is_in_syscall in
> coregrind/m_syswrap/syswrap-main.c to match the other syscall related
> functions in the same file. I had a difficult to diagnose crash in this
> function because it didn't check for the existence of the syscall table.
> 
> Tell me if you need any change

I can confirm that the situation is improved on 10.12 with this patch. E.g.,
valgrind will at least attempt things now. I noticed that `./vg-in-place ls
-al` crashes valgrind, though `./vg-in-place true` works fine (does show some
uninitialized memory in OSX though).

A basic sanity check on 10.11 also worked for me.

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic