On Thu, Nov 8, 2012 at 9:34 AM, Kirk, Benjamin (JSC-EG311) <benjamin.kirk-1@nasa.gov> wrote:
But to launch it in the debugger, do

$ libtool --mode=executde gdb ./introduction-ex1

for example.

Cool, this works for me.  Here is the stack trace for adjoints_ex1 from the automake branch (running in opt mode).

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x00007fff948218a5 in misaligned_stack_error_entering_dyld_stub_binder ()
(gdb) bt
#0  0x00007fff948218a5 in misaligned_stack_error_entering_dyld_stub_binder ()
#1  0x0000000101f3f9d0 in ?? ()

It's exactly the same thing I see in trunk when I don't use libtool for linking.

--
John