title: segmentation fault during pthread_exit()
body: <p>I've a problem finishing a thread, and doing the debug with GDB I've found that I've a segmentation after invoking the function pthread_exit(NULL);</p>
  <p>Some messages which I've are</p>
  <ol>
  <li>Program received signal SIGSEGV, Segmentation fault.
  [Switching to LWP 12371]
  0x400e9fd0 in free () from /lib/libc.so.6</li>
  </ol>
  <p>Debugging with this option &quot;gdb -c core EMBEDDED&quot; I've got this warning message</p>
  <p>&quot;warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
  Core was generated by `/home/root/SSL/EMBEDDED'.
  Program terminated with signal 11, Segmentation fault.</p>
  <h1>0  0x400e9fd0 in free () from /lib/libc.so.6&quot;</h1>
  <p>Some advices, some suggestions are welcome, thanks.</p>