From owner-freebsd-threads@FreeBSD.ORG Sun Jun 29 20:01:08 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3026237B401 for ; Sun, 29 Jun 2003 20:01:08 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A1DD4400E for ; Sun, 29 Jun 2003 20:01:07 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h5U317DZ052198 for ; Sun, 29 Jun 2003 20:01:07 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h5U316a9001418 for ; Sun, 29 Jun 2003 20:01:06 -0700 (PDT) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h5U316Ja001417 for threads@FreeBSD.org; Sun, 29 Jun 2003 20:01:06 -0700 (PDT) (envelope-from marcel) Date: Sun, 29 Jun 2003 20:01:06 -0700 From: Marcel Moolenaar To: threads@FreeBSD.org Message-ID: <20030630030106.GA1345@athlon.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: Regression in libthr on ia64 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 03:01:08 -0000 Gang, I have a small threaded program that I normally use for basic testing. Nothing fancy. The source can be found here: http://www.xcllnt.net/~marcel/t.c This simple program does not work anymore with libthr. This is what I get: itanium% ./thr cpu0: boot and that's as far as it goes. ps(1) shows: 4293 d0 SL+ 0:00.01 ./thr 4293 d0 SL+ 0:00.01 ./thr 4293 d0 SL+ 0:00.01 ./thr 4293 d0 SL+ 0:00.01 ./thr 4293 d0 SL+ 0:00.01 ./thr 4293 d0 SL+ 0:00.01 ./thr and top gives me: 4293 marcel 20 0 5048K 1856K pause 0:00 0.78% 0.78% thr 4293 marcel 20 0 5048K 1856K pause 0:00 0.00% 0.00% thr 4293 marcel 20 0 5048K 1856K pause 0:00 0.00% 0.00% thr 4293 marcel 20 0 5048K 1856K pause 0:00 0.00% 0.00% thr 4293 marcel 20 0 5048K 1856K pause 0:00 0.00% 0.00% thr 4293 marcel 20 0 5048K 1856K pause 0:00 0.00% 0.00% thr I can kill the program with ^C. If I link staticly, I have more action: itanium% ./thr cpu2: boot cpu3: boot cpu3: data at 0x600000000001a080 cpu3: data at 0x600000000001a080 cpu_dtor: ptr=0x600000000001a080 cpu0: boot cpu0: data at 0x600000000001a080 cpu0: data at 0x600000000001a080 cpu_dtor: ptr=0x600000000001a080 cpu1: boot cpu2: data at 0x600000000001a080 cpu2: data at 0x600000000001a080 cpu_dtor: ptr=0x600000000001a080 But still it hangs. ps(1) and top(1) show: 4827 d0 SL+ 0:00.01 ./thr 4827 d0 SL+ 0:00.01 ./thr 4827 d0 SL+ 0:00.01 ./thr 4827 marcel 20 0 2864K 504K pause 0:00 0.00% 0.00% thr 4827 marcel 20 0 2864K 504K pause 0:00 0.00% 0.00% thr 4827 marcel 20 0 2864K 504K pause 0:00 0.00% 0.00% thr It doesn't matter if I compile with -DWITH_SLEEP or not. Is this a known issue? Is there some work in progress still? -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net