[Bug gdb/25670] New: gdb.threads/non-ldr-exc-2.exp: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/25670] New: gdb.threads/non-ldr-exc-2.exp: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25670

            Bug ID: 25670
           Summary: gdb.threads/non-ldr-exc-2.exp: __pthread_mutex_lock:
                    Assertion `mutex->__data.__owner == 0' failed
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

With current trunk I run into:
...
Running
/data/gdb_versions/devel/src/gdb/testsuite/gdb.threads/non-ldr-exc-2.exp ...
PASS: gdb.threads/non-ldr-exc-2.exp: successfully compiled posix threads test
case
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=off,non-stop=on: continue to
breakpoint: break-here
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=off,non-stop=on: thread 2
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=off,non-stop=on: single thread
left
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=off,non-stop=on: continue over
exec
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=on,non-stop=off: continue to
breakpoint: break-here
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=on,non-stop=off: single thread
left
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=on,non-stop=off: set
scheduler-locking on
ERROR: GDB process no longer exists
UNRESOLVED: gdb.threads/non-ldr-exc-2.exp: lock-sched=on,non-stop=off: continue
over exec
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=off,non-stop=off: continue to
breakpoint: break-here
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=off,non-stop=off: single thread
left
PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=off,non-stop=off: continue over
exec
...

In more detail:
...
(gdb) PASS: gdb.threads/non-ldr-exc-2.exp: lock-sched=on,non-stop=off: set
scheduler-locking on
continue^M
Continuing.^M
[New LWP 16332]^M
process 16332 is executing new program:
/data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.threads/non-ldr-exc-2/non-ldr-exc-2^M
gdb: ../nptl/pthread_mutex_lock.c:81: __pthread_mutex_lock: Assertion
`mutex->__data.__owner == 0' failed.^M
ERROR: GDB process no longer exists
GDB process exited with wait status 16319 exp48 0 0 CHILDKILLED SIGABRT SIGABRT
UNRESOLVED: gdb.threads/non-ldr-exc-2.exp: lock-sched=on,non-stop=off: continue
over exec
...

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/25670] gdb.threads/non-ldr-exc-2.exp: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed

glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25670

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Not reproducible with couple of individual test runs.

Nothing triggers with -fsanitize=address.

Nothing triggers with -fsanitize=thread.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/25670] gdb.threads/non-ldr-exc-2.exp: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25670

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
This may have been me running into glibc PR23275.

This is fixed in version 2.29, and openSUSE Leap 15.1 is using 2.26.

I've filed a backport request:
https://bugzilla.suse.com/show_bug.cgi?id=1166643 .

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug gdb/25670] gdb.threads/non-ldr-exc-2.exp: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de
https://sourceware.org/bugzilla/show_bug.cgi?id=25670

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
My theory is that this is not a gdb bug.

So, marking resolved-invalid.

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