public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/17561] New: GLIBC 2.20 results in SIGILL on x86_64 with double pthread_rwlock_unlock()
@ 2014-11-06 19:57 aaro.koskinen at iki dot fi
  2014-11-06 20:01 ` [Bug nptl/17561] " aaro.koskinen at iki dot fi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: aaro.koskinen at iki dot fi @ 2014-11-06 19:57 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17561

            Bug ID: 17561
           Summary: GLIBC 2.20 results in SIGILL on x86_64 with double
                    pthread_rwlock_unlock()
           Product: glibc
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: aaro.koskinen at iki dot fi
                CC: drepper.fsp at gmail dot com

The following program fails with illegal instruction on x86_64 on HW where
_xend() is not supported (even if it would the behaviour is not probably
correct):

$ cat foo.c
#include <pthread.h>
#include <stdio.h>

int main(void)
{
        pthread_rwlock_t _lock;

        pthread_rwlock_init(&_lock, 0);
        pthread_rwlock_wrlock(&_lock);
        pthread_rwlock_unlock(&_lock);
        pthread_rwlock_unlock(&_lock);
        pthread_rwlock_destroy(&_lock);
        return 0;
}
$ gcc foo.c -lpthread
$ ./a.out
Illegal instruction

This is caused by __pthread_rwlock_unlock() -> ELIDE_UNLOCK() -> _xend()

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-07  0:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-06 19:57 [Bug nptl/17561] New: GLIBC 2.20 results in SIGILL on x86_64 with double pthread_rwlock_unlock() aaro.koskinen at iki dot fi
2014-11-06 20:01 ` [Bug nptl/17561] " aaro.koskinen at iki dot fi
2014-11-06 20:54 ` fweimer at redhat dot com
2014-11-06 21:03 ` aaro.koskinen at iki dot fi
2014-11-07  0:41 ` andi-bz at firstfloor dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).