as I can see, deallocate_LGDTs_for_thread were being called on
uninitialised thread records.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3825
VG_(sema_init)(&run_sema);
for (i = 0 /* NB; not 1 */; i < VG_N_THREADS; i++) {
- VG_(threads)[i].sig_queue = NULL;
+
+ /* Paranoia .. completely zero it out. */
+ VG_(memset)( & VG_(threads)[i], 0, sizeof( VG_(threads)[i] ) );
+
+ VG_(threads)[i].sig_queue = NULL;
VGO_(os_state_init)(&VG_(threads)[i]);
mostly_clear_thread_record(i);