On Sat, Apr 28, 2012 at 1:39 PM, Matt Broadstone <mbroa...@gmail.com> wrote:
> On Fri, Apr 27, 2012 at 6:42 PM, Julian Seward <jsew...@acm.org> wrote:
>> On Friday, April 27, 2012, Matt Broadstone wrote:
>>> On Fri, Apr 27, 2012 at 10:58 AM, Julian Seward <jsew...@acm.org> wrote:
>>> >> * change the line
>>> >>    MACX_(__NR___pthread_sigmask,       __pthread_sigmask),
>>> >>   to read
>>> >>    MACX_(__NR___pthread_sigmask,       __pthread_sigmask),
>>> >
>>> > Oops.  I mean, change it to
>>> >
>>> >   MACXY(__NR___pthread_sigmask,       __pthread_sigmask),
>>> >
>>> > J
>>>
>>> Hmm, well I added that (I had to provide an empty POST for
>>> __pthread_sigmask to get it working, not sure if thats kosher, it
>>> looked like it should be), but we're still failing.
>>
>> My analysis was wrong.  It's unrelated to __pthread_sigmask;
>> the program has already decided to abort before that point.
>>
>> Seems like a permissions problem of some kind (setuid problem,
>> I'd guess).  Putting "sudo" in front of my valgrind invokation
>> for textedit makes it run successfully.  Does the same trick
>> work for you?
>>
>> J
>
> Yep, this works for me.
>
> Matt

Bad news. This seems to work fine for TextEdit.app, but not anything
else I'm trying. Interestingly, the problem with the other
applications is the exact same __abort call which for some reason is
not being triggered when I run a "sudo valgrind <path to
TextEdit.app>". My new test case is:

sudo valgrind /Applications/Firefox.app/Contents/MacOS/firefox-bin

which fails in an illegal opcode in __abort again.

Matt

------------------------------------------------------------------------------
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
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to