Unknown ending signal when using debugger gdb : <p>I have installed GDB on Mac OS X and to test that it works I have used this following C program. </p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

int main(int argc, char *argv[]) {

    int *my_array = (int *) malloc(5 * sizeof(int));
    int i;
    for (i = 0; i &lt; 1000000; i++) {
        my_array[i] = i;
    }

    free(my_array);

    return 0;

}
</code></pre>

<p>I have an error when compiling it, which is normal (segmentation fault)</p>

<p>However, when <strong>adding the -g flag</strong> in the compiling command and running gdb on my compiled program, I have this message after launching the command <strong>run</strong> </p>

<pre><code>During startup program terminated with signal ?, Unknown signal.
</code></pre>

<p>Really don't know where it comes from. I have added a certificate to ensure that gdb works correctly on OS X but I have found nothing to fix this issue.</p>
