public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/19004] New: tst-robust8 fails intermittently on x86_64
@ 2015-09-25  8:50 fweimer at redhat dot com
  2015-09-25  8:54 ` [Bug nptl/19004] " fweimer at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2015-09-25  8:50 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 19004
           Summary: tst-robust8 fails intermittently on x86_64
           Product: glibc
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
             Flags: security-

The test machine is an x86_64 machine running the 3.10 kernel from Red Hat
Enterprise Linux 7, two Xeon E5-2450 CPUs with 8 cores each, for a total number
of 32 hardware threads.

I can reproduce this with 2.23 master as of today, but I have trouble getting
proper backtraces because I cannot get GDB to use the right libthread_db, so I
am not completely certain the observation below applies to glibc master.

With the glibc 2.17 in Red Hat Enterprise Linux 7, this pthread_mutex_lock call
blocks indefinitely:

232           for (int n = 0; n < N; ++n)
233             {
234               int e = pthread_mutex_lock (&map[n]);
235               if (e != 0 && e != EOWNERDEAD)

Sometimes, this happens on the first round, sometimes on subsequent rounds.

(gdb) print/x map[n]
$4 = {__data = {__lock = 0x80000000, __count = 0x1, __owner = 0x0, 
    __nusers = 0x0, __kind = 0x90, __spins = 0x0, __list = {__prev = 0x0, 
      __next = 0x0}}, __size = {0x0, 0x0, 0x0, 0x80, 0x1, 
    0x0 <repeats 11 times>, 0x90, 0x0 <repeats 23 times>}, 
  __align = 0x180000000}
(gdb) print/x map[n-1]
$5 = {__data = {__lock = 0x800052b0, __count = 0x1, __owner = 0x7fffffff, 
    __nusers = 0x1, __kind = 0x90, __spins = 0x0, __list = {
      __prev = 0x7ffff7feca20, __next = 0x7ffff7ff8480}}, __size = {0xb0, 
    0x52, 0x0, 0x80, 0x1, 0x0, 0x0, 0x0, 0xff, 0xff, 0xff, 0x7f, 0x1, 0x0, 
    0x0, 0x0, 0x90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x20, 0xca, 0xfe, 
    0xf7, 0xff, 0x7f, 0x0, 0x0, 0x80, 0x84, 0xff, 0xf7, 0xff, 0x7f, 0x0, 
    0x0}, __align = 0x1800052b0}
(gdb) print/x map[n+1]
$7 = {__data = {__lock = 0x40000000, __count = 0x1, __owner = 0x52b3, 
    __nusers = 0x1, __kind = 0x90, __spins = 0x0, __list = {
      __prev = 0x7ffff7ff8200, __next = 0x7ffff7ff8138}}, __size = {0x0, 
    0x0, 0x0, 0x40, 0x1, 0x0, 0x0, 0x0, 0xb3, 0x52, 0x0, 0x0, 0x1, 0x0, 0x0, 
    0x0, 0x90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x82, 0xff, 0xf7, 
    0xff, 0x7f, 0x0, 0x0, 0x38, 0x81, 0xff, 0xf7, 0xff, 0x7f, 0x0, 0x0}, 
  __align = 0x140000000}
(gdb) print/x map[n+2]
$8 = {__data = {__lock = 0xc0000000, __count = 0x1, __owner = 0x52ba, 
    __nusers = 0x1, __kind = 0x90, __spins = 0x0, __list = {
      __prev = 0x7ffff7ff8d18, __next = 0x7ffff7ff8250}}, __size = {0x0, 
    0x0, 0x0, 0xc0, 0x1, 0x0, 0x0, 0x0, 0xba, 0x52, 0x0, 0x0, 0x1, 0x0, 0x0, 
    0x0, 0x90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18, 0x8d, 0xff, 0xf7, 
    0xff, 0x7f, 0x0, 0x0, 0x50, 0x82, 0xff, 0xf7, 0xff, 0x7f, 0x0, 0x0}, 
  __align = 0x1c0000000}

I don't know enough about futexes to debug this further.

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


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

* [Bug nptl/19004] tst-robust8 fails intermittently on x86_64
  2015-09-25  8:50 [Bug nptl/19004] New: tst-robust8 fails intermittently on x86_64 fweimer at redhat dot com
@ 2015-09-25  8:54 ` fweimer at redhat dot com
  2015-09-25  9:45 ` fweimer at redhat dot com
  2020-04-28 17:08 ` carlos at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2015-09-25  8:54 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Full backtrace:

#1  0x00007ffff7bc4d7c in _L_robust_lock_205 () at pthread_mutex_lock.c:478
No symbol table info available.
#2  0x00007ffff7bc4a05 in __pthread_mutex_lock_full (mutex=0x7ffff7ff84b0)
    at pthread_mutex_lock.c:225
        result = <optimized out>
        oldval = <optimized out>
        id = 21168
#3  0x00007ffff7bc8c1a in __GI___pthread_mutex_lock (mutex=<optimized out>)
    at pthread_mutex_lock.c:55
        type = <optimized out>
        id = <optimized out>
#4  0x0000000000402349 in do_test () at tst-robust8.c:234
        e = <optimized out>
        n = 30
        p = 21169
        status = 9
        round = 1
        ma = {__size = "\000\000\000\300", __align = -1073741824}
#5  0x0000000000401a17 in main (argc=<optimized out>, argv=<optimized out>)
    at test-skeleton.c:412
        direct = <optimized out>
        status = 0
        opt = <optimized out>
        timeoutfactor = 1
        termpid = <optimized out>
        envstr_timeoutfactor = <optimized out>
        envstr_direct = <optimized out>

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


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

* [Bug nptl/19004] tst-robust8 fails intermittently on x86_64
  2015-09-25  8:50 [Bug nptl/19004] New: tst-robust8 fails intermittently on x86_64 fweimer at redhat dot com
  2015-09-25  8:54 ` [Bug nptl/19004] " fweimer at redhat dot com
@ 2015-09-25  9:45 ` fweimer at redhat dot com
  2020-04-28 17:08 ` carlos at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2015-09-25  9:45 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
I could reproduce this on a much smaller machine (with once i7-4810MQ CPU),
with glibc-2.17-78.el7.x86_64.  The hang looks identical.

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


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

* [Bug nptl/19004] tst-robust8 fails intermittently on x86_64
  2015-09-25  8:50 [Bug nptl/19004] New: tst-robust8 fails intermittently on x86_64 fweimer at redhat dot com
  2015-09-25  8:54 ` [Bug nptl/19004] " fweimer at redhat dot com
  2015-09-25  9:45 ` fweimer at redhat dot com
@ 2020-04-28 17:08 ` carlos at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: carlos at redhat dot com @ 2020-04-28 17:08 UTC (permalink / raw)
  To: glibc-bugs

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

Carlos O'Donell <carlos at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugzilla.redhat.com
                   |                            |/show_bug.cgi?id=1026383

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

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

end of thread, other threads:[~2020-04-28 17:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-25  8:50 [Bug nptl/19004] New: tst-robust8 fails intermittently on x86_64 fweimer at redhat dot com
2015-09-25  8:54 ` [Bug nptl/19004] " fweimer at redhat dot com
2015-09-25  9:45 ` fweimer at redhat dot com
2020-04-28 17:08 ` carlos at redhat dot com

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).