title: struct timespec in struct
body: <p>The following is one minimal example to reproduce the problem. To me, the code looks quite innocent. I suspect there's some magic behind <code>struct timespc</code>; however, I can't find anything that could explain why it crashes.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;pthread.h&gt;
  #include &lt;time.h&gt;
  
  typedef struct _task
  {
      int id;
      int deadline;
      struct timespec processed_at;
      int process_time;
  } task;
  
  int main(int argc, char *argv[])
  {
      task *t = malloc(sizeof t);
      t-&gt;process_time = 3;
      free(t);
      return 0;
  }
  </code></pre>