[omniORB] Lockup on Solaris 2.5.1 with Y2K patch

Sai-Lai Lo S.Lo@uk.research.att.com
22 Jun 1999 10:29:04 +0100


Thanks for pointing out the mistake. It doesn't affect the outcome though.
I still got lockup on that machine.

Our sysadmin said there is a more recent patch revision available and the
notes refer to bugs in /usr/lib/libthread.so.1. We'll see if the patch
works better.


>>>>> Harald Hopfes writes:

> You protect the variable "int died" only in the "killer" thread against
> mutual access. In the worker thread it isn't protected!

> The code

>   while (!died) {

> should be rewritten to

>   while (1) {
>      pthread_mutex_lock(&mutex);
>      if (died) {
>           pthread_mutex_unlock(&mutex);
>           break;
>      }
>      pthread_mutex_unlock(&mutex);

> Harald





-- 
Sai-Lai Lo                                   S.Lo@uk.research.att.com
AT&T Laboratories Cambridge           WWW:   http://www.uk.research.att.com 
24a Trumpington Street                Tel:   +44 1223 343000
Cambridge CB2 1QA                     Fax:   +44 1223 313542
ENGLAND