HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 2092 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 2092.


Report 2092 Actions


    Problem Report Number 2092
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1063
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSTH version 5.2.1
    Test Identification PTHR.os/cancel/pthread_cancel 9
    Problem Summary TSD5TH.00083 The test aborts when testing pthread_rwlock_trywrlock. This can be seen by looking at a stack trace from the core file generated: pthread_rwlock_trywrlock_cef(0,ffffffffffffffff,0,1001817d8,0,0) + 24 ...
    Problem Text

    The test aborts when testing pthread_rwlock_trywrlock. This
    can be seen by looking at a stack trace from the core file generated:

    pthread_rwlock_trywrlock_cef(0,ffffffffffffffff,0,1001817d8,0,0) + 24
    vsth_cpt(1001817d8,ffffffffffffffff,ffffffff7ffff6f8,ffffffff7ffff6f4,10018e4c8,3ff) + 218
    tet_main(1,ffffffff7ffff990,0,0,1,fffffffffffffffc) + 1f8
    tet_tcmc_main(6,ffffffff7ffff968,0,10006aea8,10006b870,0) + 3f8
    main(6,ffffffff7ffff968,ffffffff7ffff9a0,0,0,100000000) + 98

    If you look at the code for pthread_rwlock_trywrlock_cef you




    see it is trying to unlock a read-write lock:

    int
    pthread_rwlock_trywrlock_cef()
    {
    (void) pthread_rwlock_unlock(&Prwltwl_rwl);
    (void) pthread_rwlock_destroy(&Prwltwl_rwl);
    return(0);
    }

    In the function vsth_cpt, the thread which calls pthread_rwlock_trywrlock_cef
    is created. However, it never obtains ownership of rwlock. The result
    is thread_rwlock_trywrlock_cef attempts to unlock a lock it does not
    own.

    According to System Interfaces and Headers, Issue 5, Vol 1, description
    for pthread_rwlock_unlock is as follows:

    "Results are undefined if the read-write lock rwlock is not held by the
    calling thread."

    The SIGABRT is generated when the thread fails to unlock the lock.

    Test Output
    ************************************************************************
    /tset/PTHR.os/cancel/pthread_cancel/T.pthread_cancel 9 Unresolved

    Test Information:
    A cancellation point shall not occur in the
    following XSH5 functions
    FD_ISSET, FD_SET, FD_ZERO
    FD_CLR, _longjmp, _setjmp
    _tolower, _toupper, a64l
    acosh, advance, asinh
    atanh, basename, bcmp
    bcopy, brk, bsd_signal




    btowc, bzero, cbrt
    chroot, compile, confstr
    crypt, cuserid, dbm_clearerr
    dbm_error, dbm_firstkey, dirname
    dlerror, dlsym, drand48
    ecvt, erand48, erf
    erfc, expm1, fattach
    fchdir, fchown, fcvt
    fdetach, ffs, fmtmsg
    fnmatch, fstatvfs, ftime
    ftok, fwide, gamma
    gcvt, getcontext, getdate
    getdtablesize, gethostid, getitimer
    getopt, getpagesize, getpass
    getpgid, getpriority, getrlimit
    getrusage, getsid, getsubopt
    gettimeofday, getwd, glob
    grantpt, hcreate, hdestroy
    hsearch, hypot, iconv
    ilogb, index, initstate
    insque, isastream, isnan
    iswalnum, iswalpha, iswcntrl
    iswdigit, iswgraph, iswlower
    iswprint, iswpunct, iswspace
    iswupper, iswwctype, j0
    j1, jn, jrand48
    killpg, l64a, lchown
    lcong48, lfind, lgamma
    localconv, log1p, logb
    lrand48, lsearch, lstat
    makecontext, mbrlen, mbrtowc
    mbsinit, mbsrtowcs, mbstowcs
    memccpy, mknod, mktemp
    mrand48, msgctl, msgget
    nextafter, nice, nl_langinfo
    nrand48, pthread_attr_getguardsize, pthread_attr_setguardsize
    pthread_getconcurrency, pthread_mutexattr_gettype,
    pthread_mutexattr_settype
    pthread_rwlock_destroy, pthread_rwlock_init, pthread_rwlock_rdlock
    pthread_rwlock_tryrdlock, pthread_rwlock_trywrlock,
    pthread_rwlock_unlock
    pthread_rwlock_wrlock, pthread_rwlockattr_destroy,
    pthread_rwlockattr_getpshared
    pthread_rwlockattr_init, pthread_rwlockattr_setpshared,
    pthread_setconcurrency
    ptsname, putenv, random
    re_comp, re_exec, readlink
    realpath, regcmp, regcomp
    regerror, regex, regexec
    regfree, remainder, remque
    rindex, rint, sbrk
    scalb, seed48, semctl




    semget, setcontext, setitimer
    setlogmask, setpgrp, setpriority
    setregid, setrlimit, setstate
    shmat, shmctl, shmdt
    shmget, sigaltstack, sighold
    sigignore, siginterrupt, signgam
    sigrelse, sigset sigstack
    snprintf, srand48, srandom
    statvfs, step, strcasecmp
    strdup, strfmon, strncasecmp
    strptime, swab, swapcontext
    swprintf, swscanf, symlink
    sync, tcgetsid, tdelete
    telldir, tempnam, tfind
    toascii, towctrans, towlower
    towupper, truncate, tsearch
    ttyslot, twalk, ualarm
    ulimit, unlockpt, utimes
    valloc, vfork, vsnprintf
    vswprintf, wcrtomb, wcscat
    wcschr, wcscmp, wcscoll
    wcscpy, wcscspn, wcsftime
    wcslen, wcsncat, wcsncmp
    wcsncpy, wcspbrk, wcsrchr
    wcsrtombs, wcsspn, wcsstr
    wcstod, wcstok, wcstol
    wcstoul, wcswcs, wcswidth
    wcsxfrm, wctob, wctrans
    wctype, wcwidth, wmemchr
    wmemcmp, wmemcpy, wmemmove
    wmemset, wordexp, y0
    y1, yn
    XCAE ref: Component PTHREAD_CANCEL
    Assertion 9(A)
    child process was terminated by signal 6 (SIGABRT)

    ************************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    A test suite deficiency is recommended


    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion
    This is an agreed Test Suite Deficiency.


    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority