make tests w glibc

Jakub Bogusz qboosh w pld-linux.org
Pią, 2 Sty 2004, 22:09:59 CET


On Fri, Jan 02, 2004 at 04:41:14PM +0100, Jakub Bogusz wrote:
> Przechodzą wszystkie testy oprócz linuxthreads/tst-attr1 .
> Dopisałem printfa, żeby było widać porównywane wartości - i:
> 
> initial thread stack (nil)-0x4000e480 (0x4000e480); &a=0xbffff6b0
> tst-attr1: pthread_attr_getstack returned range does not cover main's stack
> 
> (on sprawdza, czy &a jest pomiędzy początkiem a końcem stosu - ale dla
> głównego wątku zwracany jest zerowy adres stosu; 20031231 była jakaś
> poprawka dot. informacji o stosie dla głównego wątku, ale nie wydaje się
> niczego zmieniać - test wywala się tak samo na nowo zbudowanym glibc,
> jak i zainstalowanym 2.3.2)

Wyjaśniło się... przechodzi tylko na nowo budowanym glibc (chyba że ktoś
już miał > 2.3.2) i pod warunkiem, że /proc jest podmontowany :/

Dla glibc 2.3.2 test nie przechodził:

$ ./tst-attr1
./tst-attr1: pthread_attr_getstack returned range does not cover main's stack
thread stack 0xbf601000-0xbf800000 (0x1ff000)
thread guardsize 4096
thread stack 0xbf601000-0xbf800000 (0x1ff000)
thread guardsize 4096
thread stack 0xbf610000-0xbf800000 (0x1f0000)
thread guardsize 65536

Dla nowo zbudowanego już tak:
$ ../elf/ld.so --library-path ..:. ./tst-attr1
initial thread stack 0xbf800000-0xc0000000 (0x800000)
thread stack 0x40182000-0x40981000 (0x7ff000)
thread guardsize 4096
thread stack 0x40182000-0x40381000 (0x1ff000)
thread guardsize 4096
thread stack 0x40191000-0x40390000 (0x1ff000)
thread guardsize 65536

Ale ten test chyba trzeba będzie wyłączyć, ew. jakiś %bcond_with proc...


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/



Więcej informacji o liście dyskusyjnej pld-devel-pl