From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f9d707f18092c081,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-21 11:50:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!router1.news.adelphia.net!news1.news.adelphia.net.POSTED!not-for-mail Reply-To: "Steve Young" From: "Steve Young" Newsgroups: comp.unix.tru64 Subject: POSIX threads and Tru64 5.1a woes X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Sun, 21 Apr 2002 18:50:03 GMT NNTP-Posting-Host: 24.54.94.84 X-Complaints-To: abuse@adelphia.net X-Trace: news1.news.adelphia.net 1019415003 24.54.94.84 (Sun, 21 Apr 2002 14:50:03 EDT) NNTP-Posting-Date: Sun, 21 Apr 2002 14:50:03 EDT Xref: archiver1.google.com comp.unix.tru64:7340 I have been working on a simple little gnutella client over the past couple of months, mostly to learn a little about network programming. It works fine under Linux,(free|open|net)BSD and Solaris. However, on Tru64 5.1a it chokes pretty bad. After running for a minute or so with a live network connection, the process goes into uninterruptible sleep. Using ladebug and reverting to a previous version of the program that used the usual fork rather than POSIX threads I am 99% sure that the problem is related to how I am using the POSIX threads library. The program is based on the example of a pre-threaded server in UNIX Network Programming 2nd ed. on pages 758-759. The threads seem to just all get stuck sleeping in the call to pthread_cond_wait() and they just don't catch the pthread_cond_signal(). Of course, the obvious point of failure is myself; a simple CS student (for three more weeks... joy!) However, it DOES work (tested for days and days) on Linux and Solaris whereas I am lucky if it runs more than one minute on Tru64. Has anyone ever experienced similar problems w/ POSIX threads and Tru64? - Steve Young