tech-misc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RFC: VSTHlite - pthread test suite



On Tue, Jun 24, 2008 at 03:57:38PM +0300, Andy Shevchenko wrote:

> I just have got the results of the VSTHlite test suite started on NetBSD.
> The correspondent wiki page is placed here:
> http://wiki.netbsd.se/VSTHlite

With source from a few minutes ago most of the failures are gone:

        http://www.netbsd.org/~ad/run6.txt

Those remaining appear to be due to the test suite doing something silly, or
amusingly, not being POSIX compliant itself. The spew below seem to be from
real bugs in NetBSD.

> The lot of things are still unimplemented of failed. Is there some plan to 
> make NetBSD's pthread library to be POSIX compatible?

Nearly all of the threads interfaces are implemented. Missing is process
shared synchronization and priority inheritance (at user level). From the
OS implementors view those are effectively the same bit of code. There are
some odd function calls that it would be nice to add, but that's about it.

To describe NetBSD's pthread library as "not POSIX compatible" is stretching
the truth quite a bit.

Andrew

520|64 2 00022994 1 1|If the feature test macro _POSIX_THREAD_SAFE_FUNCTIONS is 
defined:
520|64 2 00022994 1 2|when name is not a valid group name from the system group 
database,
520|64 2 00022994 1 3|then concurrent calls by multiple threads to
520|64 2 00022994 1 4|getgrnam_r(name, grp, buffer, bufsize, result) shall 
store a NULL
520|64 2 00022994 1 5|pointer in the location referenced by result and return 0.
520|64 2 00022994 1 6|Posix Ref: Component GETGRNAM_R
520|64 2 00022994 1 7|Assertion 9945-1:1996 9.2.1.2-2(C)
520|64 2 00022994 17 1|Expected NULL result, got 0xbb5ffc48
520|64 2 00022994 15 1|Expected NULL result, got 0xba9ffe48
520|64 2 00022994 16 1|Expected NULL result, got 0xbb7ffd48
520|64 2 00022994 11 1|Expected NULL result, got 0xbadff848
520|64 2 00022994 7 1|Expected NULL result, got 0xbb1ffa48
520|64 2 00022994 5 1|Expected NULL result, got 0xbb3ffb48
520|64 2 00022994 13 1|Expected NULL result, got 0xbabfff48
520|64 2 00022994 9 1|Expected NULL result, got 0xbafff948
220|64 2 1 12:45:17|FAIL

520|64 3 00022994 1 1|If the feature test macro _POSIX_THREAD_SAFE_FUNCTIONS is 
defined:
520|64 3 00022994 1 2|when insufficient storage was supplied via buffer and 
bufsize to
520|64 3 00022994 1 3|contain the data referenced by name,
520|64 3 00022994 1 4|then concurrent calls by multiple threads to
520|64 3 00022994 1 5|getgrnam_r(name, grp, buffer, bufsize, result) shall 
store a NULL
520|64 3 00022994 1 6|pointer in the location referenced by result and return 
ERANGE.
520|64 3 00022994 1 7|Posix Ref: Component GETGRNAM_R   
520|64 3 00022994 1 8|Assertion 9945-1:1996 9.2.1.4-3(C)
520|64 3 00022994 16 1|Expected getgrgid_r to return ERANGE, got 0
520|64 3 00022994 17 1|Expected getgrgid_r to return ERANGE, got 0
520|64 3 00022994 14 1|Expected getgrgid_r to return ERANGE, got 0
520|64 3 00022994 12 1|Expected getgrgid_r to return ERANGE, got 0
520|64 3 00022994 10 1|Expected getgrgid_r to return ERANGE, got 0
520|64 3 00022994 8 1|Expected getgrgid_r to return ERANGE, got 0 
520|64 3 00022994 6 1|Expected getgrgid_r to return ERANGE, got 0 
520|64 3 00022994 4 1|Expected getgrgid_r to return ERANGE, got 0
220|64 3 1 12:45:17|FAIL


Home | Main Index | Thread Index | Old Index