#17176: Gdb on Yosemite
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.4
      Component:  packages:          |   Resolution:
  optional                           |    Merged in:
       Keywords:  yosemite           |    Reviewers:
        Authors:  Volker Braun       |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  c2ff01b24aa9bc150498acbb370af5fdcae347d0
  u/vbraun/gdb_on_yosemite           |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by vbraun):

 Tried the following to be able to use gdb:

 * Made a `gdbc` certificate (can only be done in the GUI, wtf):
 http://blog.panks.me/posts/2013/11/install-gdb-on-os-x-mavericks-from-
 source/
 * Sign: `codesign -fs gdbc ./gdb/gdb`
 * Put the `gdb` binary in the `procmod` group and make it chgrp
   {{{
   $ ls -al gdb
   -rwxrwsr-x  1 vbraun  procmod  6717344 Oct 19 12:31 gdb
   }}}
 * Add myself to the groups `admin`, `_developer`, `procmod`, `procview`:
   {{{
   dscl . append /Groups/procmod GroupMembership vbraun
   }}}
 * Rebooted

 Still can't run without root:
 {{{
 $ ./gdb ~/Sage/local/bin/patch
 ....
 Starting program: /Users/vbraun/Sage/local/bin/patch
 Unable to find Mach task port for process-id 476: (os/kern) failure (0x5).
  (please check gdb is codesigned - see taskgated(8))
 }}}
 More info:
 {{{
 $ codesign -d --verbose gdb
 Executable=/Users/vbraun/Code/gdb-7.8/gdb/gdb
 Identifier=org.gnu.gdb
 Format=Mach-O thin (x86_64)
 CodeDirectory v=20100 size=32700 flags=0x0(none) hashes=1630+2
 location=embedded
 Signature size=1237
 Signed Time=Oct 19, 2014, 12:31:26 PM
 Info.plist entries=4
 TeamIdentifier=not set
 Sealed Resources=none
 Internal requirements count=2 size=448
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17176#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to