Bug 399504 - valgrind 3.14rc2 is unable to launch TextEdit.app on macOS 10.12.6
Summary: valgrind 3.14rc2 is unable to launch TextEdit.app on macOS 10.12.6
Status: RESOLVED DUPLICATE of bug 379893
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: 3.14 SVN
Platform: Other macOS
: NOR major
Target Milestone: ---
Assignee: Rhys Kidd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-07 23:37 UTC by Sean
Modified: 2018-10-12 17:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
valgrind output running TextEdit (1.96 KB, text/plain)
2018-10-07 23:37 UTC, Sean
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean 2018-10-07 23:37:13 UTC
Created attachment 115480 [details]
valgrind output running TextEdit

SUMMARY
valgrind 3.14rc2 is unable to launch TextEdit.app on macOS 10.12.6

STEPS TO REPRODUCE
1. just issue: valgrind /Applications/TextEdit.app

OBSERVED RESULT
- various text is output (attached), most notably:

==10558== Thread 2:
==10558== Invalid read of size 4
==10558==    at 0x1077A52B1: ??? (in /usr/lib/system/libsystem_pthread.dylib)
==10558==    by 0x1077A507C: ??? (in /usr/lib/system/libsystem_pthread.dylib)
==10558==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
==10558== 
==10558== 
==10558== Process terminating with default action of signal 11 (SIGSEGV)
==10558==  Access not within mapped region at address 0x18
==10558==    at 0x1077A52B1: ??? (in /usr/lib/system/libsystem_pthread.dylib)
==10558==    by 0x1077A507C: ??? (in /usr/lib/system/libsystem_pthread.dylib)

then the memcheck-amd64-darwin process crashes, see attached backtrace.

EXPECTED RESULT
- to be able to launch TextEdit, probably the simplest Cocoa application.

SOFTWARE VERSIONS
macOS 10.12.6 (16G1510)
valgrind 3.14rc2

ADDITIONAL INFORMATION
- Maybe related to https://bugs.kde.org/show_bug.cgi?id=372779 ?
- I was able to run ls & cat with valgrind, so it's not totally broken
- Calculator.app fails in the same way.
- I suppose it could be identifying a real bug, but TextEdit is pretty simple... and one supposes these days that Apple uses ASan & TSan...
Comment 1 Rhys Kidd 2018-10-12 17:55:16 UTC
Hi Sean,
This is a known bug with pthread support on macOS 10.12.x. I've linked this to the existing bug report so that you can track progress.

*** This bug has been marked as a duplicate of bug 379893 ***