Message 1 of 1
Debugging Maya Crash on OS X?

Not applicable
10-16-2012
10:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In the past when debugging Maya code on Linux, I've been able to launch Maya in gdb using: maya -d gdb
From what I can tell, on Linux, 'maya' is actually a shell script that in turn launches the actual executable under gdb. For the life of me, I can't get this to work under OS X. If I launch a maya terminal, executing maya directly calls the maya binary. When I run `gdb maya` and attempt to launch the executable, however, I get the following:
bobscomputer:~ bob$ gdb maya
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ...... done
(gdb) run
Starting program: /Applications/Autodesk/maya2012/Maya.app/Contents/bin/maya
Reading symbols for shared libraries .+++++................................................... done
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff5fc01028 in __dyld__dyld_start ()
(gdb)
Am I missing something obvious? How do I actually launch maya under gdb?
Thanks for the help!
From what I can tell, on Linux, 'maya' is actually a shell script that in turn launches the actual executable under gdb. For the life of me, I can't get this to work under OS X. If I launch a maya terminal, executing maya directly calls the maya binary. When I run `gdb maya` and attempt to launch the executable, however, I get the following:
bobscomputer:~ bob$ gdb maya
GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ...... done
(gdb) run
Starting program: /Applications/Autodesk/maya2012/Maya.app/Contents/bin/maya
Reading symbols for shared libraries .+++++................................................... done
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff5fc01028 in __dyld__dyld_start ()
(gdb)
Am I missing something obvious? How do I actually launch maya under gdb?
Thanks for the help!