#39349: gdb @7.6 add note about codesigning ---------------------------+---------------------- Reporter: gunnlaugur@… | Owner: dweber@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: gdb | ---------------------------+---------------------- Comment (by clint.olsen@…): Replying to [comment:6 sean@…]:
I just ran into this issue as well. The procmod is correct except that
for newer OSes you need to make sure that the taskgated daemon is configured to use the '-p' option in `/System/Library/LaunchDaemons/com.apple.taskgated.plist`, e.g.
{{{ <key>ProgramArguments</key> <array> <string>/usr/libexec/taskgated</string> <string>-sp</string> </array> }}}
No code signing is needed if this is done :-)
[[BR]] I tried this method. My plist file was missing the -p argument. Now I have taskgated seemingly running as you've specified: {{{ root 35239 0.0 0.0 2433208 1548 ?? Ss 10:50AM 0:00.01 /usr/libexec/taskgated -sp }}} However things still fail for me: {{{ $ ggdb --args ./mmap /tmp/foo GNU gdb (GDB) 7.6 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-apple-darwin12.3.0". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /Users/clint/Documents/mmap/mmap...Reading symbols from /Users/clint/Documents/mmap/mmap.dSYM/Contents/Resources/DWARF/mmap...done. done. (gdb) r Starting program: /Users/clint/Documents/mmap/mmap /tmp/foo Unable to find Mach task port for process-id 35244: (os/kern) protection failure (0x2). (please check gdb is codesigned - see taskgated(8)) }}} -- Ticket URL: <https://trac.macports.org/ticket/39349#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X