I managed to retrieve the error also doing a more simple loop:

Qt Code:
  1. int main(int argc, char *argv[]){
  2.  
  3. cout << "Test on a glpk application using Qt Threads" << endl<<endl;
  4. Thread wThread;
  5. for (uint y=0;y<5000;y++){
  6. wThread.start(); // job done from the other thread
  7. wThread.wait();
  8. }
  9. cout <<"All done without errors (crashing)"<<endl;
  10. return 0;
  11. }
To copy to clipboard, switch view to plain text mode 

The error I have from glpk is:
Assertion failed: xlcmp(env->t_last, t) <= 0
Error detected in file glplib10.c at line 109
I really do not understand why this external library crash if I put it on an external thread that I run consecutivly while it works whitout problems if I run it in the main thread.