title: SIGABRT error after malloc of a struct
body: <p>I cant seem to solve this error i have in the malloc line of code. The error is "SIGABRT". Please teach me how to solve this problem. Thank you.</p>
  
  <pre><code>typedef struct caminho{
         int nCient;
         struct caminho *next;
  }Caminho;
  Caminho *temp1 = (Caminho*) malloc(sizeof(Caminho));
  </code></pre>
  
  <p>Update:</p>
  
  <pre><code>typedef struct caminho{
         int nCient;
         struct caminho *next;
  }Caminho;
  Caminho *temp1 = malloc(sizeof(Caminho));
  </code></pre>
  
  <p>the only other structure in the program and the only other malloc:</p>
  
  <pre><code>typedef struct Cientista{
      int nCient;
      int nSignal;
      int profundidade;
      int distancia;
      struct caminho *next;
  } cientista;
  
  cientista* vectorCientistas;
  scanf("%d %d", &amp;maxCientista, &amp;maxCaminhos);
  
  
  vectorCientistas = malloc(sizeof(cientista*) * maxCientista);
  </code></pre>