On Thu, Apr 26, 2012 at 2:06 PM, Philippe Waroquiers <philippe.waroqui...@skynet.be> wrote: > On Thu, 2012-04-26 at 09:29 -0400, Matt Broadstone wrote: > >> As for doing a db-attach, that seems to have failed as well - I never >> make it to a gdb session. Here is the full output of a db-attach >> valgrind run on TextEdit.app: > .... >> ==76980== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- Y >> >> valgrind: m_debugger.c:238 (ptrace_setregs): Assertion 'Unimplemented >> functionality' failed. > The above assert indicates that --db-attach is not implemented > on darwin. > > You could however try the Valgrind gdbserver, which is supposed to > work (at least, I manually tested it on Darwin something like one year > ago on a 3.7.0 SVN). > > You could try to investigate why abort is called > by using 2 GDBs to debug: > * a native run > * a run under Valgrind > and see at which point/instruction their executions are diverging. > (e.g. put breakpoint in _SCSessionUniverseByUIDAcquireAndLock and > then use stepi or similar.). > > Philippe >
first I ran: valgrind --vgdb=yes --vgdb-error=0 /Applications/TextEdit.app/Contents/MacOS/TextEdit then I ran: gdb /Applications/TextEdit.app/Contents/MacOS/TextEdit and then: (gdb) target remote | /usr/local/bin/vgdb | /usr/local/bin/vgdb: Undefined error: 0 I was just following the steps in the manual, is there something special I'm missing here? 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