I reproduced this with the trunk on 10.7.3 using TextEdit, as you said.

It's pretty clear from --trace-flags=10000000 output that it happens
because the syscall __pthread_sigmask isn't supported, and so returns
with failure.  This presumably spooks /usr/lib/libsystem_c.dylib and
so it calls abort() immediately afterwards.

One thing you could try, in syswrap-darwin.c:

* change function PRE(__pthread_sigmask) so that its body is
  identical to that for PRE(sigprocmask) further down the file.

* create a function POST(__pthread_sigmask) as a copy of 
  POST(sigprocmask)

* change the line
   MACX_(__NR___pthread_sigmask,       __pthread_sigmask), 
  to read
   MACX_(__NR___pthread_sigmask,       __pthread_sigmask), 

That might help, by making it handle __pthread_sigmask identically
to sigprocmask.  (Or it might not.)

J

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to