On Wed, Jun 30, 1999 at 03:39:26PM +0200, Einar Floystad Dorum wrote: > On my SX164 running RH 6.0 (glibc 2.1, egcs 1.1.2) any program using > pthread will segfault or do an invalid instruction after a short > time. This happens on both 2.2.10 and 2.2.11-pre1 + Richard > Henderson's d-2211-rth1.gz. The enclosed pthread test program will > always segfault inside one of the pthread_* calls. Indeed. Somehow, while guessing how things might could be optimized, I forgot that flush_tlb_mm allocates new ASNs. So all the hemming and hawing about tss.mm_context was garbage. We have to copy the mm->context into tss.asn every time we're scheduled. Without fail. Here's a patch against 2.2.11-rth1. Thanks for the wonderful test case. r~