I am using Mac OSX. I have created a buffer overflow vulnerable program:

```
#include<stdio.h>
#include<string.h>

int neverCalled() {
    puts("You got me to be called");
    return 0;
}

int main() {
    puts("Name: ");
    char name[64];
    gets(name);
    return 0;
}

```

I also have created an input file containing 88 "A"s (`0x414141...`) and `0x700E000001000000`

When run in gdb:

```
(gdb) run < input

```

I get the output: `You got me to be called` and then a `EXC_BAD_ACCESS` error. Meaning that I exploited the program successfully.

When run it in terminal:

`$ ./vulnerable < input`

I get the output: `Segmentation fault: 11` and nothing more.

Why does my buffer overflow work in gdb but fail in normal terminal.