This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix POSIX timers


Ulrich Drepper <drepper@redhat.com> writes:

> Andreas Jaeger wrote:
>> tst-timer4.out fails for me now on Linux/x86-64 running a 2.6.4 kernel
>> with (using nptl):
>> 
>> clock_gettime returned timespec = { 1082189786, 576892000 }
>> clock_getres returned timespec = { 0, 999848 }
>> timer_settime with it_value 0 it_interval invalid failed: Invalid argument
>> timer_settime with it_value 0 it_interval invalid failed: Invalid argument
>
> And what is the exit status of the test program?  It's zero, meaning the

It was non-zero.

> test does not fail.  I've made some changes to disable some tests which
> are really undefined and marked the real bugs more clearly.

Ok, I've just tried your changed version and get:

With nptl:
GCONV_PATH=/builds/glibc/hammer+nptl/iconvdata LC_ALL=C   /builds/glibc/hammer+nptl/elf/ld-linux-x86-64.so.2 --library-path /builds/glibc/hammer+nptl:/builds/glibc/hammer+nptl/math:/builds/glibc/hammer+nptl/elf:/builds/glibc/hammer+nptl/dlfcn:/builds/glibc/hammer+nptl/nss:/builds/glibc/hammer+nptl/nis:/builds/glibc/hammer+nptl/rt:/builds/glibc/hammer+nptl/resolv:/builds/glibc/hammer+nptl/crypt:/builds/glibc/hammer+nptl/nptl /builds/glibc/hammer+nptl/rt/tst-timer4  > /builds/glibc/hammer+nptl/rt/tst-timer4.out
Timed out: killed the child process
make[2]: *** [/builds/glibc/hammer+nptl/rt/tst-timer4.out] Error 1

$ cat rt/tst-timer4.out
clock_gettime returned timespec = { 1082217097, 179058000 }
clock_getres returned timespec = { 0, 999848 }


And with linuxthreads:
GCONV_PATH=/builds/glibc/hammer+linuxthreads/iconvdata LC_ALL=C   /builds/glibc/hammer+linuxthreads/elf/ld-linux-x86-64.so.2 --library-path /builds/glibc/hammer+linuxthreads:/builds/glibc/hammer+linuxthreads/math:/builds/glibc/hammer+linuxthreads/elf:/builds/glibc/hammer+linuxthreads/dlfcn:/builds/glibc/hammer+linuxthreads/nss:/builds/glibc/hammer+linuxthreads/nis:/builds/glibc/hammer+linuxthreads/rt:/builds/glibc/hammer+linuxthreads/resolv:/builds/glibc/hammer+linuxthreads/crypt:/builds/glibc/hammer+linuxthreads/linuxthreads /builds/glibc/hammer+linuxthreads/rt/tst-timer4  > /builds/glibc/hammer+linuxthreads/rt/tst-timer4.out
make[2]: *** [/builds/glibc/hammer+linuxthreads/rt/tst-timer4.out] Error 1
make[2]: Leaving directory `/cvs/libc/rt'
make[1]: *** [rt/tests] Error 2
make[1]: Leaving directory `/cvs/libc'
make: *** [check] Error 2
gromit:/builds/glibc/hammer+linuxthreads:[2]$ cat rt/tst-timer4.out
clock_gettime returned timespec = { 1082217091, 948454000 }
clock_getres returned timespec = { 0, 999848 }
*** thr2 guardsize 4096 != 0
*** timer_gettime timer_none returned { -1.598084000, 0.000000000 }
*** thr2 guardsize 4096 != 0


Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]