Bug 25670 - gdb.threads/non-ldr-exc-2.exp: __pthread_mutex_lock: Assertion `mutex->__data.__owner == 0' failed
Summary: gdb.threads/non-ldr-exc-2.exp: __pthread_mutex_lock: Assertion `mutex->__data...
Status: RESOLVED INVALID
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-13 16:40 UTC by Tom de Vries
Modified: 2020-03-15 09:50 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom de Vries 2020-03-13 16:40:42 UTC
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
...
Comment 1 Tom de Vries 2020-03-13 16:56:52 UTC
Not reproducible with couple of individual test runs.

Nothing triggers with -fsanitize=address.

Nothing triggers with -fsanitize=thread.
Comment 2 Tom de Vries 2020-03-13 17:49:17 UTC
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 .
Comment 3 Tom de Vries 2020-03-15 09:50:16 UTC
My theory is that this is not a gdb bug.

So, marking resolved-invalid.