Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jun 2003 20:01:06 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        threads@FreeBSD.org
Subject:   Regression in libthr on ia64
Message-ID:  <20030630030106.GA1345@athlon.pn.xcllnt.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030630030106.GA1345>